mirror of
https://github.com/KarolS/millfork.git
synced 2025-02-09 06:30:36 +00:00
A8 landscape refactor
This commit is contained in:
parent
2d7c365b20
commit
1b6b49889b
@ -1,5 +1,6 @@
|
|||||||
// idea @ilmenit
|
// idea @ilmenit
|
||||||
// https://demozoo.org/productions/280623/
|
// https://demozoo.org/productions/280623
|
||||||
|
// for 8bit AtariXL, OS Rev 2
|
||||||
|
|
||||||
alias prev_x = os_OLDCOL.lo
|
alias prev_x = os_OLDCOL.lo
|
||||||
alias cursor_x = os_COLCRS.lo
|
alias cursor_x = os_COLCRS.lo
|
||||||
@ -23,20 +24,17 @@ void main(){
|
|||||||
for i,0,to,79 {
|
for i,0,to,79 {
|
||||||
cursor_x = i
|
cursor_x = i
|
||||||
prev_x = i
|
prev_x = i
|
||||||
color = 13
|
|
||||||
prev_y = 1
|
prev_y = 1
|
||||||
|
|
||||||
while color != $ff {
|
for color,13,downto,0 {
|
||||||
cursor_y = color_height[color]
|
cursor_y = color_height[color]
|
||||||
if (pokey_random & 1) != 0 {
|
if pokey_random < $80 {
|
||||||
|
color_height[color] -= 1
|
||||||
|
}
|
||||||
|
if pokey_random < $80 {
|
||||||
color_height[color] += 1
|
color_height[color] += 1
|
||||||
} else {
|
|
||||||
if (pokey_random & 1) != 0 {
|
|
||||||
color_height[color] -= 1
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
drawto()
|
drawto()
|
||||||
color -= 1
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user