update consts to reflect the new sprite size

This commit is contained in:
2026-04-24 09:12:19 +02:00
parent e3cf5cdfa1
commit 5588d4c29a
5 changed files with 14 additions and 14 deletions

View File

@@ -27,7 +27,7 @@ const asmFilePaths = [
];
const mapWidth = 15;
const spriteWidth = 5;
const spriteWidth = 17;
const mapMatchingStrings = {
0x00_00_00: 'U8 0', // Empty

View File

@@ -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

View File

@@ -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
pub const scene.margin_top = 0
pub const scene.margin_bottom = 0
pub const scene.margin_left = 0
pub const scene.margin_right = 0

View File

@@ -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

View File

@@ -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