diff options
author | Astatin <[email protected]> | 2025-05-07 08:51:17 +0200 |
---|---|---|
committer | Astatin <[email protected]> | 2025-05-07 08:51:17 +0200 |
commit | 7284cc51dedb4f77fe6c1fa1da735b52609b1d4d (patch) | |
tree | 433d8e663e7943d1078c7ba4e4dbbab6356dea96 | |
parent | 245c6e40f7199e4239763bae41722a03e00abfab (diff) |
Fix mouses movements
-rw-r--r-- | enemiesattacks/walk.gbasm | 8 | ||||
-rw-r--r-- | map/dungeons.gbasm | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/enemiesattacks/walk.gbasm b/enemiesattacks/walk.gbasm index ad17ad0..5de471f 100644 --- a/enemiesattacks/walk.gbasm +++ b/enemiesattacks/walk.gbasm @@ -77,7 +77,9 @@ Walking: ; entity XY in BC, Breaks DE INC A OR $08 PUSH BC - CALL =Get_Position_After_Move + LD D, A + LD A, $01 + .ADD_A_TO_DIRECTION_BC CALL =Is_Collisionable POP BC CP $00 @@ -123,8 +125,8 @@ Walking: ; entity XY in BC, Breaks DE .Check_Collision: PUSH BC - LD A, D - CALL =Get_Position_After_Move + LD A, $01 + .ADD_A_TO_DIRECTION_BC CALL =Is_Collisionable CALL =Carve_Entity_Collision_Map POP BC diff --git a/map/dungeons.gbasm b/map/dungeons.gbasm index 5236b29..5d75952 100644 --- a/map/dungeons.gbasm +++ b/map/dungeons.gbasm @@ -88,13 +88,11 @@ Dungeon: .name: .DB =Dungeon_Name_1_Txt .max_floor: .DB 0x0a, inv(0x0a) .spawning_patterns: - .DB $04, $04, $04, $04, 0b11111111 - ; UNDER THIS IS THE REAL ONE .DB $02, $02, $02, $05, 0b00000010 .DB $02, $02, $03, $05, 0b00100011 .DB $02, $02, $00, $05, 0b00100111 .DB $00, $02, $03, $05, 0b00011101 - .DB $02, $02, $00, $05, 0b00111111 + .DB $02, $02, $04, $05, 0b00111111 .DB $02, $00, $03, $05, 0b00011111 - .DB $00, $00, $03, $05, 0b00011111 - .DB $00, $00, $03, $05, 0b00111111 + .DB $00, $04, $03, $05, 0b00011111 + .DB $00, $04, $03, $05, 0b00111111 |