[channelf] Pacman Graphics Demo

  • From: "Blackbird" <darivard@xxxxxxxxxxxxxxx>
  • To: channelf@xxxxxxxxxxxxx
  • Date: Fri, 29 Oct 2004 22:16:23 -0500

Hi! This is Blackbird from AtariAge. Thought I'd give a shot at posting
something... so here's a demo of what I've written so far, which
displays a tiled pac-man playfield:

http://www.bingbangboom.us/files/channelF/ves-pacman-10.29.2004.zip

Enclosed is the binary and the source code. It's pretty basic, but in
any case, it's a start. The source includes a plotting function (using
the one in lights.asm, slightly modified to fit my needs), a
tile-drawing function (8x8 pixels), and a map drawing function, which
draws a 12x7 tiled map on the screen. Using tiles is much smaller and
portable than a full image in ROM, but it's murder balancing all the
loops and registers between the functions. :P The functions call each
other, so the registers are shared between them; however, the plot and
drawTile functions can each be called independently if you want to.

The code only works with the updated DASM compiler, because it uses some
of the opcodes f8tool doesn't understand (bz, bnz, and br, to name a
few), and the .byte directive. It isn't fully cleaned up, and is rather
inefficient, but it's commented liberally and hopefully easy to follow. 

That's pretty much it. The program just loops itself for now, but I'll
hopefully move on to controller input soon enough...

Other related posts: