sehugg / dithertron

Retro 8-bit bitmap converter supporting many formats
GNU General Public License v3.0
75 stars 11 forks source link

ASM as file assets instead of strings #16

Closed robin-raymond closed 1 year ago

robin-raymond commented 1 year ago

I think it would be worth making the assembly code text asm asset text files that are imported as strings at compile time rather than putting them into the export as strings. Maybe using something like raw-loader? I don't want to mess with your project files but I think that would be a nice cleanup.

sehugg commented 1 year ago

Yes, definitely. It's gotten a little unwieldy. It needs to be refactored into TS modules, but splitting up files is a first good step. It uses esbuild so the typical webpack stuff isn't available, but maybe plain old fetch() might work.