snake/src/main/dev/lh/Main.java
delvh 8ff179a27d
Collision checking for outer bounds works apparentlly solely on Windows, commented out for now (#1)
* Cleaned up project

* Commented display of result-image out

* added TODO in outer-bounds checking in Snake
2020-04-03 10:43:24 +02:00

42 lines
750 B
Java
Executable File

package dev.lh;
import dev.lh.ui.GameWindow;
/**
* Project: <strong>Snake</strong><br>
* File: <strong>Main.java</strong><br>
* Created: <strong>11 Mar 2020</strong><br>
*
* @author Leon Hofmeister
* @since Snake 1.0
*/
public class Main {
private static GameWindow game;
/**
* @param args the program arguments
* @since Snake 1.0
*/
public static void main(String[] args) {
// if wanted, the StartScreen can be added here
startGame();
}
/**
* Starts a new game of Snake.
*
* @since Snake 1.0
*/
public static void startGame() {
game = new GameWindow("Snake");
game.setVisible(true);
}
/**
* @return the currently used game
* @since Snake 1.0
*/
public static GameWindow getGame() { return game; }
}