电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

Android连连看源代码

Android连连看源代码_第1页
1/32
Android连连看源代码_第2页
2/32
Android连连看源代码_第3页
3/32
运行出来效果如下: MainActivity: package games.llk; import android.app.Activity; import android.os.Bundle; public class Main extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.main); setContentView(new GameView(this)); } } GameView: package games.llk; import java.util.Random; import android.content.Context; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Point; import android.graphics.Rect; import android.graphics.Bitmap.Config; import android.os.Handler; import android.view.MotionEvent; import android.view.View; public class GameView extends View { private int m_w; private int m_h; private int top_client; private int right_client; private int bottom_client; private int left_client; private Rect client_r; private Paint p_client_r; private boolean display_moreInfo; private boolean isInited; private Paint p; private Paint p_line; private Paint p_line_2; private Paint p_text; private Paint p_pross_b; private Paint p_pross; private int point_w; private int point_h; private Rect btn_r_1; private Rect btn_r_2; private Rect btn_r_close; private Bitmap bmp_btn; private Rect pross_r; private Rect pross_r_2; private Rect t_r; private Rect t_r_2; private boolean ispause=false; private boolean isstart=false; private String s_pause="暂停中。"; private Bitmap buff; private Bitmap bmp_point; private Bitmap bmp_hint; private Canvas buff_Canvas; private int flevel ; private int ffen =0; private int timecount=0; private int timecountper_l = 480; private boolean isdrawing=false ; private Random random=new Ran...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

Android连连看源代码

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部