original game?

This commit is contained in:
Remco
2015-06-02 09:59:26 +02:00
parent d685ffc6ac
commit 3fc6c98ea5
21 changed files with 357 additions and 641 deletions
+5 -3
View File
@@ -6,21 +6,23 @@ import java.awt.event.ActionListener;
import javax.swing.Timer;
import view.GameView;
import control.GameStateManager;
import control.button.ButtonHandler;
public class GameModel implements ActionListener{
private Timer update;
public static double framePerSecondUpdate = 1000/30;
private Timer update;
public static Color[] colors = {Color.MAGENTA,Color.RED,Color.GREEN,Color.YELLOW,Color.CYAN,Color.WHITE};
private GameStateManager gsm;
public GameModel(GameStateManager gsm)
public GameModel(GameView view,GameStateManager gsm)
{
this.gsm = gsm;
update = new Timer(1000/30, this);
update = new Timer((int) framePerSecondUpdate, this);
update.start();
for(int i = 1; i < ButtonHandler.getButtons().size(); i++){