aboutsummaryrefslogtreecommitdiffstats
path: root/constants/oam_constants.asm
diff options
context:
space:
mode:
authorDaniel Harding <33dannye@gmail.com>2018-06-26 22:09:09 -0500
committerGitHub <noreply@github.com>2018-06-26 22:09:09 -0500
commit6ba3765c5932996f5da6417ae703794ff10bb1cb (patch)
treef8156a300730857439533eb62a9422da9b808fa5 /constants/oam_constants.asm
parentUse rgblink dmg mode (diff)
parentUpdated constants for intro (diff)
downloadpokeyellow-6ba3765c5932996f5da6417ae703794ff10bb1cb.tar.gz
pokeyellow-6ba3765c5932996f5da6417ae703794ff10bb1cb.tar.xz
pokeyellow-6ba3765c5932996f5da6417ae703794ff10bb1cb.zip
Merge pull request #184 from Pokeglitch/intro-updates
Updated the intro
Diffstat (limited to 'constants/oam_constants.asm')
-rwxr-xr-xconstants/oam_constants.asm13
1 files changed, 11 insertions, 2 deletions
diff --git a/constants/oam_constants.asm b/constants/oam_constants.asm
index ddf95648..2d34048d 100755
--- a/constants/oam_constants.asm
+++ b/constants/oam_constants.asm
@@ -5,5 +5,14 @@ OAMFLAG_VFLIPPED EQU %00100000 ; OAM flag flips the sprite vertically.
; Used for making left facing sprites face right and to alternate between left and right foot animation when walking up or down
; OAM attribute flags
-OAM_HFLIP EQU %00100000 ; horizontal flip
-OAM_VFLIP EQU %01000000 ; vertical flip
+OAM_PALETTE EQU %111
+OAM_TILE_BANK EQU 3
+OAM_OBP_NUM EQU 4 ; Non CGB Mode Only
+OAM_X_FLIP EQU 5
+OAM_Y_FLIP EQU 6
+OAM_PRIORITY EQU 7 ; 0: OBJ above BG, 1: OBJ behind BG (colors 1-3)
+
+; OAM attribute masks
+OAM_HFLIP EQU 1 << OAM_X_FLIP ; horizontal flip
+OAM_VFLIP EQU 1 << OAM_Y_FLIP ; vertical flip
+OAM_BEHIND_BG EQU 1 << OAM_PRIORITY ; behind bg (except color 0)