From: Lukas Krickl Date: Mon, 7 Oct 2024 15:36:32 +0000 (+0200) Subject: Made player sprite slightly taller X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=f3e6387c521fb237509af840788067c9253a717f;p=gbrg%2F.git Made player sprite slightly taller --- diff --git a/src/player.s b/src/player.s index 7d1e305..d77d0a0 100644 --- a/src/player.s +++ b/src/player.s @@ -3,11 +3,8 @@ .def int PLAYER_TILE_IDLE1 = 0x0E .def int PLAYER_TILE_IDLE2 = 0x1E -.def int LANTERN_TILE_IDLE1 = 0x0C +.def int PLAYER_TILE_IDLE3 = 0x2E -.def int BROOM_TILE_IDLE1 = 0x04 -.def int BROOM_TILE_IDLE2 = 0x14 -.def int BROOM_TILE_IDLE3 = 0x24 ; init the player ; inputs: ; hl: pointer to player memory @@ -179,6 +176,22 @@ player_update: ld a, b ld [hl+], a + ; obj 3 + ld a, d ; y + add a, OBJ_OFF_Y-8 + ld [hl+], a + ld a, e ; x + add a, 8 +OBJ_OFF_X-7 + ld [hl+], a + + ; itdle tile 2 + ld a, PLAYER_TILE_IDLE3 + ld [hl+], a + + ; flags + ld a, b + ld [hl+], a + ret ; uses a resource such as diff --git a/tiles/tileset0.inc b/tiles/tileset0.inc index ad1d71b..18a7307 100644 --- a/tiles/tileset0.inc +++ b/tiles/tileset0.inc @@ -125,7 +125,7 @@ .chr 00000000 .chr 00000000 ; tile 14 -.chr 00000003 +.chr 00000032 .chr 00000032 .chr 00000032 .chr 00000032 @@ -134,10 +134,10 @@ .chr 00000032 .chr 00000333 ; tile 15 -.chr 00003000 +.chr 00003111 .chr 00000333 -.chr 00032222 -.chr 03323222 +.chr 00033222 +.chr 03322222 .chr 32232232 .chr 32322322 .chr 03223223 @@ -269,7 +269,7 @@ .chr 00000000 .chr 00000000 ; tile 30 -.chr 00000000 +.chr 30000000 .chr 30000000 .chr 30000000 .chr 30000000 @@ -278,7 +278,7 @@ .chr 30000000 .chr 33000000 ; tile 31 -.chr 00300000 +.chr 11300000 .chr 33000000 .chr 23300000 .chr 22230000 @@ -418,9 +418,9 @@ .chr 00000000 .chr 00000000 .chr 00000000 -.chr 00000000 -.chr 00000000 -.chr 00000000 +.chr 00000030 +.chr 00000323 +.chr 00000323 ; tile 47 .chr 00000000 .chr 00000000