Using graphical effects to distort a picture
If I show you a picture of an animal, can you guess it? I expect most of you to respond with, "yes, I can." In this project, I put a player's recognition skills to the test with a guessing game that asks the player to guess a distorted animal shape. I'll provide the scripts to build two versions of this game. The simple version of the game will play one round, and then I'll show a more advanced version that takes the player through three rounds.
Before I jump into the code, here's how the game works: The game will show an animal image distorted with graphical effects, and the player will try to the guess the animal. The game will slowly reveal the animal until the player guesses correctly. As the game shows more of the animal, the potential points earned for a correct guess become less; incorrect guesses are penalized.
Figure 1 shows the finished game. The bigger shape in the middle is the distorted animal shape to guess. The row of smaller animal images at the bottom are the available guesses. The player guesses by clicking on one of the animals at the bottom. As you can see in Figure 1, I included six possible sprites to choose from at the bottom of the stage.
[...]
Buy this article as PDF
Pages: 4
(incl. VAT)