Solutions to puzzles/challenges from the videogame Replicube, which you code in Lua.
Generally optimizing for code size, not for cycles, but not going crazy either. When I finish all the puzzles I might try to go for more insane optimizations. I'm keeping my optimization and "coding techniques" in this file.
Notes:
- I have not yet finished all the game's challenges
Apart from my optimization comments, I decided to put the Generative AI to work, and created a Cursor rule to generate readable versions of my solutions. You can run it like so:
Run the @replicube-deoptimization-rule.mdc rule with the @2-basic-hourglass.lua file
Some personal projects, exported in .vox format, compatible with the MagicaVoxel tool (from where the higher quality renders come from).
You can also view the Voxel 3D models using this online viewer.






