GammelJAN 5 years ago
parent 7416a73dca
commit e8b9ad73fc

@ -141,7 +141,7 @@ public class Controller extends ApplicationAdapter implements InputProcessor {
renderer.end();
batch.begin();
font.setColor(Color.BLACK);
font.setColor(Color.GRAY);
if(model.getCurrentLength()!=0)font.draw(batch, ""+model.getCurrentLength(), Gdx.input.getX()+10, GAME_WORLD_HEIGHT - Gdx.input.getY()+10);
batch.end();
@ -156,7 +156,7 @@ public class Controller extends ApplicationAdapter implements InputProcessor {
font.draw(batch, ""+model.getLeftWallLength(), 1500f,800f);
batch.end();
// DRAW MONSTER
//model.getMonster().drawMonster(renderer,polygonSpriteBatch);
model.getMonster().drawMonster(renderer,polygonSpriteBatch);
}
}

@ -41,13 +41,13 @@ public class Text {
public void timer(){
if(moving){
if(movement){
setyPos(getyPos()+3);
setyPos(getyPos()+2);
if(getyPos() >= y2){
movement = false;
}
}
else if(!movement){
setyPos(getyPos()-3);
setyPos(getyPos()-2);
if(getyPos() <= y1){
movement = true;
}

Loading…
Cancel
Save