2022-04-12 23:58:19 +02:00
|
|
|
%import math
|
2020-09-20 23:49:36 +02:00
|
|
|
%import textio
|
2020-09-20 00:17:33 +02:00
|
|
|
%zeropage basicsafe
|
2018-10-01 01:01:39 +02:00
|
|
|
|
2023-06-03 19:14:45 +02:00
|
|
|
; Note: this program can be compiled for multiple target systems.
|
2018-10-01 01:01:39 +02:00
|
|
|
|
2020-09-20 00:17:33 +02:00
|
|
|
main {
|
2020-09-20 01:14:53 +02:00
|
|
|
const uword screenwidth = txt.DEFAULT_WIDTH
|
|
|
|
const uword screenheight = txt.DEFAULT_HEIGHT
|
2021-04-29 00:01:20 +02:00
|
|
|
uword anglex
|
|
|
|
uword angley
|
|
|
|
ubyte color
|
2019-07-12 19:01:36 +02:00
|
|
|
|
|
|
|
sub start() {
|
2020-07-25 16:25:02 +02:00
|
|
|
repeat {
|
2022-04-12 23:58:19 +02:00
|
|
|
ubyte x = msb(math.sin8u(msb(anglex)) * screenwidth)
|
|
|
|
ubyte y = msb(math.cos8u(msb(angley)) * screenheight)
|
2021-04-29 00:01:20 +02:00
|
|
|
txt.setcc(x, y, 81, color)
|
|
|
|
anglex+=366
|
|
|
|
angley+=291
|
|
|
|
color++
|
2018-10-01 01:01:39 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|