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
29d4ff2309
Update README.md
9 years ago
Colin McMillen
398d62d22d
Update README.md
9 years ago
Colin McMillen
12d4c9c5f4
Update README.md
9 years ago
Colin McMillen
f51a544956
Various refactorings.
Rename InitializeFoo -> InitFoo.
Break UpdateWorld into a few functions.
shotArray -> playerShotArray.
9 years ago
Colin McMillen
98aedecd4c
Create array for enemy shots.
Move "memory layout" comments and definitions into memory.asm.
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
54d2828bf6
Shinier star graphic.
9 years ago
Colin McMillen
b802431925
Change output file extension .smc -> .sfc
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
782db84d48
Add the ability to shoot with the B button.
For now, only one shot can be in-flight at a time.
9 years ago
Colin McMillen
a7fec6d4be
Remove unused PCX 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
e8d57e5cbe
Add *.pic and *.clr to gitignore.
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
6fc775a411
Animate player sprite. Use BG3 instead of BG2.
Also deleted some dead code with coordinate-conversion for scrolling the
backgrounds based on player input.
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