1
0
mirror of https://github.com/KarolS/millfork.git synced 2025-01-10 20:29:35 +00:00
millfork/examples/a8/horizontal_stars.mfk

23 lines
385 B
Plaintext
Raw Normal View History

void main(){
array(byte) stars[256] align(fast)
2020-09-23 00:04:22 +02:00
array(byte) speed[256] align(fast)
byte i
os_PCOLR0 = $e
gtia_grafm = $e
for i:stars {
stars[i] = pokey_random
2020-09-23 00:04:22 +02:00
speed[i] = (pokey_random & 3) + 1
}
while true {
if antic_vcount == 0 {
for i:stars {
antic_wsync = 1
gtia_hposm0 = stars[i]
2020-09-23 00:04:22 +02:00
stars[i] += speed[i]
}
}
}
}