Coroutines for Menu Complexity
Got a chance to revisit this project and I taught myself the basics of coroutines in lua and pico-8. Here I've basically refactored to now run the planting submenu correctly off the main menu, whereas before that didn't work because it would not wait and just automatically advance through the same button as the top level menu press.
This will make more sense once I get some of the rest of the game fleshed out, but this is a big step in the right direction.
Also I was able to get the sfx for confirm/cancel to quite looping with the btnp() condition and the coroutines.
Behind the scenes I used my newly revitalized Windows 10 PC (Had a MoBo power issue that required a new MoBo and of course RAM and CPU with it). Since I had been on Linux I tried some new things in Windows - VS Code for my editor of choice with plugin: https://github.com/joho/pico8-vscode and using VS Code's built-in Git repo management which basically "just works" with my own Gitea self-hosted server.
Files
Continuum
Reclaim our world from the harsh climate!
Status | Prototype |
Author | LightMotif |
Genre | Simulation |
Tags | 2D, 8-Bit, Non violent, PICO-8, Pixel Art, Real time strategy, Singleplayer |
Languages | English |
Leave a comment
Log in with itch.io to leave a comment.