Colin McMillen
eb7757a8b3
Change shot sprite to be up against left edge.
Also fix a bug where some entries of the sprite buffer weren't being
cleared.
9 years ago
Colin McMillen
6eab6050e8
Allow for negative x-velocity.
9 years ago
Colin McMillen
1dc44a3f00
Move sprite table RAM location.
9 years ago
Colin McMillen
bac214a95b
Fix subtraction / two's complement bug.
9 years ago
Colin McMillen
e39f802bd5
Loop through shots array to find an empty spot.
9 years ago
Colin McMillen
7d0140d233
Alternate up-shots and down-shots.
9 years ago
Colin McMillen
5ace3844dc
Shots can now have negative y-velocity.
9 years ago
Colin McMillen
611b4d20f2
Update world & sprites in separate loops.
Also give shots a y-velocity.
9 years ago
Colin McMillen
25a2fb20ab
Change bit-format of scratch sprite table.
Now each sprite's bits count as: "1 = large" and "1 = enabled", which is
more intuitive.
9 years ago
Colin McMillen
48db4aca58
Don't bother storing zeroes to joypad registers.
9 years ago
Colin McMillen
116d591c60
Update shot speed and cooldown timer.
9 years ago
Colin McMillen
510aca6ed3
More register documentation.
9 years ago
Colin McMillen
49abebc211
Allow more than 4 shots.
9 years ago
Colin McMillen
0e7d46c46f
Don't read joysticks during auto-joypad read.
9 years ago
Colin McMillen
5c45dfa834
Make macros for setting 16bit/8bit registers.
Also disable NMI while processing, and start refactoring joypad handler.
9 years ago
Colin McMillen
8c5b4232c1
Add a period.
9 years ago
Colin McMillen
36b54692c1
Simplify handling of secondary sprite table.
We now keep a buffer that has one byte per sprite, and later pack it
into the bitfield format wanted by OAM, instead of calculating the
bitfield manually during UpdateWorld
9 years ago
Colin McMillen
7a04a359fa
Tighten up vBlankCounter code.
9 years ago
Colin McMillen
325006664b
and+cmp -> bit where possible
9 years ago
Colin McMillen
7b637436b8
Define a constant for shot array length.
9 years ago
Colin McMillen
c94ac75c45
Remove trailing whitespace.
9 years ago
Colin McMillen
f324413101
Use symbolic constant for backgroundBlue.
9 years ago
Colin McMillen
292cb079a5
Allow for multiple shots at once.
9 years ago
Colin McMillen
2bf56bb422
Change addresses back, to match the comment.
9 years ago
Colin McMillen
a0532f0429
Refactor to use .defines for many memory locations.
9 years ago
Colin McMillen
7b6cd3f583
Reformat main file.
Mostly moved stuff around so that it's in a more sensible order.
9 years ago
Colin McMillen
1319e4f52d
Add the ability to shoot with the B button.
Forgot to update the main file.
9 years ago
Colin McMillen
025d0ea3ec
Use 32x32 sprites for ship.
Also use neviksti's pcx2snes rather than eKid's.
9 years ago
Colin McMillen
55fdf055fe
Initialize BG3 tilemap with random numbers.
Fill bank 2 with random bytes for things that want randomness.
Move all the graphics data to bank 1.
9 years ago
Colin McMillen
e2a51abc7b
Use new ship sprite.
Taken from:
http://opengameart.org/content/spaceships-1
and shrunk down a bit.
9 years ago
Colin McMillen
476495574f
Change main file (forgot in previous commit.)
9 years ago
Colin McMillen
fe0ae0d008
More realistic background.
9 years ago
Colin McMillen
ffd584c19e
Re-enable the background, and scroll it.
9 years ago
Colin McMillen
dceedf64ba
Use proper sprites.
9 years ago
Colin McMillen
77ee989fb0
Add pcx2snes to build script.
9 years ago
Colin McMillen
788d4a884b
Add an airplane tile.
9 years ago
Colin McMillen
41155fadec
Add a happy-face tile.
9 years ago
Colin McMillen
ace9287755
Rename InitSNES.asm -> init.asm
9 years ago
Colin McMillen
abd636a93e
Add more DMA registers. Add links to docs.
9 years ago
Colin McMillen
2da42f1eb1
Add a "ship" and let the player move around.
This includes some tile / palette data in a separate file and some code
for DMA'ing that data into VRAM. This is used to render a "ship" (white
circle) that the player can move around with the D-Pad.
Added a whole bunch of named registers (& documentation for them) to
registers.asm.
9 years ago
Colin McMillen
1925869fb6
Add registers.asm file. Refer to registers by name.
9 years ago
Colin McMillen
1ab6ee37f3
Set background color on every frame.
Make some comments more clear.
9 years ago
Colin McMillen
8a646c4266
Tweak comments in header.asm.
9 years ago
Colin McMillen
61b82e2d6f
mv header.inc -> header.asm
9 years ago
Colin McMillen
ab032a4348
Refactor SetBackgroundColor.
Some other minor comment clarifications & code formatting.
9 years ago
Colin McMillen
424ddce8fb
Initial import.
9 years ago