Magic of randomness
Now that I've got my bear moving, he needs to be able to throw seeds and cages.
We also needs to see the next cages and seeds so we can get organized and plan our shots.
The game goes like this: we throw seeds and cages. We try to match the seeds with a chick of the same color. Then you throw a cage at the seeds or directly at a chick, and the chick is drawn into the cage, destroying all adjacent seeds of the same color in the process.
So I need a different filling of the play area for each game, as well as the cages and seeds that the bear will collect.
This is where the magic of randomness comes into play: I've made a simple function that calculates the chances of something happening or not, based on a percentage.
Then with this function, I can give a different color and location to each chick on the playground.
I did the same for the cages and seeds, which will be placed on the side like in Super Bub, and here's the result:
Here's where I'm at for now, only 6 days to go, the hardest part is still to come: the logic in the grid to detect adjacent objects of the same color!
Kumatori Panic!
Help Bear gather up all of his fluffy friends by matching chickens of the same colour before time runs out !
More posts
- The End ! ? ... Unless...Aug 16, 2023
- Big step forwardAug 02, 2023
- Itch PageJul 24, 2023
- Starting the gameJul 24, 2023
- Getting the assetsJul 24, 2023
- The start of a new adventure!Jul 24, 2023
Leave a comment
Log in with itch.io to leave a comment.