Skip to content

jefvel/game-base

Repository files navigation

turbo logo

A very barebones Heaps game template, a bit inspired by Deepnight's gamebase (Use that one if you wanna make games, it's much more polished than this!)

and heeps (based my 3D sprite implementation on the one that exists here).

Some current features:

  • Possibility to set 2D pixel size for the screen.

  • Separate UI scene for high

  • Simple entity and gamestate system with fixed timestep updates.

  • A HTML template file that gets exported along with the js output.

  • The release JS build uses the Google closure js minifier.

  • Automatic aseprite file tilesheet generation. (Generates a png plus a .tilesheet file)

  • The .tilesheet file can be accessed using the resource system:

hxd.Res.img.testcharacter_tilesheet.toSprite2D(); // Creates a h2d.Bitmap type object with animation support
hxd.Res.img.testcharacter_tilesheet.toSprite3D(); // Creates a 3D billboard type mesh for h3d.

Comes with fonts created by somepx

Notes

Generating MSDF fonts

I use the npm package msdf-bmfont, install it globally, and then run

msdf-bmfont --font-size 48 -b 0 -r 4 --smart-size --pot --smart-size FONT-NAME.ttf

About

Heaps Turbo Game Base

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published