handle multi-line comments

This commit is contained in:
2026-05-01 18:27:51 +02:00
parent 92ac475d58
commit c78a2ff7a0
8 changed files with 188 additions and 168 deletions

View File

@@ -4,11 +4,13 @@ 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
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

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