Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ascii Dice
#8
(05-12-2023, 03:09 PM)bplus Wrote: Ah! a little fix:
Code: (Select All)
Function rolld6 (px, py)
    'simulate "rolling" a die by calling asciidie repeatedly
    dr = Int(1 + Rnd * 6)
    For x = 1 To 6
        '_Limit 100
        dr = Int(1 + Rnd * 6)
        asciidie px, py, dr 'displays score dr as a die starting at px,py
        _Delay .15
    Next x
    rolld6 = dr
End Function

definitely works; that delay is agonizingly slow to look at for me if I put it in a game but probably works better in a demo like this.
Reply


Messages In This Thread
Ascii Dice - by James D Jarvis - 05-12-2023, 01:52 PM
RE: Ascii Dice - by bplus - 05-12-2023, 02:32 PM
RE: Ascii Dice - by James D Jarvis - 05-12-2023, 02:34 PM
RE: Ascii Dice - by bplus - 05-12-2023, 03:09 PM
RE: Ascii Dice - by Jack - 05-12-2023, 03:17 PM
RE: Ascii Dice - by bplus - 05-12-2023, 03:57 PM
RE: Ascii Dice - by mnrvovrfc - 05-12-2023, 04:10 PM
RE: Ascii Dice - by James D Jarvis - 05-12-2023, 04:24 PM
RE: Ascii Dice - by grymmjack - 07-15-2023, 12:22 AM
RE: Ascii Dice - by PhilOfPerth - 07-15-2023, 06:33 AM



Users browsing this thread: 1 Guest(s)