mirror of
https://github.com/irmen/prog8.git
synced 2024-11-27 03:50:27 +00:00
18 lines
410 B
Lua
18 lines
410 B
Lua
%import textio
|
|
%import math
|
|
%import cx16logo
|
|
|
|
; Note: this program can be compiled for multiple target systems.
|
|
|
|
main {
|
|
sub start() {
|
|
repeat {
|
|
ubyte col = math.rnd() % (txt.DEFAULT_WIDTH-13) + 3
|
|
ubyte row = math.rnd() % (txt.DEFAULT_HEIGHT-7)
|
|
cx16logo.logo_at(col, row)
|
|
txt.plot(col-3, row+7)
|
|
txt.print("commander x16")
|
|
}
|
|
}
|
|
}
|