GameLoop and some skeleton classes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user