Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
micro(A)v11
#18
Silly Tiles...by "roquedrivel"

Code: (Select All)
'by "roquedrivel" 19-July-2023
'silly tiles
var i, p, f, ybot, lchoic
str choic
var sx[80], sy[80], si[80], ss[80]

'initialize
choic = "111111222223334"
lchoic = len(choic) - 1
ybot = 560

'set black window background color
wcolor 0, 0, 0

'initialize tiles
i = 1
label lb01
    sx[i] = (i - 1) * 10
    sy[i] = ybot
    si[i] = 0
    ss[i] = 0
i = i + 1
if i < 80 : goto lb01 : endif

'main loop
label mloop
    fcolor 142, 180, 230
    i = 1
    label lb02
        'this is in case the programmer wants to change to a diamond or something else
        drawfigure()
    i = i + 1
    if i < 80 : goto lb02 : endif
    swap
    fcolor 0, 0, 0
    i = 1
    label lb03
        drawfigure()
    i = i + 1
    if i < 80 : goto lb03 : endif
    'choose a tile and how to move it
    p = Rand(lchoic) + 1
    f = val(mstr(choic, p, 1))
    p = Rand(78) + 1
    if ss[p] = 0
        si[p] = (f * 64 * (Rand(39) + 1)) / 10
        ss[p] = 1
    endif
    'check all tiles to see if they need to be moved
    i = 1
    label lb04
        if ss[i] > 0
            sy[i] = sy[i] - si[i]
            si[i] = si[i] - 0.1
            if si[i] > 0 : si[i] = si[i] - 0.1 : endif
            if si[i] > 2 : si[i] = 2 : endif
            if sy[i] > ybot
                sy[i] = ybot
                ss[i] = 0
                si[i] = 0
            endif
        endif
    i = i + 1
    if i < 80 : goto lb04 : endif
goto mloop

func drawfigure()
    line sx[i], sy[i], sx[i] + 9, sy[i]
    line sx[i], sy[i] + 1, sx[i] + 9, sy[i] + 1
    line sx[i], sy[i] + 2, sx[i] + 9, sy[i] + 2
endfn
Reply


Messages In This Thread
micro(A)v11 - by aurel - 07-07-2023, 03:05 PM
RE: mAv11 - by mnrvovrfc - 07-07-2023, 06:52 PM
RE: mAv11 - by mnrvovrfc - 07-07-2023, 07:08 PM
RE: mAv11 - by aurel - 07-07-2023, 09:30 PM
RE: mAv11 - by aurel - 07-10-2023, 04:13 PM
RE: mAv11 - by aurel - 07-10-2023, 07:17 PM
RE: micro(A)v11 - by aurel - 07-12-2023, 05:03 PM
RE: micro(A)v11 - by aurel - 07-13-2023, 06:38 PM
RE: micro(A)v11 - by mnrvovrfc - 07-13-2023, 07:08 PM
RE: micro(A)v11 - by aurel - 07-15-2023, 04:27 PM
RE: micro(A)v11 - by aurel - 07-16-2023, 02:52 PM
RE: micro(A)v11 - by bplus - 07-16-2023, 03:56 PM
RE: micro(A)v11 - by aurel - 07-16-2023, 06:19 PM
RE: micro(A)v11 - by bplus - 07-16-2023, 06:39 PM
RE: micro(A)v11 - by mnrvovrfc - 07-16-2023, 07:34 PM
RE: micro(A)v11 - by aurel - 07-16-2023, 09:34 PM
RE: micro(A)v11 - by aurel - 07-16-2023, 09:42 PM
RE: micro(A)v11 - by aurel - 07-19-2023, 11:53 AM
RE: micro(A)v11 - by aurel - 07-21-2023, 06:38 AM
RE: micro(A)v11 - by mnrvovrfc - 07-21-2023, 06:45 AM
RE: micro(A)v11 - by aurel - 07-21-2023, 09:09 PM
RE: micro(A)v11 - by mnrvovrfc - 07-24-2023, 02:23 AM
RE: micro(A)v11 - by aurel - 07-24-2023, 07:00 AM
RE: micro(A)v11 - by aurel - 07-25-2023, 09:16 PM
RE: micro(A)v11 - by aurel - 07-26-2023, 05:30 PM
RE: micro(A)v11 - by aurel - 07-26-2023, 10:42 PM
RE: micro(A)v11 - by aurel - 07-27-2023, 09:55 AM
RE: micro(A)v11 - by mnrvovrfc - 07-28-2023, 02:29 AM
RE: micro(A)v11 - by mnrvovrfc - 07-28-2023, 07:42 AM
RE: micro(A)v11 - by aurel - 07-28-2023, 06:43 AM
RE: micro(A)v11 - by aurel - 07-28-2023, 09:38 AM
RE: micro(A)v11 - by mnrvovrfc - 07-28-2023, 05:59 PM
RE: micro(A)v11 - by aurel - 07-28-2023, 07:14 PM
RE: micro(A)v11 - by bplus - 07-29-2023, 03:09 PM
RE: micro(A)v11 - by mnrvovrfc - 07-29-2023, 07:07 PM
RE: micro(A)v11 - by bplus - 07-29-2023, 07:45 PM
RE: micro(A)v11 - by aurel - 07-29-2023, 09:30 PM
RE: micro(A)v11 - by aurel - 07-29-2023, 09:31 PM
RE: micro(A)v11 - by bplus - 07-29-2023, 09:53 PM
RE: micro(A)v11 - by mnrvovrfc - 07-29-2023, 10:10 PM
RE: micro(A)v11 - by aurel - 07-30-2023, 09:49 AM
RE: micro(A)v11 - by bplus - 07-30-2023, 02:35 PM
RE: micro(A)v11 - by aurel - 07-30-2023, 03:05 PM
RE: micro(A)v11 - by mnrvovrfc - 07-31-2023, 01:54 PM
RE: micro(A)v11 - by aurel - 07-31-2023, 02:10 PM
RE: micro(A)v11 - by mnrvovrfc - 07-31-2023, 02:39 PM
RE: micro(A)v11 - by aurel - 07-31-2023, 03:09 PM
RE: micro(A)v11 - by aurel - 07-31-2023, 03:10 PM
RE: micro(A)v11 - by mnrvovrfc - 08-01-2023, 03:12 PM
RE: micro(A)v11 - by bplus - 08-01-2023, 03:36 PM
RE: micro(A)v11 - by mnrvovrfc - 08-01-2023, 11:49 PM
RE: micro(A)v11 - by aurel - 08-02-2023, 08:21 AM
RE: micro(A)v11 - by mnrvovrfc - 08-08-2023, 03:59 AM
RE: micro(A)v11 - by aurel - 08-08-2023, 10:18 AM
RE: micro(A)v11 - by mnrvovrfc - 08-11-2023, 08:43 AM
RE: micro(A)v11 - by bplus - 08-11-2023, 09:17 AM
RE: micro(A)v11 - by aurel - 08-11-2023, 11:39 AM
RE: micro(A)v11 - by bplus - 08-11-2023, 01:19 PM
RE: micro(A)v11 - by aurel - 08-11-2023, 07:43 PM
RE: micro(A)v11 - by aurel - 08-11-2023, 10:41 PM
RE: micro(A)v11 - by aurel - 08-12-2023, 10:31 AM
RE: micro(A)v11 - by aurel - 08-12-2023, 10:36 AM
RE: micro(A)v11 - by aurel - 08-12-2023, 10:47 AM
RE: micro(A)v11 - by aurel - 08-12-2023, 10:49 AM
RE: micro(A)v11 - by mnrvovrfc - 08-12-2023, 12:18 PM
RE: micro(A)v11 - by bplus - 08-12-2023, 12:59 PM
RE: micro(A)v11 - by mnrvovrfc - 08-12-2023, 02:49 PM
RE: micro(A)v11 - by aurel - 08-12-2023, 07:14 PM
RE: micro(A)v11 - by bplus - 08-12-2023, 07:35 PM
RE: micro(A)v11 - by aurel - 08-12-2023, 09:02 PM
RE: micro(A)v11 - by mnrvovrfc - 08-14-2023, 04:43 PM
RE: micro(A)v11 - by aurel - 08-15-2023, 07:36 AM
RE: micro(A)v11 - by bplus - 08-15-2023, 12:42 PM
RE: micro(A)v11 - by aurel - 08-15-2023, 06:44 PM
RE: micro(A)v11 - by mnrvovrfc - 08-15-2023, 10:07 PM
RE: micro(A)v11 - by aurel - 08-16-2023, 06:51 AM
RE: micro(A)v11 - by aurel - 08-16-2023, 09:03 AM
RE: micro(A)v11 - by aurel - 08-20-2023, 10:54 AM
RE: micro(A)v11 - by mnrvovrfc - 08-20-2023, 01:23 PM
RE: micro(A)v11 - by aurel - 08-20-2023, 03:08 PM
RE: micro(A)v11 - by dbox - 08-20-2023, 03:46 PM
RE: micro(A)v11 - by mnrvovrfc - 08-20-2023, 04:19 PM
RE: micro(A)v11 - by aurel - 08-20-2023, 09:51 PM
RE: micro(A)v11 - by aurel - 08-25-2023, 01:47 PM
RE: micro(A)v11 - by aurel - 08-30-2023, 08:24 PM
RE: micro(A)v11 - by mnrvovrfc - 08-30-2023, 08:36 PM
RE: micro(A)v11 - by TerryRitchie - 08-30-2023, 09:18 PM
RE: micro(A)v11 - by aurel - 08-30-2023, 09:20 PM
RE: micro(A)v11 - by aurel - 08-31-2023, 07:40 PM
RE: micro(A)v11 - by aurel - 08-31-2023, 08:13 PM
RE: micro(A)v11 - by bplus - 08-31-2023, 09:14 PM
RE: micro(A)v11 - by aurel - 09-01-2023, 01:18 PM
RE: micro(A)v11 - by aurel - 09-08-2023, 07:05 AM
RE: micro(A)v11 - by aurel - 05-03-2024, 08:30 AM
RE: micro(A)v11 - by aurel - 05-03-2024, 08:44 AM
RE: micro(A)v11 - by aurel - 05-05-2024, 11:43 AM
RE: micro(A)v11 - by bplus - 05-05-2024, 05:25 PM
RE: micro(A)v11 - by aurel - 05-06-2024, 05:07 AM
RE: micro(A)v11 - by aurel - 08-03-2024, 10:57 AM
RE: micro(A)v11 - by bplus - 08-03-2024, 12:04 PM
RE: micro(A)v11 - by aurel - 08-03-2024, 12:49 PM
RE: micro(A)v11 - by Pete - 08-03-2024, 01:37 PM
RE: micro(A)v11 - by aurel - 08-03-2024, 03:41 PM
RE: micro(A)v11 - by bplus - 08-03-2024, 05:13 PM
RE: micro(A)v11 - by SMcNeill - 08-04-2024, 05:51 PM
RE: micro(A)v11 - by aurel - 08-04-2024, 06:41 PM
RE: micro(A)v11 - by Pete - 08-04-2024, 08:02 PM
RE: micro(A)v11 - by aurel - 08-05-2024, 06:26 AM



Users browsing this thread: 3 Guest(s)