Merge branch 'main' into res-0-prerendered

This commit is contained in:
2026-05-01 21:48:24 +02:00
30 changed files with 938 additions and 693 deletions

View File

@@ -2,16 +2,3 @@ pub const game.direction_up = 0
pub const game.direction_right = 1
pub const game.direction_down = 2
pub const game.direction_left = 3
pub const game.direction_still = 4
; 1_000_000_000 nano second = 0x0000_0000_3B9A_CA00
; pub const game.tick_duration_0 = 0xCA00
; pub const game.tick_duration_1 = 0x3B9A
; pub const game.tick_duration_2 = 0x0000
; pub const game.tick_duration_3 = 0x0000
; 0.5 second = 500_000_000 nano second = 0x0000_0000_1DCD_6500
pub const game.tick_duration_0 = 0x6500
pub const game.tick_duration_1 = 0x1DCD
pub const game.tick_duration_2 = 0x0000
pub const game.tick_duration_3 = 0x0000

View File

@@ -1,21 +1,21 @@
; Screen pixel mode (settings #0)
; 0: ASCII 8
; 1: ASCII 24
; 2: Pixel 8
; 3: Pixel 24
; While in mode #2 (Pixel 8)
; Screen memory offset (settings #1)
; Screen resolutions (settings #2)
; 0. 80x60
; 1. 160x120
; 2. 256x192
; 3. 320x240
; 4. 640x480
; 5. 800x600
; 6. 920x720
; 7. 1024x768
/* Screen pixel mode (settings #0)
0: ASCII 8
1: ASCII 24
2: Pixel 8
3: Pixel 24
While in mode #2 (Pixel 8)
Screen memory offset (settings #1)
Screen resolutions (settings #2)
0. 80x60
1. 160x120
2. 256x192
3. 320x240
4. 640x480
5. 800x600
6. 920x720
7. 1024x768
*/
pub const screen.mode_index = 0
pub const screen.mode_value = 2
pub const screen.offset_index = 1

View File

@@ -2,9 +2,25 @@ 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.empty = 0
pub const sprites.rotation_0 = 0
pub const sprites.rotation_90 = 1
pub const sprites.rotation_180 = 2
pub const sprites.rotation_270 = 3
pub const sprites.empty = 0 ; must stay 0 (some code avoid addition when it knows the tile is empty)
pub const sprites.unimplemented = 1
pub const sprites.robot = 2
pub const sprites.ghost = 3
pub const sprites.coin = 4
pub const sprites.max = 4 ; for lookup table
pub const sprites.robot_up = 2
pub const sprites.robot_right = 3
pub const sprites.robot_down = 4
pub const sprites.robot_left = 5
pub const sprites.ghost = 6
pub const sprites.ghost_up = 6
pub const sprites.ghost_right = 7
pub const sprites.ghost_down = 8
pub const sprites.ghost_left = 9
pub const sprites.coin = 10
pub const sprites.max = 10 ; for lookup table