Commit Graph
8 Commits
Author SHA1 Message Date
kistaro 78e87ffd55 Write a crappy level selector for debug/dev purposes. 2022-12-18 23:54:14 -08:00
kistaro 0c0a460688 Add "dotted lines" spacing out level placement in the map. Also crudely drawn ID numbers. 2022-12-18 23:54:14 -08:00
kistaroandpyrex 6e97d16222 label tabs (#6)
Reviewed-on: #6
Co-authored-by: Kistaro Windrider <kistaro@gmail.com>
Co-committed-by: Kistaro Windrider <kistaro@gmail.com>
2022-12-19 07:33:07 +00:00
kistaroandpyrex 0821ae2bd7 Replace multiple pal calls with a single pal-table call, or some pokes. (#5)
Reviewed-on: #5
Co-authored-by: Kistaro Windrider <kistaro@gmail.com>
Co-committed-by: Kistaro Windrider <kistaro@gmail.com>
2022-12-18 02:24:42 +00:00
kistaroandpyrex a0da322c3d Implement levels:anchor_in as a generator. (#4)
This gets rid of the (substantial!) overhead of preparing a list and then iterating over it, in exchange for a bit of bookkeeping to simulate the prior behavior of the for loop, which is much cheaper.

Reviewed-on: #4
Co-authored-by: Kistaro Windrider <kistaro@gmail.com>
Co-committed-by: Kistaro Windrider <kistaro@gmail.com>
2022-12-18 01:46:30 +00:00
kistaroandpyrex db157b7952 Assorted micro-optimizations. (#3)
Some of these are pure token optimizations, some spend tokens for performance. Function calls are particularly expensive in Pico-8, so using the table form of `pal` whenever changing multiple colors seems worth it.

Also fixes a bug in palette swapping.

Reviewed-on: #3
Co-authored-by: Kistaro Windrider <kistaro@gmail.com>
Co-committed-by: Kistaro Windrider <kistaro@gmail.com>
2022-12-18 01:11:42 +00:00
kistaroandpyrex d0eba82c7b Save a handful of tokens and fix indentation. (#2)
Reviewed-on: #2
Co-authored-by: Kistaro Windrider <kistaro@gmail.com>
Co-committed-by: Kistaro Windrider <kistaro@gmail.com>
2022-12-17 23:51:50 +00:00
kistaroandpyrex 517c185688 Avoid recalculating operation names repeatedly. (#1)
Reviewed-on: #1
Co-authored-by: Kistaro Windrider <kistaro@gmail.com>
Co-committed-by: Kistaro Windrider <kistaro@gmail.com>
2022-12-17 22:58:56 +00:00