Refactoring to allow MyNewLevelGenerator to determine the level type, difficulty and music based on the player metrics.
Work in progress.
This commit is contained in:
@@ -34,22 +34,21 @@ import dk.itu.mario.scene.WinScene;
|
||||
|
||||
public class MarioComponent extends JComponent implements Runnable,
|
||||
KeyListener, FocusListener, MouseListener {
|
||||
|
||||
private static final long serialVersionUID = 739318775993206607L;
|
||||
|
||||
public static final int TICKS_PER_SECOND = 24;
|
||||
|
||||
public static final int EVOLVE_VERSION = 4;
|
||||
public static final int GAME_VERSION = 4;
|
||||
|
||||
private boolean running = false;
|
||||
private boolean screenshotTaken = false;
|
||||
private int width, height;
|
||||
private GraphicsConfiguration graphicsConfiguration;
|
||||
private Scene scene;
|
||||
private SonarSoundEngine sound;
|
||||
private boolean useScale2x = false;
|
||||
private boolean isCustom = false;
|
||||
private int width, height;
|
||||
private GraphicsConfiguration graphicsConfiguration;
|
||||
private LevelGenerator levelGenerator;
|
||||
private Scene scene;
|
||||
private SonarSoundEngine sound;
|
||||
private Scale2x scale2x = new Scale2x(320, 240);
|
||||
|
||||
public MarioComponent(int width, int height, boolean isCustomized,
|
||||
|
||||
Reference in New Issue
Block a user