Skip to content

Commit

Permalink
new version (1.2.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
SBester001 committed Oct 15, 2019
1 parent b4ea09f commit 7a7524d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

@SuppressWarnings("serial")
public class Game extends JFrame {
public static String version = "1.1.0";
public static String version = "1.2.0";

public static Game game;

Expand Down Expand Up @@ -182,7 +182,9 @@ private void start(Graphics g){
while(go && !exitEasterEgg){
move(g, speedx, speedy);
try {
Thread.sleep(20); //todo 20
Thread.sleep(20); //just for testing:
/*Thread.sleep(2);
test = true;*/
} catch (InterruptedException e) {
e.printStackTrace();
}
Expand Down Expand Up @@ -257,8 +259,6 @@ void move(Graphics g, int speedx, int speedy){
}

void clear(Graphics g){
//g.clearRect(posx, posy, sizex+bsize, sizey+bsize);
//g.clearRect(0, bary, sizex+(posx*2), barSizey);
Image subImg = background.getSubimage(0, bary, sizex+(posx*2), barSizey);
g.drawImage(subImg, 0, bary, sizex+(posx*2), barSizey, null); //clear bar

Expand Down

0 comments on commit 7a7524d

Please sign in to comment.