PICO-8 game: you're a chameleon with rope physics
Go to file
Kistaro Windrider b1cc74fe3b
Remove unused vars, convert tug_crate arg to table
The tug_crate conversion is for performance. `foreach(tbl, predefined_func)` is substantially faster than a standard `for` loop using the `all` iterator. However, if the function inside the foreach is defined inline, it's much slower due to closure-construction overhead (even though nothing is being closed over). Converting `tug_crate` to take a table as an argument allows foreach to feed right into it, and it also naturally suggests a rewrite a few lines down to get rid of duplicative listing of `mx0,my0,dmx,dmy`, saving several tokens.

I'm going to take a look at can_move to see if it's worth making iits mx0,my0,dmx,dmy arguments into a table as well.
2023-01-02 15:35:10 -08:00
chameleonic.p8 Remove unused vars, convert tug_crate arg to table 2023-01-02 15:35:10 -08:00
README.md Initial commit 2022-12-17 12:16:18 -08:00

EAT BUGS, SPACE SCUM