More C64 BASIC Optimisations
retrogamecoders.com·2h
Flag this post

I came across a C64 BASIC game that ran pretty slow, so I challenged myself to see how much I could speed it up.

Today’s C64 BASIC optimisations are around making a pong-style bat and ball game from Tom‘s online tutorial play a bit better.

You can see the before and after below, with only minor alterations on the original to get it to run outside of Tom’s interactive tutorial on regular C64 and emulators:

Before and after optimising the BASIC codeBefore and after optimising the BASIC code

Original Code

1000 REM STATE INITIALIZATION
1010 X=0
1020 Y=0
1030 DX=1
1040 DY=1
1050 P=10
1100 PRINT CHR$(147)
2000 REM BALL MOVEMENT
2010 POKE ((Y*40)+X) CHR$(32)
2020 X=X+DX
203...

Similar Posts

Loading similar posts...