-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multiple level structure and some polish.
- Loading branch information
Showing
12 changed files
with
210 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.angian.libgdx.pipes; | ||
|
||
public class LevelParams { | ||
public float waterStartTime; | ||
public float waterStartSpeed; //px per second | ||
public int scoreFactor; | ||
public int distance2win; | ||
|
||
private LevelParams(float _waterStartTime, float _waterStartSpeed, int _scoreFactor, int _distance2win) { | ||
waterStartTime = _waterStartTime; | ||
waterStartSpeed = _waterStartSpeed; | ||
scoreFactor = _scoreFactor; | ||
distance2win = _distance2win; | ||
} | ||
|
||
public static LevelParams get(int level) { | ||
if (level <= 0) | ||
return null; | ||
|
||
if (level == 1) | ||
return new LevelParams(20, 20, 100, 5); | ||
|
||
if (level == 2) | ||
return new LevelParams(15, 30, 120, 7); | ||
|
||
if (level == 3) | ||
return new LevelParams(10, 40, 150, 9); | ||
|
||
return new LevelParams(5, 60, 200, 11); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.