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:
Woody Folsom
2012-03-17 10:26:33 -04:00
parent 47520126ff
commit a827ca7430
9 changed files with 141 additions and 63 deletions

View File

@@ -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,