Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
GameNoodle/src/menu/Menu.java
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
24 lines (17 sloc)
527 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package menu; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import game.Game; | |
import level.LevelHandler; | |
public class Menu { | |
// Will display options. This is the main menu. | |
// Currently jumps right to a game. | |
public void run() throws IOException{ | |
Game game = new Game(); | |
// Show menu options here | |
// Control flow to select level, game modes, etc. | |
// Pretend a test level was selected | |
LevelHandler chosenLevel = new LevelHandler("/res/test.txt"); | |
game.setLevel(chosenLevel); | |
} | |
} |