THE GAME IN BRIEF
Its a mobile game. Specially designed for smart phones or PDAâs. Where player has to control a continuously moving ball with the help of a bar, that he can draw on the mobile screen using pen. That bar will act as a barrier on the way of moving ball. And the ball will rebound after striking the bar. The target of the player is to not to allow the ball to hit the boundries of the screen and in addition to that he has to make the ball to hit specific items moving in space to earn points and some strengths and also he has to avoid some items in space that can result in death or loss of points for the player. So ultimately the goal of the player is to stay alive as long as he can and cover more and more stages, to get maximim points.
"Hawkins Wormhole" - narrative
You are Steven Hawkins and you are traveling through universe with a spherical time capsule. Your mission given to you by the Royal Science Academy is to collect Newtons "apples" that has been spread out in the universe by the big bang. When you have collected enough of apples in one area a wormhole will form as a space worm appears. The space worm wants to eat your apples. The only possibility for you to keep the apples is now to escape through the worm hole or else be eaten by the space wormâ¦
Saturday, May 20, 2006
line segments
- The user moves the mouse over the screen.
- Mouse coordinates are converted to screen coordinates.
- A list of segments consisting of lines are used to draw the cruved line.
- Each line segment has two vectors defining the start and end point of the line segment.
- If the distance between last recorded mouse point and the new point is greater then a certain threshold value then the new location is used to make a new line segment which is then inserted into the segment list.
- The normal of each line segment needs to be calculated. The normal will be used to determine the bounce direction of the ball.
- A new particle class needs to be created. This particle class will cover the whole line segment and thus will look cool. This new particle class will be inherited from ARHParticleSystem class and probably will also be inherited from the LineClass - multiple inheritance. However multiple inheritance in never encouraged in c++ and should be avoided.
- The length of the curved line will be determined by how many line segments are allowed and the length of each line segment.