jjant / runty8

A Pico8 clone in Rust.
MIT License
222 stars 17 forks source link

Fix Editor not correctly picking up its assets #34

Closed jjant closed 1 year ago

jjant commented 1 year ago

Currently the editor picks up the game's assets (sprite sheet, etc) to displays its own icons, which leads to problems like this:

image


A solution would probably be to include_str! the sprite sheet, put it in a once_cell::Lazy and add a Pico8::editor_spr method through an extension trait that the editor calls.

jjant commented 1 year ago

Done in #38.