2018 is here and so is the year of NES Development in Assembly!

So, happy new year, I haven’t updated the blog in ages, my bad. A few things have happened since the last post. Christmas, Halloween and my beginnings of learning NES Development and the lowest level of language I’ll ever attempt to learn, ASSEMBLY (ASM)!

I attempted some ASM on the Atari 2600 a year ago to little success but decided, after a chat to the guys at Mega Cat Studios, to give it the college try.

The first 2 projects started and finished without really finishing, but that’s to be expected really, it’s a new language to me and I’m still learning a lot about it. Needless to say, it’s a lot more involved than C, as you’re dealing with the raw bytes and nothing else, which feels stark compared to anything else but I’m ableto understand a lot more of it now and feel that game #3, a port of the amazing Flapadiddle by Jayenkai, will be a worthy first completed game.

The first 2 games, taught me a lot about ASM and gave me some guidance as to how to organise my code as well as how backgrounds and palettes work. So, I put together the beginnings of a port of Invasion VS from my days of OUYA coding which got a fair way, then btibitjam came around so I decided to take what I’d learnt and put it into a gamejam.

invasion vs - nes eidtion - homebrew attempt #1super floofy sheepie - homebrew test #2 To be blunt, it didn’t work out, I ran out of time and spent most of August feeling pretty downbeat over everything, eventually picking myself up again mid October to retry again, but with the task of creating a procedurally generated game.

This meant creating a seeded linear randomiser in asm, that produces reasonably random, set values. After a while of researching I came across a simple one for 8-bit values which simply multiplied by 13 and added 1.

After protottypinmg some levels in PHP and GDLib I felt ready to tackle this in ASM and so far we have the following.

It’s actually playing pretty well and works in both emulator and on my PAL NES, there’s lots of features I want to add to this game and so far, it only has 5kb of game code out of an available 32kb, so ,there’s lots of scope available.

Each level is procedurally generated with a seed based on the internal framecounter and, whilst the platform placement still leaves much to be desired (and coded in properly) It feels like the game I’ve loved playing for a lot of last year.

You should check it out by the way, it’s both FREE and awesome [Download Flapadiddle]

More updates on the way.

Ludum Dare 38- Hives Postmortem

So, with the compo entry complete last night and a few hours of sleep behind me. Now’s probably a good time to look at what is feel went well and not-so-well with the game during it’s short development cycle.

ld38-gameplay-1So, what went well?

Firstly I was happy with the theme of “a small world” I had an idea ready pretty quickly so could get stuck into the development of the game and it’s assets quite smoothly, despite the challenges associated with development on the classic gameboy (CPU, RAM, deciding whether to build with ROM banking in mind or not, etc.)

My homemade tools worked well (fairly well anyway).

Despite a couple of hiccups at the start with tile mapping (I had to fall back to manually doing this on a tile by tile basis) importing the graphics worked pretty reliably.

There is a FULL game loop, with side-fluff!

I (probably foolishly) worked on the non-gameplay parts for the first part of the game jam. Resulting in a fairly nice menu system with not much gameplay present, just basic player movement.

Despite my focus on different areas of the game initially, the resulting game (whilst simple and rather short) I feel is pretty nice. Not anything out there but challenging enough with multiple enemy types being added as you progress.

I accepted that the main game was pretty much done come the 2nd evening and spent most of the remaining 6 or so hours on adding more fluff including:

A proper high score table (with initials)

Fixing the levels on the SFX, adding more SFX and explosions when needed.

Adding fading transitions between the screens where appropriate

And, just becuase I was feeling particularly crazy ( and most older console games have this) a Demo mode.

The Demo player isn’t the cleverest as the fake joypad input is largely randomized, but with a little bit of logic to feel more authentic. It appears if you leave the title screen alone for 10 seconds and will play itself until you either press start or the beehives reach below a certain level of hit points.

Coding went well, the initial scope of the game was fairly small so it didn’t shrink that much compared to the original idea.


What Went Wrong.

Whilst I’m happy that the game is fairly complete, it is missing some elements which I’d like to add at some point in the future, including background music, power ups and more obvious gameplay progression as your score increases. (I mean, there’s more enemies and more types later on but it feels more Atari 2600 than it does Gameboy in parts)

The game length is okay for a game jam game but the action isn’t as exciting as it was in other gameboy games (which admittedly, I’ve spent more time on) such as, Infinitron or Formula Racing. I could fix this later with other elements being added, such as roughly targetted enemy shots and perhaps a boss-style enemy, ROM space permitting.


All in All

I’m fairly happy with the game made considering the time available. It fits the theme, is pretty much as complete as I could make this time around but I really, really need to learn or make a music tool that works well for me!

Just so I can implement the tracks in my ROMs with ease and not eat up much CPU (or ROM space) at the same time, expect bit-by-bit optimisation I guess!

Here’s to the next game jam ( and possibly some more tools to develop in the meanwhile)

Also, play the gameboy game yourself! Clicky Here!

Ludum Dare 38 Entry – Hives

Right, the Ludum Dare website seems to be in a bit of a usability pickle for me so I’ve uploaded the source code and Gameboy ROM here just in-case things have gone wrong somewhere, also, Pictures!

Brief Overview of the game also:

In Hives you take on the role of a bee who has been tasked to defend 3 hives in this side scrolling shooter.

Defend you hives from predators including wasps, bees and spiders, intent on destroy your hives with every contact they make.

Take them down with your Atomic Stinger fast to prevent further damage and repair hives with your personal shield.

Run into an enemy? No worries, another drone will soon be dispatched.

Record your progress on the high score board and hey, if you’re too shattered after Ludum Dare to even play the game, wait 10 seconds on the title screen for a quick demo.

ld38-title-1

ld38-gameplay-2 HIVEShIGHsCORESld38-gameplay-1