From 5588d4c29af2bc7d813fe795b633c1e258100047 Mon Sep 17 00:00:00 2001 From: Robin Chappatte Date: Fri, 24 Apr 2026 09:12:19 +0200 Subject: [PATCH] update consts to reflect the new sprite size --- build.ts | 2 +- src/consts/map.asm | 1 - src/consts/scene.asm | 13 +++++++------ src/consts/screen.asm | 6 +++--- src/consts/sprites.asm | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/build.ts b/build.ts index e39a66d..7e0eac7 100755 --- a/build.ts +++ b/build.ts @@ -27,7 +27,7 @@ const asmFilePaths = [ ]; const mapWidth = 15; -const spriteWidth = 5; +const spriteWidth = 17; const mapMatchingStrings = { 0x00_00_00: 'U8 0', // Empty diff --git a/src/consts/map.asm b/src/consts/map.asm index 07bdf6a..ed2a0b0 100644 --- a/src/consts/map.asm +++ b/src/consts/map.asm @@ -1,4 +1,3 @@ -; map size 16x12 (or 15x11 with margins) pub const map.width = 15 pub const map.height = 11 pub const map.size = 165 ; 11*15 diff --git a/src/consts/scene.asm b/src/consts/scene.asm index 37c160e..fc4807d 100644 --- a/src/consts/scene.asm +++ b/src/consts/scene.asm @@ -1,8 +1,9 @@ ; given: -; - 16x12 tiles map -; - 5x5 pixels tile +; -> 256x192 pixels screen +; -> 15x11 tiles map +; => 17x17 pixels tile -pub const scene.margin_top = 2 -pub const scene.margin_bottom = 3 -pub const scene.margin_left = 2 -pub const scene.margin_right = 3 \ No newline at end of file +pub const scene.margin_top = 0 +pub const scene.margin_bottom = 0 +pub const scene.margin_left = 0 +pub const scene.margin_right = 0 \ No newline at end of file diff --git a/src/consts/screen.asm b/src/consts/screen.asm index a4b8231..d15649f 100644 --- a/src/consts/screen.asm +++ b/src/consts/screen.asm @@ -20,7 +20,7 @@ pub const screen.mode_index = 0 pub const screen.mode_value = 2 pub const screen.offset_index = 1 pub const screen.resolution_index = 2 -pub const screen.resolution_value = 0 +pub const screen.resolution_value = 2 -pub const screen.width = 80 -pub const screen.height = 60 +pub const screen.width = 256 +pub const screen.height = 192 diff --git a/src/consts/sprites.asm b/src/consts/sprites.asm index 8c6f485..00f48fd 100644 --- a/src/consts/sprites.asm +++ b/src/consts/sprites.asm @@ -1,6 +1,6 @@ -pub const sprites.width = 5 -pub const sprites.height = 5 ; unused as sprite are all square -pub const sprites.size = 25 ; height x width +pub const sprites.width = 17 +pub const sprites.height = 17 ; unused as sprite are all square +pub const sprites.size = 289 ; height x width pub const sprites.rotation_0 = 0 pub const sprites.rotation_90 = 1