Exploring Sid Meier's Pirates! - BASIC Code, Quirks, Bugs on Commodore 64
8-Bit Show And TellCited 3× on HN, 2022–2026
explainer · intermediate · evergreen · 2022–2026 on HN
8-Bit Show And Tell walks through the BASIC source code of the original Commodore 64 Sid Meier's Pirates!. It covers bugs, quirks and traces of abandoned features and scenarios left in the code.
Pointed to as a walkthrough of the BASIC listing of a famous game partly written in BASIC.
Up next
10 mo on HNelevated by Rgba & TBC | 4k intro (FullHD 1080p demoscene demo)
Demoscene High-Quality Videos (Annikras)
7 HN recommender · 2013–2025
10 mo on HNThe Ultimate Game Boy Talk (33c3)
media.ccc.de
10 HN recommender · 2017–2026
9 mo on HNA Mind Is Born (256 bytes)
lftkryo
8 HN recommender · 2017–2025
10 mo on HNCppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”
CppCon
13 HN recommender · 2016–2024
7 mo on HNCompiling C to printable x86, to make an executable research paper
suckerpinch
8 HN recommender · 2018–2023
8 mo on HNTrackers: The Sound of 16-Bit
Ahoy
7 HN recommender · 2021–2026
7 mo on HNI painted a Landscape with Mathematics
Inigo Quilez
7 HN recommender · 2022–2025
7 mo on HNElevated by RGBA and TBC
BUTTONTANG
7 HN recommender · 2009–2025
6 mo on HNApollo Guidance Computer Part 1: Restoring the computer that put man on the Moon
CuriousMarc
8 HN recommender · 2019–2024
6 mo on HNHow we fit an NES game into 40 Kilobytes
Morphcat Games
6 HN recommender · 2019–2026
6 mo on HNMoleman 2 - Demoscene - The Art of the Algorithms (2012)
Vakondok (Moleman)
6 HN recommender · 2015–2023
6 mo on HNCGA Graphics - Not as bad as you thought!
The 8-Bit Guy
6 HN recommender · 2016–2024
3 comments from Hacker News
Sid Meier's Pirates! was a fantastic game in which I spent a ton of time. I still find it hard to believe it was written mostly in C64 BASIC [1] (I suppose not the dueling scenes though). I think everyone who was a gamer back then knows the game, so it's not really a hidden treasure. It may be lost now to modern audiences, though. By the way, I also enjoyed the remake, with one caveat: I absolutely cannot stand the "simlish" language they speak; I understand they did it to aid in localization, but so much is lost with that nonsense... they should have just used subtitled English with pirate-y voices (or Spanish, but I suppose the English-speaking world was their primary audience). Another game which is fantastic in a similar sense than Pirates! is MicroProse's "Sword of the Samurai" [2], apparently made after the resounding success of the former. It's probably the most tasteful and "authentic" samurai game ever made. Yes, even more than the Total War series. It chronicled your rise from a lowly no-name samurai, to Hatamoto, to (hopefully) Shogun. It has duels, marriages, rescues and kidnapping, loyalty and betrayal, tactical battles and strategy, and (taking into account its pixelated era), the graphics are really appropriate . I often wish for a remake of Sword of the Samurai, but maybe it's best that nobody did a half-assed attempt and botched it. ---- [1] ▶ this video [2] link
No, not entirely, but you'd have needed to poke around a bit (pun intended - not sorry) to realise - if you stop it (I think just RUN STOP + RESTORE was sufficient at the right spots in the game, but if not, a freezer cartridge would make it trivial) and LIST, you get a huge BASIC listing, so a lot of it is BASIC. Here's a Youtube video going through some of it [1]. Especially at the end he lists a large chunk and you'll see there aren't a lot of SYS calls to machine code so it's not surprising people whould think so. In the comments to the Youtube video someone made this statement - I don't know whether or not it's accurate, but it seems plausible (you probably could do much of that in BASIC too, but especially the scrolling would likely be really slow and janky): > It is mainly the text screens that are programmed in BASIC. The battles are all in machine code, including the sword battles, the ship sailing and the ship battles, the drawing of the terrain and the men walking on the land; basically anything that involved reading the joystick input and displaying sprites is all programmed in machine code and are called by SYS routines from BASIC. I spend many hours exploring the code and hacking the game by changing variables and memory locations. [1] ▶ this video
A similar game is Pirates! ▶ this video I like that one of the most popular c64 games was partially written in BASIC.