Removed Syso's
This commit is contained in:
@@ -35,8 +35,6 @@ public class PreGameState extends GameState {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void update(float factor) {
|
public void update(float factor) {
|
||||||
// timer = timer +factor/1000;
|
|
||||||
// index -= timer;
|
|
||||||
index2 -= factor/1000;
|
index2 -= factor/1000;
|
||||||
index = (double) Math.round(index2*1000)/1000;
|
index = (double) Math.round(index2*1000)/1000;
|
||||||
if(index <= 0){
|
if(index <= 0){
|
||||||
@@ -60,18 +58,12 @@ public class PreGameState extends GameState {
|
|||||||
g2.drawString(text, 325, 400);
|
g2.drawString(text, 325, 400);
|
||||||
if(index < 1){
|
if(index < 1){
|
||||||
text = "GO!!!";
|
text = "GO!!!";
|
||||||
// width = g2.getFontMetrics().stringWidth("GO!!!");
|
|
||||||
// g2.drawString("GO!!!",325,600);
|
|
||||||
}
|
}
|
||||||
else if (index < 2){
|
else if (index < 2){
|
||||||
text = "SET";
|
text = "SET";
|
||||||
// width = g2.getFontMetrics().stringWidth("SET");
|
|
||||||
// g2.drawString("SET", 450,600);
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
text = "READY";
|
text = "READY";
|
||||||
// width = g2.getFontMetrics().stringWidth("READY");
|
|
||||||
// g2.drawString("READY", 325, 600);
|
|
||||||
}
|
}
|
||||||
width = g2.getFontMetrics().stringWidth(text);
|
width = g2.getFontMetrics().stringWidth(text);
|
||||||
g2.drawString(text, (256+1024/2)-width/2, 600);
|
g2.drawString(text, (256+1024/2)-width/2, 600);
|
||||||
|
|||||||
Reference in New Issue
Block a user