Compare commits
8
Commits
res-2
..
02e1e4c6b3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02e1e4c6b3 | ||
|
|
d413170098 | ||
|
|
2c37af8dd0 | ||
|
|
f96e2420ef | ||
|
|
17c6b07367 | ||
|
|
f0656aca40 | ||
|
|
b0758c6976 | ||
|
|
3992863664 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -29,7 +29,7 @@ const reservedSpacePath = 'src/reserved_space.asm';
|
||||
|
||||
const instructionLength = 4; // in bytes
|
||||
const mapWidth = 15;
|
||||
const spriteWidth = 17;
|
||||
const spriteWidth = 5;
|
||||
|
||||
const mapMatchingStrings = {
|
||||
0x00_00_00: '0', // Empty
|
||||
|
||||
@@ -9,7 +9,14 @@ It thus should be able to run on the architecture and ISA the players have built
|
||||
The `main` branch contains a minimal implementation of the game.
|
||||
|
||||
The following branches contains variations, allowing comparisons of performances, visuals, gameplay, ...
|
||||
- `res-2`: 256x192 screen resolution, 17x17 tile
|
||||
- `res-2`:
|
||||
- `256x192` screen resolution
|
||||
- `17x17` tile resolution
|
||||
- `res-2-prerendered`:
|
||||
- `256x192` screen resolution
|
||||
- `17x17` tile resolution
|
||||
- initial screen prerendered
|
||||
- no sprite rotation
|
||||
|
||||
## Build script
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
; map size 16x12 (or 15x11 with margins)
|
||||
pub const map.width = 15
|
||||
pub const map.height = 11
|
||||
pub const map.size = 165 ; 11*15
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
; given:
|
||||
; -> 256x192 pixels screen
|
||||
; -> 15x11 tiles map
|
||||
; => 17x17 pixels tile
|
||||
; - 16x12 tiles map
|
||||
; - 5x5 pixels tile
|
||||
|
||||
pub const scene.margin_top = 2
|
||||
pub const scene.margin_bottom = 3
|
||||
pub const scene.margin_left = 0
|
||||
pub const scene.margin_right = 1
|
||||
pub const scene.margin_left = 2
|
||||
pub const scene.margin_right = 3
|
||||
@@ -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 = 2
|
||||
pub const screen.resolution_value = 0
|
||||
|
||||
pub const screen.width = 256
|
||||
pub const screen.height = 192
|
||||
pub const screen.width = 80
|
||||
pub const screen.height = 60
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
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.width = 5
|
||||
pub const sprites.height = 5 ; unused as sprite are all square
|
||||
pub const sprites.size = 25 ; height x width
|
||||
|
||||
pub const sprites.rotation_0 = 0
|
||||
pub const sprites.rotation_90 = 1
|
||||
|
||||
+1
-1
@@ -23,4 +23,4 @@ Resolution ID | Tile size (in pixels) | Comment
|
||||
-- | -- | --
|
||||
`0` | `5x5` | with a reminder of 5 pixels en width and 5 pixels in height.
|
||||
`1` | `10x10` | with a reminder of 10w and 10h
|
||||
`2` | `17x17` | with a reminder of 1w and 5h
|
||||
`2` | `17x17` | no reminder
|
||||
|
||||
Reference in New Issue
Block a user