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:00:22 +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
|
|
|
|
ubyte y
|
2020-09-21 23:39:25 +02:00
|
|
|
for y in 0 to height-1 {
|
|
|
|
for x in 0 to width-1 {
|
2020-09-21 23:04:01 +02:00
|
|
|
txt.setchr(x,y,x+y)
|
|
|
|
}
|
|
|
|
}
|
2020-09-21 19:23:21 +02:00
|
|
|
|
2020-09-21 23:39:25 +02:00
|
|
|
repeat width {
|
2020-09-22 00:00:22 +02:00
|
|
|
txt.setcc(0, rnd() % height, 81, 2)
|
|
|
|
txt.scroll_right(true)
|
2020-09-21 19:23:21 +02:00
|
|
|
|
2020-09-21 23:39:25 +02:00
|
|
|
repeat 1000 {
|
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
|
|
|
}
|