Tip:
Highlight text to annotate it
X
Hello there! This is a tutorial on how to make a mini game in pure data.
Before you begin, here I give the objects that can be used to begin creating your game,
but I won't tell you how to make a kind of game.
That depends on your creativity and imagination.
You can do from "Simon Says" to "Magic Number", among other mini games.
As well, you have to keep in mind that this program works like the Windows Command Prompt:
based on algorithms and basic mathematical equations.
Now, I'm going to show you a mini game that I have created.
If you need help or more information, please consult the help in the program, or find in the webpage called: floss manuals.
This game is called: 32 toggles in 12 seconds. It is a game of speed and strategy.
Let's start putting 32 toggles in an orderly and comfortable form to the eye.
To avoid pitfalls in the game, I will submit each toggle to a conditional.
In this case, I apply the object "onebang" to each toggle.
As well, a "gate" to avoid accounts that exceed the number 32,
also to avoid counting toggles if the player doesn't started yet, or have lost.
Now, here I will build two conditionals: first, if the player has 32 toggles on, wins the game;
and second, if the time reaches 12 seconds, the player lose the game.
Let's make the toggle counter.
Check the toggle patch, and put a send object; then, connect it to the f + output.
You can put a label to a send and a receive object as well, also in all objects you use in this program.
Then, in the toggle counter properties, set the same label to receive the number of amounted toggles.
Now, let's create the 12 seconds time trial.
I put a "metro" with 1000 miliseconds, that means, 1 *** per second.
Then, I connect the metro to an f +.
This object sums bangs passing through it's left input, and transforms them into numbers.
To make the illusion of the timer, I submit the seconds into a message,
which at the same time, is connected to a symbol object.
It transforms alphanumeric messages to show them as advertisement.
Then, I put 2 conditionals to the timer: first, if the player complete 32 toggles on, the timer stops;
second, if the timer reaches 12 seconds, it stops and at the same time, sends a *** to announce the player have lost the game.
And, Ta-da! The game is done!
For last details, you can put labeled bangs to say: start and reset.
Thanks for watching! I hope you enjoyed!