Collect with E. When you get 10 wood you get a pickaxe and can mine stone. When you've collected all the materials you get a slingshot to defend against the zombies. First night is after 90 seconds and the night lasts 30 seconds. Then you have a 10 second pause and repeat.
Thanks to a programming camp I went on I found inspiration to do this project.