wasm4
wasm4 copied to clipboard
Add get/set pixel routines
Currently, only for AssemblyScript. But I can also add for everyone else. @aduros wdyt?
I'm feeling like we should keep default API stubs very minimal. Things like pixel drawing, polygon drawing, etc. would be better to go in 3rd party libraries that can be maintained by other users as they see fit.
set / get pixel is quite basic and useful operation which is pretty tricky in wasm4 due to packing. And users may easily do it in suboptimal way. See example: https://github.com/aduros/wasm4/pull/474/commits/f128495f4e41ddcf8b44fbedba9863d164ce6fe4#diff-222620e907510b8af2a9e5b17a92c840a445fefa24f760b26babd640fa7eb6f8R745
I'm feeling like we should keep default API stubs very minimal. Things like pixel drawing, polygon drawing, etc. would be better to go in 3rd party libraries that can be maintained by other users as they see fit.
Would that 3rd party library eat the fixed 64 kb memory area reserved for the game etc.?