Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object table expansion #12

Merged
merged 4 commits into from
Jun 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified SpaceGame.nes
Binary file not shown.
14 changes: 13 additions & 1 deletion src/constants.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ PPUADDR = $2006
PPUDATA = $2007
OAMADDR = $2003
OAMDMA = $4014
OAMTAB = $0200

JOYPAD1 = $4016
JOYPAD2 = $4017
Expand All @@ -14,4 +15,15 @@ SPRITETAB = $0200
PLAYERLOC = SPRITETAB

PL_Y = $020C ; player sprite center pt y
PL_X = $020F ; player sprite center pt x
PL_X = $020F ; player sprite center pt x

;; GLOBALS
Y_SCROLL_LIMIT = $F0
BULLET_Y_LIMIT = $03
ENEMY_Y_LIMIT = $DE

GUN_COOLDOWN = $10
ENEMY_SPAWN_RATE = $7F

OBJECT_SIZE = $04
OBJECT_TABLE_LEN = $40
Loading