Minigame Monday: Aim of the Game
Aim of the game:
- The concept:
Apologies for the late post on this one (this being the game I made on the 28th). The reason for that (and why this was a smaller minigame) is because I was taking part in a big gamejam project due later that week, so expect a post about that soon. That being the case, I decided to go for an aim trainer type game, where the player has to click targets as accurately as possible.
- The challenge:
The biggest issue for making this game was making sure that the hitboxes of the targets were correct and so every click would be correctly registered. Most of the hitboxes I've used previously have been just that: boxes, whereas the targets are circular. I first considered doing circular checking within pygame, but soon arrived on a better solution to avoid tricky mathematics. Instead of scoring based on hit boxes, I'd score based on what colour the player clicks on. This meant that rather than having to calculate hitboxes I could simply define colours and related scores in a list, and then check if the colour the player had clicked on was in the list, and if so retrieve the points for clicking on that colour.
- The result:
As a quicker game, I think this game met the brief I had planned for it pretty well. Gameplay provides the player with decisions of whether to spend longer lining up against a target for more points and risk the target disappearing versus clicking on targets as soon as possible, making sure no opportunity to click a target is lost. The game can be found at https://reddragonmakesgames.itch.io/aim-of-the-game and the source code is on github.
Comments
Post a Comment