move ppm to asm representation to its own script
This commit is contained in:
18
readme.md
18
readme.md
@@ -25,16 +25,26 @@ The following branches contains variations, allowing comparisons of performances
|
||||
|
||||
## Build script
|
||||
|
||||
File inclusion is currently not supported by the game, so a `build.ts` script it provided that will concatenate the content of the hard-coded `.asm` files and output the result on stdout.
|
||||
Both scripts uses Deno's API, so you'll need to have a `deno` binary in your PATH.
|
||||
|
||||
It also convert the PPM assets (map and sprites) into ASM raw values representation and append it after all the code.
|
||||
### PPM to Symfony assembly
|
||||
|
||||
Output the Symfony assembly representation of the given PPM file.
|
||||
|
||||
Usage example:
|
||||
```sh
|
||||
./build.ts --minify > /path/to/the/game/schematics/architecture/Symfony/sandbox/main.asm
|
||||
./ppmToAsm.ts map map ./assets/map.ppm > ./dist/map.asm
|
||||
./ppmToAsm.ts sprite robot ./assets/sprites/robot.ppm > ./dist/robot.asm
|
||||
```
|
||||
|
||||
The script is build over Deno's API, so you'll need to have a `deno` binary in your PATH to use it that way.
|
||||
### Bundle and minify
|
||||
|
||||
Bundle all `.asm` and `.ppm` files and output the (optionaly minified) result.
|
||||
|
||||
Usage example:
|
||||
```sh
|
||||
./build.ts --minify > pacman.asm
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user