⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.java

📁 SIMULATION FOURMILIERE -3D-ISOMETRIQUE
💻 JAVA
字号:
package fr.umlv.fourmIR2000;

import fr.umlv.fourmIR2000.frame.GameFrame;


public class Main {

    /**
     * Entry of the application
     * @param args  arguments given on command line
     */
    public static void main(String[] args) {
    	
        // Creation of the graphical frame
    	final GameFrame gFra = new GameFrame("Fourm'IR 2000");
        
        // Creation of the game manager
        final Game game = new Game(gFra);
        game.launchEditor();

        while (true) {
            // We wait while we are on the level editor or on the game
            while ( !game.getInitBreak() && !game.getGameBreak()) {
                try {
                    Thread.sleep(500);
                } catch (InterruptedException e) {/* nothing */}
            }
            // If we were on the level editor, we launch the game
            if(game.getInitBreak())   
                game.launchGame();
            // If we were on the game, we return to the level editor
            else
                game.launchEditor();
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -