Minigame Monday: A Shade Different
A Shade Different:
- The Concept:
This was actually an idea suggested by my sister, after seeing the concept on TikTok. You are shown a number of blocks of colour, one of which is slightly different, and you have to click the different one. Simple, right? This was a slightly quicker minigame, as I'm also working with a team for Game Off 2020, so look forward to that at the end of the month. Ironically, given the title, it's also very similar to Moles in Holes in terms of mechanics; the player's goal is to click on the right area of the screen. However, in this game rather than testing the player's reactions, it's testing their ability to see colour.
- The Challenge:
As this game is mechanically similar to Moles in Holes, I was able to treat it as an exercise in adapting and repurposing code. One nice thing about doing this is it gives you a chance to review and check your previous code. One small thing I noticed was about the ordering of functions. In python you can put your funcitons in any order, so sometimes it's hard to know what the cleanest order to put them in is. This time, I tried experimenting by ordering functions in the order they are called; theoretically this means functions should be close to their calling function, which seems good.
To get the random blocks of colour, I chose a random R, G and B value, and made the blocks based on that colour. The slightly different colour is based directly on the difficutly setting; that value is used to randomly modify one of the RGB values; if the result is invalid, a new value to modify is chosen until a valid result is found.
- The Result:
Can you see which is different? |
Again, I'm decently happy with the amount of polish on this minigame. One example is highlighting the different block of colour if the player has failed or the time has run out. I can't really give any tips for how to play it, but I will say that colours closest to the primary colours (red, blue and green) are hardest to spot the differences in. But if you're thinking I coded it wrong and there is no difference, cut out the blocks of colour and put them overlapping, and you'll always see a slight difference! You can play the game at https://reddragonmakesgames.itch.io/a-shade-different, and the code is on github.
Comments
Post a Comment