refactor: add helpers for file I/O, main script detection, safe strncpy, & make hal generic

This commit is contained in:
asrael 2025-12-06 15:04:53 -06:00
parent a33d4c0068
commit 097e3a604d
No known key found for this signature in database
GPG key ID: 2786557804DFAE24
19 changed files with 323 additions and 454 deletions

4
demo/cart.fnl Normal file
View file

@ -0,0 +1,4 @@
{:title "pxl8 demo"
:resolution "640x360"
:window-size [1280 720]
:pixel-mode "indexed"}

View file

@ -61,8 +61,6 @@
:height 64
:base_color 4})]
(pxl8.upload_atlas)
(let [result (pxl8.world_apply_textures world [
{:name "floor"
:texture_id floor-tex