Cut to spec
You are a CNC machine operator cutting stuff to spec. A 2D simulation / puzzle / programming game.
Game Guide
At the top you see your CNC machine. You can click on the workpiece to issue a move command to that location. The machine has two axis, Y pointing up, X pointing right. the (0,0) point is the lower left of the workpiece, the upper right is (63, 63).
At the bottom you see your drafting table with a task that you should produce.
CNC window
Lets you control / jog the CNC head around, as well as engage and disangage the cutter. Keep in mind you can also use your mouse on the workpiece to set a target for the machine.
You can also see some coordinates in this window as well as control the machine's speed (you might want to slow it down).
G-Code window
Here you can program and execute code for your machine. It uses a simplified version of real G-Code with only two commands:
- 'G' (Go) are move commands
- 'C' (Cut) will move with engaged cutter
- Both take X and Y coordinate values
Important: right now your G-Code isn't saved. If you want to keep it copy it and store it somewhere so you can use again the next time you play.
Job window
Here you can buy a new workpiece and start over as well as check your current workpiece against the current task and switch tasks.
Check workpiece gives you a percentage and your goal is to reach 100% (exactly cut to spec). Where in your workpiece you cut out the task doesn't matter. The check function also gives you an overlay on your drafting table to better understand what pixels are wrong (see ? tooltip).
Tech stack:
- Zig as the programming language
- Sokol as the application / GFXs libraries
- Dear ImGui as the GUI framework
Note on AI disclousure
Most of the games code was written by hand, only very little parts were written by AI or AI reviewed / fixed code. All other assets were created by humans.
Credits
- Maxi: A good friend of mine provided some of the task solution sprites and supported with play testing
| Published | 2 days ago |
| Status | Prototype |
| Platforms | HTML5 |
| Author | Remote-Gaming |
| Genre | Simulation, Puzzle |
| Tags | programming |
| Average session | A few minutes |
| Languages | English |
| Inputs | Keyboard, Mouse |
| AI Disclosure | AI Assisted, Code |



Leave a comment
Log in with itch.io to leave a comment.