prog8/examples/test.p8

31 lines
562 B
Plaintext
Raw Normal View History

%import syslib
2020-09-21 18:42:28 +02:00
; %import graphics
%import textio
2020-09-21 23:39:25 +02:00
%zeropage basicsafe
2020-08-27 19:47:50 +02:00
main {
2020-09-16 23:04:18 +02:00
sub start() {
2020-09-19 16:54:52 +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
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
}