Midterm Update
- Kevin Menelas
- Oct 15, 2019
- 1 min read
My project is truly and finally done. It was a long road of frustration to get here. My original plan was to to make the game. That was simple. I found the code online and tweaked it to my liking. https://makecode.microbit.org/_e7oWjKEm1F9b There's the code for the first version of my project. However, I thought that was too simple so I decided to add a hard mode. In the hard mode, the player would have to collect two gold nuggets instead of one to get a point. That...didn't work as planned. The LED you controlled moved too fast, the game wouldn't register the collection of the LEDs and it would glitch and just give points regardless whether the player collected both LEDs. Here is the code that produced that train wreck. https://makecode.microbit.org/_LWf1cj8AsR5s. I scrapped that idea for a hard mode and decided it would be a mode where the LED moves somewhere else if you don't collect it in time. However, that didn't work either as the LED wouldn't move. Link to that version here: https://makecode.microbit.org/_6fu1FMWPvYm7. And finally with the help of my great and talented professor, I managed to get it to work properly. Also I decided to map hard mode to an external button. There is the link to the final and most beautiful version of the code. https://makecode.microbit.org/_81cAazggLU9H
Comments