GammelJAN 5 years ago
parent 7416a73dca
commit e8b9ad73fc

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

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

Loading…
Cancel
Save