ADD file via upload

master
ppz6le8u7 3 years ago
parent 09ae80f7ce
commit f03412f556

@ -0,0 +1,25 @@
package com;
import java.awt.image.BufferedImage;
public class Ground {
int x, y;
int width, height;
BufferedImage img_ground; // 華醱芞⑵
public Ground() {
img_ground = BirdGame.ground;
x = 0;
y = BirdGame.bg.getHeight() - img_ground.getHeight();
width = img_ground.getWidth();
height = img_ground.getHeight();
}
// 華醱痄雄
public void step() {
x = x - 1;
if (x <= 432 - width) {
x = 0;
}
}
}
Loading…
Cancel
Save