mirror of
https://github.com/irmen/prog8.git
synced 2024-11-20 03:32:05 +00:00
24 lines
529 B
Lua
24 lines
529 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
|
|
; Note: this program is compatible with C64 and CX16.
|
|
|
|
main {
|
|
const uword screenwidth = txt.DEFAULT_WIDTH
|
|
const uword screenheight = txt.DEFAULT_HEIGHT
|
|
uword anglex
|
|
uword angley
|
|
ubyte color
|
|
|
|
sub start() {
|
|
repeat {
|
|
ubyte x = msb(sin8u(msb(anglex)) * screenwidth)
|
|
ubyte y = msb(cos8u(msb(angley)) * screenheight)
|
|
txt.setcc(x, y, 81, color)
|
|
anglex+=366
|
|
angley+=291
|
|
color++
|
|
}
|
|
}
|
|
}
|