资源简介
先介绍一下玩法:
1、在电脑端模拟机打开的话,可以通过 w s a d 来控制上下左右。
2、在手机端通过方向感应器,手机角度的变化来控制贪吃蛇的运动。
3、试着添加了记录排名的功能,后来觉得挺简单,但是有点冗杂,所以很粗糙的弄了个得分记录。
供大家参考。
具体可参考博客文章:http://blog.csdn.net/u011035622/article/details/42060547
代码片段和文件信息
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package android.support.v7.appcompat;
public final class R {
public static final class anim {
public static final int abc_fade_in = 0x7f040000;
public static final int abc_fade_out = 0x7f040001;
public static final int abc_slide_in_bottom = 0x7f040002;
public static final int abc_slide_in_top = 0x7f040003;
public static final int abc_slide_out_bottom = 0x7f040004;
public static final int abc_slide_out_top = 0x7f040005;
}
public static final class attr {
public static final int actionBarDivider = 0x7f01000f;
public static final int actionBarItemBackground = 0x7f010010;
public static final int actionBarSize = 0x7f01000e;
public static final int actionBarSplitstyle = 0x7f01000c;
public static final int actionBarstyle = 0x7f01000b;
public static final int actionBarTabBarstyle = 0x7f010008;
public static final int actionBarTabstyle = 0x7f010007;
public static final int actionBarTabTextstyle = 0x7f010009;
public static final int actionBarWidgetTheme = 0x7f01000d;
public static final int actionButtonstyle = 0x7f010016;
public static final int actiondropDownstyle = 0x7f010047;
public static final int actionLayout = 0x7f01004e;
public static final int actionMenuTextAppearance = 0x7f010011;
public static final int actionMenuTextColor = 0x7f010012;
public static final int actionModeBackground = 0x7f01003c;
public static final int actionModeCloseButtonstyle = 0x7f01003b;
public static final int actionModeCloseDrawable = 0x7f01003e;
public static final int actionModeCopyDrawable = 0x7f010040;
public static final int actionModeCutDrawable = 0x7f01003f;
public static final int actionModeFindDrawable = 0x7f010044;
public static final int actionModePasteDrawable = 0x7f010041;
public static final int actionModePopupWindowstyle = 0x7f010046;
public static final int actionModeSelectAllDrawable = 0x7f010042;
public static final int actionModeShareDrawable = 0x7f010043;
public static final int actionModeSplitBackground = 0x7f01003d;
public static final int actionModestyle = 0x7f01003a;
public static final int actionModeWebSearchDrawable = 0x7f010045;
public static final int actionOverflowButtonstyle = 0x7f01000a;
public static final int actionProviderClass = 0x7f010050;
public static final int actionViewClass = 0x7f01004f;
public static final int activityChooserViewstyle = 0x7f01006c;
public static final int background = 0x7f01002f;
public static final int backgroundSplit = 0x7f010031;
public static final int backgroundStacked = 0x7f010030;
public static final int buttonBarButtonstyle = 0x7f010018;
public static final int buttonBarstyle = 0x7f010017;
public static final int customNavigationLayout = 0x7f010032;
public static final int disableChildrenWhenDisabled = 0x7f010054;
public static final int
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 475 2014-11-30 15:14 SnakeMy\.classpath
文件 843 2014-11-30 15:14 SnakeMy\.project
文件 177 2014-11-30 15:14 SnakeMy\.settings\org.eclipse.jdt.core.prefs
文件 903 2014-12-09 11:20 SnakeMy\AndroidManifest.xm
文件 903 2014-12-09 11:20 SnakeMy\bin\AndroidManifest.xm
文件 629 2014-12-17 22:03 SnakeMy\bin\classes\android\support\v7\appcompat\R$anim.class
文件 5136 2014-12-17 22:03 SnakeMy\bin\classes\android\support\v7\appcompat\R$attr.class
文件 763 2014-12-17 22:03 SnakeMy\bin\classes\android\support\v7\appcompat\R$bool.class
文件 594 2014-12-17 22:03 SnakeMy\bin\classes\android\support\v7\appcompat\R$color.class
文件 1530 2014-12-17 22:03 SnakeMy\bin\classes\android\support\v7\appcompat\R$dimen.class
文件 5191 2014-12-17 22:03 SnakeMy\bin\classes\android\support\v7\appcompat\R$drawable.class
文件 2556 2014-12-17 22:03 SnakeMy\bin\classes\android\support\v7\appcompat\R$id.class
文件 445 2014-12-17 22:03 SnakeMy\bin\classes\android\support\v7\appcompat\R$integer.class
文件 1629 2014-12-17 22:03 SnakeMy\bin\classes\android\support\v7\appcompat\R$layout.class
文件 1141 2014-12-17 22:03 SnakeMy\bin\classes\android\support\v7\appcompat\R$string.class
文件 9582 2014-12-17 22:03 SnakeMy\bin\classes\android\support\v7\appcompat\R$st
文件 6541 2014-12-17 22:03 SnakeMy\bin\classes\android\support\v7\appcompat\R$st
文件 1015 2014-12-17 22:03 SnakeMy\bin\classes\android\support\v7\appcompat\R.class
文件 331 2014-12-17 22:03 SnakeMy\bin\classes\com\snakemy\BuildConfig.class
文件 3775 2014-12-17 22:03 SnakeMy\bin\classes\com\snakemy\GameView.class
文件 2208 2014-12-17 22:03 SnakeMy\bin\classes\com\snakemy\MainActivity$1.class
文件 960 2014-12-17 22:03 SnakeMy\bin\classes\com\snakemy\MainActivity$2.class
文件 1072 2014-12-17 22:03 SnakeMy\bin\classes\com\snakemy\MainActivity$3.class
文件 1148 2014-12-17 22:03 SnakeMy\bin\classes\com\snakemy\MainActivity$4.class
文件 2269 2014-12-17 22:03 SnakeMy\bin\classes\com\snakemy\MainActivity$5$1.class
文件 1298 2014-12-17 22:03 SnakeMy\bin\classes\com\snakemy\MainActivity$5$2.class
文件 2672 2014-12-17 22:03 SnakeMy\bin\classes\com\snakemy\MainActivity$5.class
文件 7211 2014-12-17 22:03 SnakeMy\bin\classes\com\snakemy\MainActivity.class
文件 578 2014-12-17 22:03 SnakeMy\bin\classes\com\snakemy\R$anim.class
文件 5085 2014-12-17 22:03 SnakeMy\bin\classes\com\snakemy\R$attr.class
............此处省略85个文件信息
评论
共有 条评论