This commit is contained in:
Irmen de Jong 2019-07-16 21:31:14 +02:00
parent 4dbf4b2005
commit c0e83ef8df
2 changed files with 14 additions and 15 deletions

View File

@ -3,8 +3,6 @@
%zeropage basicsafe
; The classic number guessing game.
; This version uses mostly high level subroutine calls and loops.
; It's more readable than the low-level version, but produces a slightly larger program.
~ main {

View File

@ -53,20 +53,21 @@
~ irq {
sub irq() {
c64.EXTCOL--
; float up & wobble horizontally
for ubyte @zp i in 0 to 14 step 2 {
c64.SPXY[i+1]--
ubyte @zp r = rnd()
if r>200
c64.SPXY[i]++
else if r<40
c64.SPXY[i]--
sub irq() {
c64.EXTCOL--
; float up & wobble horizontally
for ubyte @zp i in 0 to 14 step 2 {
c64.SPXY[i+1]--
ubyte @zp r = rnd()
if r>200
c64.SPXY[i]++
else if r<40
c64.SPXY[i]--
}
c64.EXTCOL++
}
c64.EXTCOL++
}
}