It's an interactive cheat sheet for Nova Drift.
haxelib install csv
Copy localization.csv
from Nova Drift directory to bin/
Do
haxe -lib csv -cp src -neko bin/gen.n -main Main
cd bin
neko gen.n
which generates index.html
.
And
haxe -cp src -js bin/script.js -main WebMain
which generates script.js
-
Extract game sprites using YYTextureView (open data.win, Show Sprites, Save Images).
-
Copy all textures starting with sHex to
base-full/
. -
Run
preproc.bat
to remove extra textures. -
Generate lower-resolution textures using ImageMagick:
for %v in (base-full\*.png) do @magick %v -resize 64x64^ base-mini\%~nxv
-
Generate texture atlas and texture CSS using free web variant of TexturePacker (set "Data format" to "CSS", set "Sprite prefix" to "hex").
-
Find-replace with regex in generated CSS file:
-sHex(\w+?)(?:_0)?\b
to
.$1
-
Replace
url(spritesheet.png)
withurl(hex.jpg)
in generated CSS file. -
Convert the PNG spritesheet to JPEG. Background color doesn't matter since we're using clipping anyway.
haxe -lib csv -cp src -neko bin/modgen.n -main ModGen
cd bin
neko modgen.n