use prerendered screen and remove sprite rotation
This commit is contained in:
13
build.ts
13
build.ts
@@ -9,6 +9,10 @@ if (Deno.args.length !== 0) {
|
||||
|
||||
import { TextLineStream } from "jsr:@std/streams@1.1.0";
|
||||
|
||||
const instructionLength = 4; // in bytes
|
||||
const mapWidth = 15;
|
||||
const spriteWidth = 17;
|
||||
|
||||
const asmFilePaths = [
|
||||
"src/consts/arch.asm",
|
||||
"src/consts/game.asm",
|
||||
@@ -23,14 +27,10 @@ const asmFilePaths = [
|
||||
|
||||
"src/lib/game.asm",
|
||||
"src/lib/drawing.asm",
|
||||
"src/lib/sprite_rotation.asm",
|
||||
];
|
||||
const initialScreenPath = 'assets/screen.ppm';
|
||||
const reservedSpacePath = 'src/reserved_space.asm';
|
||||
|
||||
const instructionLength = 4; // in bytes
|
||||
const mapWidth = 15;
|
||||
const spriteWidth = 17;
|
||||
|
||||
const mapMatchingStrings = {
|
||||
0x00_00_00: '0', // Empty
|
||||
0xFF_00_00: '1', // Wall
|
||||
@@ -104,6 +104,9 @@ console.log(`
|
||||
;
|
||||
`);
|
||||
|
||||
const screenBytes = await getDataFromPPM(initialScreenPath);
|
||||
console.log(bytesToAsmConstU8('screen', screenBytes, spritesMatchingStrings, 1));
|
||||
|
||||
console.log(await Deno.readTextFile(reservedSpacePath))
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user