OrangesCyf / frozenbubbleandroid

Automatically exported from code.google.com/p/frozenbubbleandroid
GNU General Public License v2.0
0 stars 0 forks source link

A dialog when game ends #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!
Is bad enough that the game ends without any "prize" to the player, and restart 
from the first level.
I would like to apply a dialog when the player finishes the game (something 
like: "Congratulations and thanks for playing Frozen Bubble"). Where should I 
put it in code?

Original issue reported on code.google.com by aeffef...@gmail.com on 28 Jan 2013 at 5:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
In FrozenGame.java, a call is made to levelManager.goToNextLevel(); when the 
current level is completed successfully.

You can call levelManager.getLevelIndex(), and if the last level was 100 and 
the current level is 0 (and the player didn't select a new game), then you can 
display a dialog, credits, etc.

Since the level editor exists, and the number of levels is dependent on the 
size of the level list, you probably won't want to hard-code the highest level 
index - you may want to add a method to LevelManager.java to return the highest 
level index.

Original comment by forter...@gmail.com on 12 Mar 2013 at 3:52

GoogleCodeExporter commented 9 years ago
And end of game developer and contributor credits screen was added in version 
1.15.

Original comment by forter...@gmail.com on 27 Apr 2013 at 11:44