文件名称:ballgame
介绍说明--下载内容均来自于网络,请自行研究使用
Android(迷宫小球)游戏源代码,MyCircle.java为绘制圆球主文件,在此构造圆形图形绘制函数,设置圆形图形的X、Y坐标和角度等参数;HButton.java为绘制按钮主文件,通过按钮坐标宽高与触屏的坐标进行判定按钮是否被点击;MySurfaceView.java为游戏控制,声明一个物理世界的范围对象,声明一个重力向量对象,声明胜利与失败的body,用于判定游戏的胜负,为了游戏暂停时,失败,胜利能继续可能到游戏中的状态,所以并没有将其写成一个状态,定义菜单、按钮、游戏背景图片资源等,具体请下载Java文件参阅-Android (maze ball) game source code, MyCircle.java to draw the ball master file, in this construct circular graphics rendering functions, set the circular pattern of X, Y coordinates and angle and other parameters HButton.java to draw the button on the main documents, coordinate by coordinate buttons and touch screen width and height determination whether the button is clicked MySurfaceView.java game control, declare a range of objects in the physical world, declare a gravity vector object, declare victory and defeat body, to determine the outcome of the game, when the game is paused to failure, victory may be able to continue to the game state, so do not be written as a state, custom menus, buttons, games, background images and other resources, please download Java files refer to the specific
(系统自动生成,下载前可以参看下载内容)
下载文件列表
(迷宫小球)\BallGame\.classpath
..........\........\.project
..........\........\AndroidManifest.xml
..........\........\bin\BallGame.apk
..........\........\...\classes.dex
..........\........\...\.om\bg\HButton.class
..........\........\...\...\..\MainActivity.class
..........\........\...\...\..\MyCircle.class
..........\........\...\...\..\MyRect.class
..........\........\...\...\..\MySurfaceView.class
..........\........\...\...\..\MySurfaceView2.class
..........\........\...\...\..\R$attr.class
..........\........\...\...\..\R$drawable.class
..........\........\...\...\..\R$layout.class
..........\........\...\...\..\R$string.class
..........\........\...\...\..\R.class
..........\........\...\MainActivity.apk
..........\........\...\resources.ap_
..........\........\default.properties
..........\........\gen\com\bg\R.java
..........\........\lib\jbox2d.jar
..........\........\proguard.cfg
..........\........\res\drawable-hdpi\icon.png
..........\........\...\.........ldpi\icon.png
..........\........\...\.........mdpi\ball.png
..........\........\...\.............\gamelost.png
..........\........\...\.............\gamewin.png
..........\........\...\.............\game_bg.png
..........\........\...\.............\h.png
..........\........\...\.............\helpbg.png
..........\........\...\.............\icon.png
..........\........\...\.............\lostbody.png
..........\........\...\.............\menu_back.png
..........\........\...\.............\menu_bg.png
..........\........\...\.............\menu_exit.png
..........\........\...\.............\menu_help.png
..........\........\...\.............\menu_menu.png
..........\........\...\.............\menu_play.png
..........\........\...\.............\menu_replay.png
..........\........\...\.............\menu_resume.png
..........\........\...\.............\s.png
..........\........\...\.............\sh.png
..........\........\...\.............\smallbg.png
..........\........\...\.............\ss.png
..........\........\...\.............\winbody.png
..........\........\...\layout\main.xml
..........\........\...\values\strings.xml
..........\........\src\com\bg\HButton.java
..........\........\...\...\..\MainActivity.java
..........\........\...\...\..\MyCircle.java
..........\........\...\...\..\MyRect.java
..........\........\...\...\..\MySurfaceView.java
..........\........\bin\com\bg
..........\........\gen\com\bg
..........\........\src\com\bg
..........\........\bin\com
..........\........\gen\com
..........\........\res\drawable-hdpi
..........\........\...\drawable-ldpi
..........\........\...\drawable-mdpi
..........\........\...\layout
..........\........\...\values
..........\........\src\com
..........\........\assets
..........\........\bin
..........\........\gen
..........\........\lib
..........\........\res
..........\........\src
..........\BallGame
(迷宫小球)