2018-10-21 21:03:15 +00:00
|
|
|
%import c64utils
|
2018-09-30 23:01:39 +00:00
|
|
|
|
|
|
|
~ main {
|
|
|
|
|
2019-01-08 00:27:25 +00:00
|
|
|
const uword width = 40
|
|
|
|
const uword height = 25
|
2018-10-02 20:52:05 +00:00
|
|
|
|
2018-09-30 23:01:39 +00:00
|
|
|
sub start() {
|
|
|
|
|
2019-01-08 00:27:25 +00:00
|
|
|
uword anglex
|
|
|
|
uword angley
|
2018-10-10 07:21:20 +00:00
|
|
|
ubyte color
|
2018-09-30 23:01:39 +00:00
|
|
|
|
2018-12-19 01:51:22 +00:00
|
|
|
while true {
|
2019-01-08 00:27:25 +00:00
|
|
|
ubyte x = msb(sin8u(msb(anglex)) as uword * width)
|
|
|
|
ubyte y = msb(cos8u(msb(angley)) as uword * height)
|
|
|
|
c64scr.setcc(x, y, 81, color)
|
|
|
|
|
|
|
|
anglex+=800
|
|
|
|
angley+=947
|
2018-09-30 23:01:39 +00:00
|
|
|
color++
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|