Commit Graph

91 Commits

Author SHA1 Message Date
Colin McMillen
52ac6e0cbe Display 4-digit player score. 2015-06-07 10:08:22 -04:00
Colin McMillen
16d948d061 Tweak "7" character in font. 2015-06-07 09:41:46 -04:00
Colin McMillen
bf92ca0be9 Add a font for digits and a fake player score. 2015-06-07 09:39:23 -04:00
Colin McMillen
7eeeca9487 Add only one point per enemy killed. 2015-06-07 08:57:05 -04:00
Colin McMillen
ac5dcc504a Check collisions between player shots & enemies. 2015-06-07 08:55:45 -04:00
Colin McMillen
c5c3297237 Pull out a separate CheckCollision function. 2015-06-07 08:04:37 -04:00
Colin McMillen
4ca3bec032 Small code cleanups. 2015-06-07 07:28:43 -04:00
Colin McMillen
a387160fdd Make an explicit cooldown for spawning the next ship. 2015-06-06 18:14:20 -04:00
Colin McMillen
c17b137ab2 Remove username from TODOs 2015-06-06 18:05:57 -04:00
Colin McMillen
08fae310e8 Add shots that come from enemy ships. 2015-06-06 12:52:25 -04:00
Colin McMillen
1a37dfe08b Add screenshot to README.md 2015-06-06 11:30:31 -04:00
Colin McMillen
aec5466f74 Update README.md 2015-06-06 10:25:47 -04:00
Colin McMillen
d7f0119cb6 Tweak ship / shot spawn rates. 2015-06-06 10:05:46 -04:00
Colin McMillen
d460a519af Add enemy ships. 2015-06-06 08:38:37 -04:00
Colin McMillen
1c7b6fde81 Tweak to collision-detection. 2015-06-01 23:11:50 -04:00
Colin McMillen
ca8926f567 Add display of player health. 2015-06-01 23:05:37 -04:00
Colin McMillen
b238fa2d37 Collision detection between player and enemy shots. 2015-06-01 21:23:53 -04:00
Colin McMillen
f5b67dd535 Change shots to be single-shot and 8x8 sprite size. 2015-06-01 19:42:19 -04:00
Colin McMillen
a92499fc40 Fix a bug - *now* we don't need InitSpriteTables. 2015-06-01 00:35:25 -04:00
Colin McMillen
abddbf0033 Turns out we did still need InitSpriteTables. 2015-06-01 00:28:43 -04:00
Colin McMillen
2bb1bc161d Add multiple enemy shots. 2015-06-01 00:18:03 -04:00
Colin McMillen
4bf0033962 Make enemy sprites red. 2015-05-31 18:08:52 -04:00
Colin McMillen
526bc9e320 Spawn enemy shots from right edge of screen. 2015-05-31 18:03:46 -04:00
Colin McMillen
d81c9a9e4b Refactor jmp -> bra. 2015-05-31 17:40:22 -04:00
Colin McMillen
29d4ff2309 Update README.md 2015-05-31 17:33:45 -04:00
Colin McMillen
398d62d22d Update README.md 2015-05-31 17:33:32 -04:00
Colin McMillen
12d4c9c5f4 Update README.md 2015-05-31 17:24:04 -04:00
Colin McMillen
f51a544956 Various refactorings.
Rename InitializeFoo -> InitFoo.
Break UpdateWorld into a few functions.
shotArray -> playerShotArray.
2015-05-31 17:20:13 -04:00
Colin McMillen
98aedecd4c Create array for enemy shots.
Move "memory layout" comments and definitions into memory.asm.
2015-05-31 17:07:01 -04:00
Colin McMillen
4521c5d96b Remove InitializeSpriteTables routine. 2015-05-31 16:49:22 -04:00
Colin McMillen
0fa70c0889 Make a table of possible shot velocities.
Also fix bug caused by omission of "clc" before "adc".
2015-05-31 16:30:17 -04:00
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.
2015-05-31 15:05:37 -04:00
Colin McMillen
6eab6050e8 Allow for negative x-velocity. 2015-05-31 14:31:13 -04:00
Colin McMillen
54d2828bf6 Shinier star graphic. 2015-05-31 13:35:06 -04:00
Colin McMillen
b802431925 Change output file extension .smc -> .sfc 2015-05-31 12:32:36 -04:00
Colin McMillen
1dc44a3f00 Move sprite table RAM location. 2015-05-31 12:27:30 -04:00
Colin McMillen
bac214a95b Fix subtraction / two's complement bug. 2015-05-31 11:36:14 -04:00
Colin McMillen
e39f802bd5 Loop through shots array to find an empty spot. 2015-05-31 11:31:18 -04:00
Colin McMillen
7d0140d233 Alternate up-shots and down-shots. 2015-05-31 11:05:04 -04:00
Colin McMillen
5ace3844dc Shots can now have negative y-velocity. 2015-05-31 10:45:29 -04:00
Colin McMillen
611b4d20f2 Update world & sprites in separate loops.
Also give shots a y-velocity.
2015-05-30 22:43:27 -04:00
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.
2015-05-30 12:02:25 -04:00
Colin McMillen
48db4aca58 Don't bother storing zeroes to joypad registers. 2015-05-30 11:32:35 -04:00
Colin McMillen
116d591c60 Update shot speed and cooldown timer. 2015-05-30 11:08:26 -04:00
Colin McMillen
510aca6ed3 More register documentation. 2015-05-30 11:04:22 -04:00
Colin McMillen
49abebc211 Allow more than 4 shots. 2015-05-30 10:53:31 -04:00
Colin McMillen
0e7d46c46f Don't read joysticks during auto-joypad read. 2015-05-30 09:28:07 -04:00
Colin McMillen
5c45dfa834 Make macros for setting 16bit/8bit registers.
Also disable NMI while processing, and start refactoring joypad handler.
2015-05-30 09:03:55 -04:00
Colin McMillen
8c5b4232c1 Add a period. 2015-05-29 08:04:38 -04:00
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
2015-05-29 08:03:20 -04:00