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

Possibly Related Threads…
Thread Author Replies Views Last Post
  ASCII AQUERIUM solo88 7 620 12-21-2025, 12:04 PM
Last Post: Dav
  Exploding Ascii Diamonds bplus 5 545 11-16-2025, 05:06 PM
Last Post: Dav
  Tiny Maze Maker - ASCII SierraKen 19 1,713 08-09-2025, 11:39 PM
Last Post: SierraKen
  Roll The Dice InputBox$ and MessageBox Example SierraKen 16 2,884 02-20-2025, 12:23 AM
Last Post: SierraKen
  ASCII cube DANILIN 6 1,710 11-07-2023, 01:06 AM
Last Post: bplus

Forum Jump:


Users browsing this thread: 1 Guest(s)