Colin McMillen
d7f0119cb6
Tweak ship / shot spawn rates.
9 years ago
Colin McMillen
d460a519af
Add enemy ships.
9 years ago
Colin McMillen
1c7b6fde81
Tweak to collision-detection.
9 years ago
Colin McMillen
ca8926f567
Add display of player health.
9 years ago
Colin McMillen
b238fa2d37
Collision detection between player and enemy shots.
9 years ago
Colin McMillen
f5b67dd535
Change shots to be single-shot and 8x8 sprite size.
9 years ago
Colin McMillen
a92499fc40
Fix a bug - *now* we don't need InitSpriteTables.
9 years ago
Colin McMillen
abddbf0033
Turns out we did still need InitSpriteTables.
9 years ago
Colin McMillen
2bb1bc161d
Add multiple enemy shots.
9 years ago
Colin McMillen
4bf0033962
Make enemy sprites red.
9 years ago
Colin McMillen
526bc9e320
Spawn enemy shots from right edge of screen.
9 years ago
Colin McMillen
d81c9a9e4b
Refactor jmp -> bra.
9 years ago
Colin McMillen
f51a544956
Various refactorings.
Rename InitializeFoo -> InitFoo.
Break UpdateWorld into a few functions.
shotArray -> playerShotArray.
9 years ago
Colin McMillen
4521c5d96b
Remove InitializeSpriteTables routine.
9 years ago
Colin McMillen
0fa70c0889
Make a table of possible shot velocities.
Also fix bug caused by omission of "clc" before "adc".
9 years ago
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