GameLoop and some skeleton classes

This commit is contained in:
Gulum
2017-10-16 15:15:32 +02:00
parent 5c16b98c1e
commit 59fcf074f6
14 changed files with 172 additions and 12 deletions

View File

@@ -7,7 +7,9 @@ package com.darkrp2d.input;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.InputProcessor;
import com.darkrp2d.DarkRP2D;
import com.darkrp2d.input.commands.*;
import com.darkrp2d.scenes.menu.MenuScreen;
/**
*
@@ -18,12 +20,9 @@ public class InputHandler implements InputProcessor {
Command testCommand;
Command menuCommand;
public InputHandler(MenuCommand menuCommand) {
public InputHandler(DarkRP2D game) {
testCommand = new TestCommand();
this.menuCommand = menuCommand;
this.menuCommand = new MenuCommand(game, new MenuScreen(game));
}
@Override