Post on 26-Jun-2015
description
INTRODUCTIONINTRODUCTION
Name: Sailesh Dhungana
Education: Bachelors CandidatePrinceton University,
USA
Contact: dhunganasailesh@gmail.com
9849113051
Name: Sailesh Dhungana
Education: Bachelors CandidatePrinceton University,
USA
Contact: dhunganasailesh@gmail.com
9849113051
PriorProgramming Knowledge
PriorProgramming Knowledge
Qbasic until Grade 10
“Introduction to Java” at Princeton
“Short Term Course on Java(Basic)” at Deerwalk Institute of Technology, Nepal
Qbasic until Grade 10
“Introduction to Java” at Princeton
“Short Term Course on Java(Basic)” at Deerwalk Institute of Technology, Nepal
Talking About My Application
Talking About My Application
Name: BallZ
Type: 2D Casual Game
(Bouncing Ball)
Platform: Android
Name: BallZ
Type: 2D Casual Game
(Bouncing Ball)
Platform: Android
DemonstrationDemonstration
http://www.youtube.com/watch?v=TnI8CRkvVyU
Technologies Used:Technologies Used:
Java
Eclipse IDE
Android Plugin for Eclipse
Android SDK 2.2
Samsung phone with Android(for testing)
Java
Eclipse IDE
Android Plugin for Eclipse
Android SDK 2.2
Samsung phone with Android(for testing)
Resources UsedResources Used
Developer.android.com/resources
“Beginning Android 4 Game Development” (APRESS) e-book for learning as well as framework
Developer.android.com/resources
“Beginning Android 4 Game Development” (APRESS) e-book for learning as well as framework
Gaming Logic (For Android in Java)
Gaming Logic (For Android in Java)
Screen(View Object)
Update(method)
Present(method)
To output
To other screen objects
Screen Objects:Screen Objects:
MainMenuScreen GameScreen(level, life, coins, bounces) CongratulationsScreen GameoverScreen InstructionScreen LeastBounceScreen
MainMenuScreen GameScreen(level, life, coins, bounces) CongratulationsScreen GameoverScreen InstructionScreen LeastBounceScreen
FlowFlow
MainMenuScreen
InstructionScreen LeastBounceScreen
GameScreen(level:1,life:3,coins:0,bounces:0)
GameScreen(level:?,life:?,coins:?,bounces:?)
…
CongratulationsScreen GameOverScreen
Gaming Mechanics:Gaming Mechanics:
Ball (Object) X Y R vX vY
1. Move()
Ball (Object) X Y R vX vY
1. Move()
Bar (Object) X Y Width Height
Bar (Object) X Y Width Height
Gaming Mechanics: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 = - vYand 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)
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 = - vYand 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)
Gaming Mechanics: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.
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.
Gaming Mechanics: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.
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.
Current ProblemsCurrent 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.
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.
Advise(as much as a newb can give)
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!!!
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!!!