diff --git a/examples/numbergame.p8 b/examples/numbergame.p8 index 5324eee7d..1ca7dd240 100644 --- a/examples/numbergame.p8 +++ b/examples/numbergame.p8 @@ -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 { diff --git a/examples/sprites.p8 b/examples/sprites.p8 index a9e0a115c..21bee854c 100644 --- a/examples/sprites.p8 +++ b/examples/sprites.p8 @@ -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++ -} - }