资源简介

FlappyBird的安卓开发源码,对刚学习安卓的同学有很大帮助

资源截图

代码片段和文件信息

import javax.swing.*;

public class App {

    public static int WIDTH = 500;
    public static int HEIGHT = 500;

    public static void main(String[] args) {
        Jframe frame = new Jframe();
        frame.setVisible(true);
        frame.setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);
        frame.setSize(WIDTH HEIGHT);
        frame.setLocationRelativeTo(null);

        Keyboard keyboard = Keyboard.getInstance();
        frame.addKeyListener(keyboard);

        GamePanel panel = new GamePanel();
        frame.add(panel);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-06-13 18:17  FlappyBird-master\
     文件          18  2015-06-13 18:17  FlappyBird-master\.gitignore
     文件        6555  2015-06-13 18:17  FlappyBird-master\LICENSE.txt
     文件         154  2015-06-13 18:17  FlappyBird-master\README.md
     目录           0  2015-06-13 18:17  FlappyBird-master\lib\
     文件       53699  2015-06-13 18:17  FlappyBird-master\lib\background.png
     文件       21361  2015-06-13 18:17  FlappyBird-master\lib\bird.png
     文件       26576  2015-06-13 18:17  FlappyBird-master\lib\foreground.png
     文件       23364  2015-06-13 18:17  FlappyBird-master\lib\pipe-north.png
     文件       23345  2015-06-13 18:17  FlappyBird-master\lib\pipe-south.png
     文件          62  2015-06-13 18:17  FlappyBird-master\run
     目录           0  2015-06-13 18:17  FlappyBird-master\src\
     文件         543  2015-06-13 18:17  FlappyBird-master\src\App.java
     文件        1540  2015-06-13 18:17  FlappyBird-master\src\Bird.java
     文件        3809  2015-06-13 18:17  FlappyBird-master\src\Game.java
     文件        1433  2015-06-13 18:17  FlappyBird-master\src\GamePanel.java
     文件         801  2015-06-13 18:17  FlappyBird-master\src\Keyboard.java
     文件        1261  2015-06-13 18:17  FlappyBird-master\src\Pipe.java
     文件         360  2015-06-13 18:17  FlappyBird-master\src\Render.java
     文件         582  2015-06-13 18:17  FlappyBird-master\src\Util.java

评论

共有 条评论