Commit 148a9d8d authored by Anders H. Rebner's avatar Anders H. Rebner
Browse files

Deleted unused PauseView

parent 67428d70
package com.mygdx.game.views;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.mygdx.game.controllers.PlayerController;
public class PauseView extends AbstractView {
private Texture background;
private Texture playBtn;
public PauseView(GameViewManager gvm, PlayerController playerController, AssetManager assetManager, Stage stage, Skin skin) {
super(gvm, playerController, assetManager, stage, skin);
background = new Texture ("Pause/PauseBackground.png");
playBtn = new Texture ("Pause/PauseButton.png");
Gdx.input.setCursorCatched(true);
}
@Override
public void handleInput(float dt) {
}
@Override
public void update(float dt) {
if(Gdx.input.isKeyPressed(Input.Keys.ANY_KEY)){
gvm.pop();
}
}
@Override
public void render(float dt) {
stage.draw();
}
@Override
public void fadeIn(float dt) {
}
@Override
public void fadeOut(float dt) {
}
@Override
public void dispose() {
background.dispose();
playBtn.dispose();
stage.dispose();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment