Commit bb5334ef authored by Bastian's avatar Bastian
Browse files

Adjusted FallingCheck and AutoFireDirection

parent 804d6864
......@@ -169,7 +169,7 @@ public class GameScreen implements Screen {
{
//(float) (wWidth/2.0),(float) (wHeight/2.0)
// Random rand = new Random();
float randomX = -2*wWidth + (new Random().nextFloat()*4*wWidth);
float randomX = -0.2f*wWidth + (new Random().nextFloat()*1.4f*wWidth);
Vector2 touchPoint = new Vector2(randomX,(float) (wHeight/2.0));
if (p.active != null) {
if (!p.active.isFlying && lower && touchPoint.y <= bound) {
......@@ -418,7 +418,7 @@ public class GameScreen implements Screen {
LinkedList<Hexagon> middleHexagons = new LinkedList<Hexagon>();
ArrayList<Hexagon> connectedHexagons = new ArrayList<Hexagon>();
// visitedHexagon
Rectangle MiddleRectangle = new Rectangle(0,(float) (wHeight/2.0 - 2*bubblradius),wWidth,4*bubblradius);
Rectangle MiddleRectangle = new Rectangle(0,(float) (wHeight/2.0 - bubblradius),wWidth,2*bubblradius);
// Getting hexagons with bubbles connected to the middle
for (Hexagon h : nachbarn.keySet()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment