飞扬小鸟的三个版本的源代码(超详细备注)和图片资源,外附编程的思想,要个3分不贵吧,献给爱玩的java初学者,高手勿笑
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-02-28 21:55 MyBird
文件 301 2014-02-20 22:03 MyBird.classpath
文件 382 2014-02-20 22:03 MyBird.project
目录 0 2014-02-20 22:03 MyBird.settings
文件 629 2014-02-20 22:03 MyBird.settingsorg.eclipse.jdt.core.prefs
目录 0 2014-03-10 21:49 MyBirdin
目录 0 2014-03-10 21:49 MyBirdinflappyBird
文件 3157 2014-02-20 20:20 MyBirdinflappyBird .png
文件 3167 2014-02-20 20:20 MyBirdinflappyBird1.png
文件 3159 2014-02-20 20:20 MyBirdinflappyBird2.png
文件 3165 2014-02-20 20:20 MyBirdinflappyBird3.png
文件 3157 2014-02-20 20:20 MyBirdinflappyBird4.png
文件 3165 2014-02-20 20:20 MyBirdinflappyBird5.png
文件 3159 2014-02-20 20:20 MyBirdinflappyBird6.png
文件 3167 2014-02-20 20:20 MyBirdinflappyBird7.png
文件 1271 2014-03-10 21:49 MyBirdinflappyBirdBackground.class
文件 9226 2014-02-20 20:21 MyBirdinflappyBirdg.png
文件 3470 2014-03-10 21:49 MyBirdinflappyBirdBird.class
文件 1518 2014-03-10 21:49 MyBirdinflappyBirdColumn.class
文件 5588 2014-02-20 20:21 MyBirdinflappyBirdcolumn.png
文件 8684 2014-02-20 20:21 MyBirdinflappyBirdgameover.png
文件 1236 2014-03-10 21:49 MyBirdinflappyBirdGround.class
文件 3567 2014-02-20 20:21 MyBirdinflappyBirdground.png
文件 9600 2014-02-20 20:21 MyBirdinflappyBirdstart.png
文件 813 2014-03-10 21:49 MyBirdinflappyBirdWorld$1.class
文件 877 2014-03-10 21:49 MyBirdinflappyBirdWorld$2.class
文件 3973 2014-03-10 21:49 MyBirdinflappyBirdWorld.class
目录 0 2014-02-20 22:16 MyBirdinflappyBird_super
文件 3157 2014-02-20 20:20 MyBirdinflappyBird_super .png
文件 3167 2014-02-20 20:20 MyBirdinflappyBird_super1.png
文件 3159 2014-02-20 20:20 MyBirdinflappyBird_super2.png
............此处省略149个文件信息
package flappyBird;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.IOException;
import javax.imageio.ImageIO;
public class Background {
BufferedImage image2;
// BufferedImage image3;
int x2;
int y2;
// int x3;
// int y3;
int width2;
int height2;
// int width3;
// int height3;
public Background(int n) throws IOException{
y2 = 0;
image2 = ImageIO.read(getClass().getResource(“bg.png“));
width2 = image2.getWidth();
height2 = image2.getHeight();
x2 = n;
// y3 =0;
// image3 = ImageIO.read(getClass().getResource(“bg.png“));
// width3 = image3.getWidth();
// height3 = image3.getHeight();
// x3 = 432;
}
public void step(){
x2--;
if(x2<= -(432)){
x2=432;
}
// x3--;
// if(x3<= -(432)){
// x3=432;
// }
}
public void paint(Graphics g) {
g.drawImage(image2 x2 y2 null);
// g.drawImage(image3 x3 y3 null);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-02-28 21:55 MyBird
文件 301 2014-02-20 22:03 MyBird.classpath
文件 382 2014-02-20 22:03 MyBird.project
目录 0 2014-02-20 22:03 MyBird.settings
文件 629 2014-02-20 22:03 MyBird.settingsorg.eclipse.jdt.core.prefs
目录 0 2014-03-10 21:49 MyBirdin
目录 0 2014-03-10 21:49 MyBirdinflappyBird
文件 3157 2014-02-20 20:20 MyBirdinflappyBird .png
文件 3167 2014-02-20 20:20 MyBirdinflappyBird1.png
文件 3159 2014-02-20 20:20 MyBirdinflappyBird2.png
文件 3165 2014-02-20 20:20 MyBirdinflappyBird3.png
文件 3157 2014-02-20 20:20 MyBirdinflappyBird4.png
文件 3165 2014-02-20 20:20 MyBirdinflappyBird5.png
文件 3159 2014-02-20 20:20 MyBirdinflappyBird6.png
文件 3167 2014-02-20 20:20 MyBirdinflappyBird7.png
文件 1271 2014-03-10 21:49 MyBirdinflappyBirdBackground.class
文件 9226 2014-02-20 20:21 MyBirdinflappyBirdg.png
文件 3470 2014-03-10 21:49 MyBirdinflappyBirdBird.class
文件 1518 2014-03-10 21:49 MyBirdinflappyBirdColumn.class
文件 5588 2014-02-20 20:21 MyBirdinflappyBirdcolumn.png
文件 8684 2014-02-20 20:21 MyBirdinflappyBirdgameover.png
文件 1236 2014-03-10 21:49 MyBirdinflappyBirdGround.class
文件 3567 2014-02-20 20:21 MyBirdinflappyBirdground.png
文件 9600 2014-02-20 20:21 MyBirdinflappyBirdstart.png
文件 813 2014-03-10 21:49 MyBirdinflappyBirdWorld$1.class
文件 877 2014-03-10 21:49 MyBirdinflappyBirdWorld$2.class
文件 3973 2014-03-10 21:49 MyBirdinflappyBirdWorld.class
目录 0 2014-02-20 22:16 MyBirdinflappyBird_super
文件 3157 2014-02-20 20:20 MyBirdinflappyBird_super .png
文件 3167 2014-02-20 20:20 MyBirdinflappyBird_super1.png
文件 3159 2014-02-20 20:20 MyBirdinflappyBird_super2.png
............此处省略149个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)