You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
451 B
26 lines
451 B
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;
|
|
}
|
|
}
|
|
}
|