2022-04-12 21:58:19 +00:00
|
|
|
%import math
|
2020-09-20 21:49:36 +00:00
|
|
|
%import textio
|
2020-09-19 22:17:33 +00:00
|
|
|
%zeropage basicsafe
|
2018-09-30 23:01:39 +00:00
|
|
|
|
2020-09-20 21:49:36 +00:00
|
|
|
; Note: this program is compatible with C64 and CX16.
|
2018-09-30 23:01:39 +00:00
|
|
|
|
2020-09-19 22:17:33 +00:00
|
|
|
main {
|
2020-09-19 23:14:53 +00:00
|
|
|
const uword screenwidth = txt.DEFAULT_WIDTH
|
|
|
|
const uword screenheight = txt.DEFAULT_HEIGHT
|
2021-04-28 22:01:20 +00:00
|
|
|
uword anglex
|
|
|
|
uword angley
|
|
|
|
ubyte color
|
2019-07-12 17:01:36 +00:00
|
|
|
|
|
|
|
sub start() {
|
2020-07-25 14:25:02 +00:00
|
|
|
repeat {
|
2022-04-12 21:58:19 +00:00
|
|
|
ubyte x = msb(math.sin8u(msb(anglex)) * screenwidth)
|
|
|
|
ubyte y = msb(math.cos8u(msb(angley)) * screenheight)
|
2021-04-28 22:01:20 +00:00
|
|
|
txt.setcc(x, y, 81, color)
|
|
|
|
anglex+=366
|
|
|
|
angley+=291
|
|
|
|
color++
|
2018-09-30 23:01:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|