Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MilderJoghurt
FrozenNumbers
Commits
bb5334ef
Commit
bb5334ef
authored
Jan 14, 2016
by
Bastian
Browse files
Adjusted FallingCheck and AutoFireDirection
parent
804d6864
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/src/org/milderjoghurt/frozennumbers/screens/GameScreen.java
View file @
bb5334ef
...
...
@@ -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
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment