Collect wood and scrap to craft traps to fend off the horde! Collect resources by clicking on the tree or the pile of scraps, then press SPACE when the yellow slider is in the green zone, you will have to wait to use the tree or scrap again. You can press the Down Arrow to buy a lumberjack for 4 wood and 4 scraps who will automatically collect wood, you could also press the Up Arrow to buy a Miner for 5 wood and 5 scraps who will automatically collect scraps. Traps Wooden Spikes Press 1 to spawn a blueprint for 4 wood, drag the blueprint to the desired location, and press C to confirm and craft the spikes. They last for a limited time. Metal Spikes Press 2 to spawn a blueprint for 5 scraps, drag the blueprint to the desired location, and press C to confirm and craft the spikes. They are larger, do more damage, and last longer than the wooden spikes. Turret Press 3 to spawn a blueprint for 3 wood and 6 scraps, drag the blueprint to the desired location, and press C to confirm and craft the turret. It will fire chunks of metal in front of it and lasts for a very long time. Wall Press 4 to spawn a blueprint for 3 wood, drag the blueprint to the desired location, and press C to confirm and craft the wall. It will not let zombies that touch it get past, but it doesn't last very long.
This project was very old and broken, so I rewrote the code for it and polished it a little.