A86: Nibbles source


[Prev][Next][Index][Thread]

A86: Nibbles source



Earlier today (yesterday...today...it all runs together), someone asked for
the source code to Nibbles.  Bill Nagel never released the source code to
his, so there really isn't any to look at.  My guess is that he was too
embarrassed, especially when you look at the size of the program :)

Well, I was bored, and because it was midnight there wasn't much else to do
(besides watch my roommate type his English paper...which he's still doing),
so I decided to see if I could code Nibbles for the 86.  The result is Snake
86, which is attached.  The code is 376 bytes, compared to ~2104 bytes for
Nagel's version.  Not that I'm trying to harp on it or anything, since it
was one of his first games (hmm...definitely don't want anyone to look at,
say, Invaders), and because it has a few more features than mine.  But
nonetheless, mine works, and should be bug free, being that it's such a
short program.

The point was to make a very small version of Nibbles.  The goal was under
500 bytes, set pretty much arbitrarily, and because I wouldn't expect such a
simple game to be much larger.  There are three things this version is
lacking: speed setting, high score and most importantly, levels.  Speed is
quite easy.  Just change the number of HALTs that it executes each time
through the main loop.  High score is easy too.  It just involves storing
the score and someone's initials in the program and writing it back.  Levels
aren't much harder, but require a little imagination to be done efficiently.
Everything is done on a pixel level, so to add levels, code just needs to
draw them to the screen.  I didn't implement them because I was lazy, and
it's past 4am and I have class tomorrow.  If anyone cares, I'll add all that
stuff, but I don't see much point at the moment.  Due to the file archivers
at ticalc.org not monitoring the list, this won't even get posted to
ticalc.org :)

Hmm, I think it's time to put those APA routines I wrote to good use and
write a GBC version...


--
David Phillips <david@acz.org>
http://www.acz.org/

snake86.asm