Ci-Go wrote:i dont think luck is challenge. those obsticles shouldnt be so random. so i got 15 points and there were only 14 pictures...
there is 15 pictures but you need 14 points to win, since at 0, you see the first picture.
I wanted to make a game where you can beat a score, so i had to generate dynamically the game.
When i tested the game, it was really rare to have something that i can't go through (perhaps once)
In fact, here how are generated the obstacles:
Every xxx pixels: you have a odd of 1/2 to generate a wall
Every yyy pixels: you have a odd of 1/2 to generate a mine
the xxx and the yyy values aren't random, the value of xxx is set so you can slalom easily between 2 walls.
You don't need to slalom if at least one of the wall is just next to the upper or the lower wall.
It's harder to slalom between mines, but they are smaller so you could usually just go next to them.
Then the position of a wall or a mine in set with a random "y" value.
When i tested the game i found the game too easy (first i won nearly every time), so i added inertia to the movement (this decreases also the number of time you have to click).
So i notice then that i had usually 3 medium to hard passages to win and i found the difficulty of the game well balanced.
I fact, with the luck factor, you have a chance to win even if you are not so skilled.
So again, luck was for me a good thing here.