More C64 BASIC Optimisations
retrogamecoders.com·12w·
Discuss: Hacker News

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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help