Changeset ca2a854 in last-defense
- Timestamp:
- Jan 8, 2019, 7:25:27 PM (6 years ago)
- Branches:
- master
- Parents:
- fb4fc67
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
rfb4fc67 rca2a854 2 2 *.class 3 3 err.txt 4 L ostPerception.jar4 LastDefense.jar -
main/LastDefenseMain.java
rfb4fc67 rca2a854 38 38 39 39 public class LastDefenseMain implements KeyListener, MouseListener { 40 private static final boolean RUNNING_FROM_JAR = true;40 private static final boolean RUNNING_FROM_JAR = false; 41 41 GameState gameState; 42 42 AuxState auxState; … … 121 121 this.g = bufferStrategy.getDrawGraphics(); 122 122 this.refreshRate = device.getDisplayMode().getRefreshRate(); 123 Utils.init(gc, true);123 Utils.init(gc, RUNNING_FROM_JAR); 124 124 this.gameState = GameState.Main; 125 125 this.auxState = AuxState.None; … … 153 153 this.g.dispose(); 154 154 bufferStrategy.show(); 155 ++this.frameCount;155 this.frameCount++; 156 156 if (System.nanoTime() - 1000000000L >= this.lastFpsUpdate) { 157 157 this.lastFpsUpdate = System.nanoTime(); … … 160 160 } 161 161 } 162 } 163 catch (Exception e2) { 164 e2.printStackTrace(); 162 } catch (Throwable th) { 163 th.printStackTrace(); 165 164 return; 166 } 167 finally { 165 } finally { 168 166 device.setFullScreenWindow(null); 169 167 }
Note:
See TracChangeset
for help on using the changeset viewer.