Newer
Older
JumpingGame / src / main / java / Main.java
import javax.swing.*;
import java.awt.*;

//---------------------------------------------------------------
// 実行本体
public class Main extends GameEngine {

    private JumpGame jumpGame = new JumpGame();

    //---------------------------------------------------------------
    //---------------------------------------------------------------
    // エントリーポイント
    public static void main(String[] args) {
        new Main().run();
    }

    //---------------------------------------------------------------
    //---------------------------------------------------------------
    // 初期化
    @Override
    protected void init() {
        jumpGame.init();
    }

    //---------------------------------------------------------------
    // 更新処理
    @Override
    protected void update(long window) {
        jumpGame.update(window);
    }

    //---------------------------------------------------------------
    // 破棄
    @Override
    protected void destroy() {
        jumpGame.delete();
    }

    //---------------------------------------------------------------
}