chadswen / DiceHero

Project Site for Dice Hero, the award winning dice game app for Symbian^3.
0 stars 0 forks source link

Dice occasionally spawn outside the screen #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Thanks to the fairly simple random placement algorithm I used for prototyping, 
dice will occasionally be forced outside of the screen on creation.

Proposed solutions:
1. Spawn dice in a set space
2. Detect if a die spawned outside of the screen. If they are, delete them and 
attempt to respawn until all dice are on screen.

The problem with the first solution is that we're somewhat limited to the 
number of dice we can spawn, as there is limited fixed "safe" space. But to be 
honest, with more than 15 dice or so moving around, no one is going to notice a 
single die missing, since the roll results are still printed each time (lost 
dice continue to roll offscreen).

I'll most likely implement some form of the second solution.

Original issue reported on code.google.com by chads...@gmail.com on 29 Mar 2011 at 2:43

GoogleCodeExporter commented 9 years ago
If the physics engine will let me, I can just move them back manually until 
they're within the bounds.

Original comment by chads...@gmail.com on 30 Mar 2011 at 8:00

GoogleCodeExporter commented 9 years ago
Forgot to update, that seemed to have fixed it.

Original comment by chads...@gmail.com on 30 Mar 2011 at 8:52