Skip to content

YAL-Game-Tools/nova-drift-cheatsheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What this is

It's an interactive cheat sheet for Nova Drift.

Initial setup for build

haxelib install csv

Building

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

[Re-]building textures

  1. Extract game sprites using YYTextureView (open data.win, Show Sprites, Save Images).

  2. Copy all textures starting with sHex to base-full/.

  3. Run preproc.bat to remove extra textures.

  4. Generate lower-resolution textures using ImageMagick:

for %v in (base-full\*.png) do @magick %v -resize 64x64^ base-mini\%~nxv
  1. Generate texture atlas and texture CSS using free web variant of TexturePacker (set "Data format" to "CSS", set "Sprite prefix" to "hex").

  2. Find-replace with regex in generated CSS file:

-sHex(\w+?)(?:_0)?\b

to

.$1
  1. Replace url(spritesheet.png) with url(hex.jpg) in generated CSS file.

  2. Convert the PNG spritesheet to JPEG. Background color doesn't matter since we're using clipping anyway.

[Re-]building module hint file

haxe -lib csv -cp src -neko bin/modgen.n -main ModGen
cd bin
neko modgen.n

Releases

No releases published

Packages

No packages published