Made player sprite slightly taller
authorLukas Krickl <lukas@krickl.dev>
Mon, 7 Oct 2024 15:36:32 +0000 (17:36 +0200)
committerLukas Krickl <lukas@krickl.dev>
Mon, 7 Oct 2024 15:36:32 +0000 (17:36 +0200)
src/player.s
tiles/tileset0.inc

index 7d1e305f4e3794d306a4abeb019081ede1ff6433..d77d0a081440a89b1a3f28d66060a9718092c819 100644 (file)
@@ -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 
index ad1d71b65b7c2c57eda4128c12a83274bd1701d0..18a7307fd31cdb59339c57813c85107a8a0836a9 100644 (file)
 .chr 00000000
 .chr 00000000
 ; tile 14
-.chr 00000003
+.chr 00000032
 .chr 00000032
 .chr 00000032
 .chr 00000032
 .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
 .chr 00000000
 .chr 00000000
 ; tile 30
-.chr 00000000
+.chr 30000000
 .chr 30000000
 .chr 30000000
 .chr 30000000
 .chr 30000000
 .chr 33000000
 ; tile 31
-.chr 00300000
+.chr 11300000
 .chr 33000000
 .chr 23300000
 .chr 22230000
 .chr 00000000
 .chr 00000000
 .chr 00000000
-.chr 00000000
-.chr 00000000
-.chr 00000000
+.chr 00000030
+.chr 00000323
+.chr 00000323
 ; tile 47
 .chr 00000000
 .chr 00000000