Changeset ca2a854 in last-defense


Ignore:
Timestamp:
Jan 8, 2019, 7:25:27 PM (6 years ago)
Author:
dportnoy15 <dmitry.portnoy@…>
Branches:
master
Parents:
fb4fc67
Message:

Create a makefile that creates a jar

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    rfb4fc67 rca2a854  
    22*.class
    33err.txt
    4 LostPerception.jar
     4LastDefense.jar
  • main/LastDefenseMain.java

    rfb4fc67 rca2a854  
    3838
    3939public class LastDefenseMain implements KeyListener, MouseListener {
    40     private static final boolean RUNNING_FROM_JAR = true;
     40    private static final boolean RUNNING_FROM_JAR = false;
    4141    GameState gameState;
    4242    AuxState auxState;
     
    121121            this.g = bufferStrategy.getDrawGraphics();
    122122            this.refreshRate = device.getDisplayMode().getRefreshRate();
    123             Utils.init(gc, true);
     123            Utils.init(gc, RUNNING_FROM_JAR);
    124124            this.gameState = GameState.Main;
    125125            this.auxState = AuxState.None;
     
    153153                this.g.dispose();
    154154                bufferStrategy.show();
    155                 ++this.frameCount;
     155                this.frameCount++;
    156156                if (System.nanoTime() - 1000000000L >= this.lastFpsUpdate) {
    157157                    this.lastFpsUpdate = System.nanoTime();
     
    160160                }
    161161            }
    162         }
    163         catch (Exception e2) {
    164             e2.printStackTrace();
     162        } catch (Throwable th) {
     163            th.printStackTrace();
    165164            return;
    166         }
    167         finally {
     165        } finally {
    168166            device.setFullScreenWindow(null);
    169167        }
Note: See TracChangeset for help on using the changeset viewer.