3. Prior
Programming Knowledge
Qbasic until Grade 10
“Introduction to Java” at Princeton
“Short Term Course on Java(Basic)” at
Deerwalk Institute of Technology, Nepal
4. Talking About My
Application
Name: BallZ
Type: 2D Casual Game
(Bouncing Ball)
Platform: Android
11. Gaming Mechanics:
Ball (Object) Bar (Object)
X X
Y Y
R Width
vX Height
vY
§ Move()
12. Gaming Mechanics:
In update method of GameScreen, we allow ball to
move. In present method of GameScreen, we just
draw the ball.
If Ball touches the bar, vY = - vY
and vX = (bar.X-ball.X)* (some factor)
If Ball touches the borders, vX or vY changes
sign.
(The hard part is to tell when does the ball touch the
bar)
13. Gaming Mechanics:
Otherwise, the ball moves:
X= X+vX*deltaTime
Y= Y+vY*deltaTime
vY= vY+a*deltaTime
deltaTime is the time taken between two
successive GameScreen updates.
14. Gaming Mechanics:
Also, we have Coin object for coin. We
change coin’s position in update method
and draw it in present method of
GameScreen object.
There is also the catching of the coin.
15. Current Problems
Graphics/UI is not great.
Sound is awful.
One complaint about physics but could be
because of an earlier version.
Background pictures for later levels.
16. Advise(as much as a newb can
give)
If you are bad at graphics, get someone else
to work with you.
Maybe using a gaming engine is better.
Don’t try to finish as fast as you can. There
is no race!!!