intergration GameStage Pipeline
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1242,7 +1242,7 @@ public class CanvasView extends View
|
||||
{
|
||||
if (!GameOver)
|
||||
{
|
||||
if (moveX >= 28 && moveX <= 55 && moveY >= 143 && moveY <= 155) // Menu
|
||||
if (moveX >= 28 && moveX <= 55 && moveY >= 143 && moveY <= 155) // Start
|
||||
{
|
||||
if (GameState == GS_PLAYING)
|
||||
onPause();
|
||||
@@ -1260,8 +1260,16 @@ public class CanvasView extends View
|
||||
{
|
||||
if (GameState == GS_PLAYING)
|
||||
{
|
||||
if (!GameOver)
|
||||
InputsGamePlaying(x, y, Released);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void InputsGamePlaying(float x, float y, boolean Released)
|
||||
{
|
||||
int moveX = (int)((x / Width) * 90);
|
||||
int moveY = (int)((y / Height) * 160);
|
||||
|
||||
if (!Released)
|
||||
{
|
||||
if (moveX >= 1 && moveX <= 11 && moveY >= 122 && moveY <= 133) // Left
|
||||
@@ -1318,9 +1326,6 @@ public class CanvasView extends View
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Game Logic
|
||||
private void GoDown()
|
||||
|
||||
Reference in New Issue
Block a user