Program a NES game in C
B
ack in the mid 80s I was busy writing games for ZX Spectrum, MSX and CBM-64 and also porting games between 6502 and Z80. That was also when the original NES appeared. That had a 6502 CPU but a lot less RAM than the CBM-64.
In those days the NES was programmed in assembly language. C was still too new for most things but now, it’s possible to program a NES game in C. Developer Douglas Fraker has produced a series of tutorials on how to create NES games in C using cc65, a C compiler/assembler that takes C code and outputs 6502 assembly language.
His tutorials cover the whole range of things including sprites, how palettes work, music, sound effects, even how to use the Zapper (a stand alone gun-like accessory) with all source code on GitHub. You can run games on an emulator such as the one that comes with RetroPie.
Reading the page on 6502 ASM Basics brought it all back to me even though it’s 31 years since I last wrote 6502 code.
.
WebGL (Web Graphics Library) is a JavaScript API for rendering interactive 2D and 3D graphics in a compatible web browser without the use of plug-ins. A developer called Todd Fleming has created a 
Don’t get me wrong, I like Linux. I’ve put in enough hours, especially on Raspberry Pi programming but games don’t seem to sell at all well on Linux. For one there’s a massive expectation of free software. Ubuntu comes with plenty of free games and some really good quality ones like 0Ad or Battle of Wesnoth.
Wizznic
This is my alternative approach to learning C. Show code,
Much as I love SDL, I’m quite happy to look at alternatives and 
As promised, I’ve added the
