Skip to content
Permalink
1f157298c4
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
22 lines (17 sloc) 415 Bytes
package game;
import javax.swing.JFrame;
import gfx.Screen;
import level.LevelHandler;
public class Game extends JFrame{
private Screen screen;
public Game() {
setSize(800, 600);
setTitle(screen.getLevelName());
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLocationRelativeTo(null);
setVisible(true);
}
public void setLevel(LevelHandler newLevel) {
screen = new Screen(newLevel);
}
}