2020-09-20 23:49:36 +02:00
|
|
|
%import syslib
|
2020-09-21 18:42:28 +02:00
|
|
|
; %import graphics
|
2020-09-20 23:49:36 +02:00
|
|
|
%import textio
|
2020-09-21 23:39:25 +02:00
|
|
|
%zeropage basicsafe
|
2020-09-05 02:05:28 +02:00
|
|
|
|
2020-08-27 19:47:50 +02:00
|
|
|
|
|
|
|
main {
|
2020-09-05 02:05:28 +02:00
|
|
|
|
2020-09-16 23:04:18 +02:00
|
|
|
sub start() {
|
2020-09-19 16:54:52 +02:00
|
|
|
|
2020-09-22 00:18:00 +02:00
|
|
|
; cx16.screen_set_mode(128)
|
2020-09-21 23:39:25 +02:00
|
|
|
|
|
|
|
ubyte width = txt.width()
|
|
|
|
ubyte height = txt.height()
|
|
|
|
|
2020-09-21 21:39:36 +02:00
|
|
|
ubyte x
|
2020-09-21 19:23:21 +02:00
|
|
|
|
2020-09-22 00:18:00 +02:00
|
|
|
repeat 999 {
|
|
|
|
ubyte xpos = rnd() % (width-1)
|
|
|
|
txt.setcc(xpos, 0, 81, 6)
|
|
|
|
ubyte ypos = rnd() % (height-1)+1
|
|
|
|
txt.setcc(width-1, ypos, 81, 2)
|
|
|
|
txt.scroll_left(true)
|
|
|
|
txt.scroll_down(true)
|
|
|
|
repeat 2000 {
|
2020-09-21 21:39:36 +02:00
|
|
|
x++
|
|
|
|
}
|
2020-09-21 18:42:28 +02:00
|
|
|
}
|
2020-09-16 23:04:18 +02:00
|
|
|
}
|
2020-08-27 19:47:50 +02:00
|
|
|
}
|