求救,能给个手机游戏源代码和图片给我学习参考不??最好休闲类游戏!

下次自动登录
现在的位置:
& 综合 & 正文
(游戏及源代码)C#拼图游戏
大家好,这次我要为大家带来的是一个用C#写的WinForm游戏,名字叫做拼图游戏。拼图游戏想必大家肯定玩过,玩法我就不赘述了。
首先向大家展示一下运行效果图吧:
1:创建WindowForm应用?
打开vs2010,创建一个Window应用程序了。那么我们就创建一个应用程序,并命名为: LilacFlower。对于一个窗体应用程序,vs2010在图形界面对控件的布局以及属性事件的设置可以说是当今世界上最好的软件了。那么我们从工具箱里面拖动控件放到窗体界面上,效果图如下:
具体参照Form1.Designer.cs文件:
namespace LilacFlower
partial class Form1
private ponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
if (disposing && (components != null))
components.Dispose();
base.Dispose(disposing);
#region Windows フォーム デザイナーで生成されたコード
private void InitializeComponent()
this.mainPanel = new System.Windows.Forms.Panel();
this.modePicture = new System.Windows.Forms.PictureBox();
this.difficultySelection = new System.boBox();
this.txtLabel = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.startbtn = new System.Windows.Forms.Button();
this.addPicturebtn = new System.Windows.Forms.Button();
this.pictureShowListBox = new System.Windows.Forms.ListBox();
((ponentModel.ISupportInitialize)(this.modePicture)).BeginInit();
this.SuspendLayout();
this.mainPanel.Location = new System.Drawing.Point(151, 14);
this.mainPanel.Name = "mainPanel";
this.mainPanel.Size = new System.Drawing.Size(500, 500);
this.mainPanel.TabIndex = 0;
this.modePicture.Location = new System.Drawing.Point(12, 12);
this.modePicture.Name = "modePicture";
this.modePicture.Size = new System.Drawing.Size(120, 120);
this.modePicture.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchI
this.modePicture.TabIndex = 0;
this.modePicture.TabStop = false;
this.modePicture.Click += new System.EventHandler(this.modePicture_Click);
this.difficultySelection.DropDownStyle = System.boBoxStyle.DropDownL
this.difficultySelection.FormattingEnabled = true;
this.difficultySelection.Items.AddRange(new object[] {
"简单(3*3)",
"中等(5*5)",
"困难(7*7)"});
this.difficultySelection.Location = new System.Drawing.Point(45, 160);
this.difficultySelection.Name = "difficultySelection";
this.difficultySelection.Size = new System.Drawing.Size(88, 20);
this.difficultySelection.TabIndex = 0;
this.txtLabel.AutoSize = true;
this.txtLabel.Location = new System.Drawing.Point(10, 163);
this.txtLabel.Name = "txtLabel";
this.txtLabel.Size = new System.Drawing.Size(29, 12);
this.txtLabel.TabIndex = 0;
this.txtLabel.Text = "难度";
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 197);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(59, 12);
this.label1.TabIndex = 0;
this.label1.Text = "图片选择:";
this.startbtn.Location = new System.Drawing.Point(31, 474);
this.startbtn.Name = "startbtn";
this.startbtn.Size = new System.Drawing.Size(75, 23);
this.startbtn.TabIndex = 0;
this.startbtn.Text = "开始";
this.startbtn.UseVisualStyleBackColor = true;
this.startbtn.Click += new System.EventHandler(this.startbtn_Click);
this.addPicturebtn.Location = new System.Drawing.Point(31, 429);
this.addPicturebtn.Name = "addPicturebtn";
this.addPicturebtn.Size = new System.Drawing.Size(75, 23);
this.addPicturebtn.TabIndex = 0;
this.addPicturebtn.Text = "添加图片";
this.addPicturebtn.UseVisualStyleBackColor = true;
this.addPicturebtn.Click += new System.EventHandler(this.addPicturebtn_Click);
this.pictureShowListBox.FormattingEnabled = true;
this.pictureShowListBox.ItemHeight = 12;
this.pictureShowListBox.Location = new System.Drawing.Point(14, 212);
this.pictureShowListBox.Name = "pictureShowListBox";
this.pictureShowListBox.Size = new System.Drawing.Size(120, 196);
this.pictureShowListBox.TabIndex = 0;
this.pictureShowListBox.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.F
this.ClientSize = new System.Drawing.Size(678, 525);
this.Controls.Add(this.pictureShowListBox);
this.Controls.Add(this.addPicturebtn);
this.Controls.Add(this.startbtn);
this.Controls.Add(this.label1);
this.Controls.Add(this.txtLabel);
this.Controls.Add(this.difficultySelection);
this.Controls.Add(this.modePicture);
this.Controls.Add(this.mainPanel);
this.Name = "Form1";
this.Text = "Form1";
((ponentModel.ISupportInitialize)(this.modePicture)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
#endregion
private System.Windows.Forms.Panel mainP
private System.Windows.Forms.PictureBox modeP
private System.boBox difficultyS
private System.Windows.Forms.Label txtL
private System.Windows.Forms.Label label1;
private System.Windows.Forms.B
private System.Windows.Forms.Button addP
private System.Windows.Forms.ListBox pictureShowListB
namespace LilacFlower
partial class Form1
/// &summary&
/// &/summary&
ponentModel.IContainer components =
/// &summary&
/// &/summary&
/// &param name="disposing"&&/param&
protected override void Dispose(bool disposing)
if (disposing && (components != null))
components.Dispose();
base.Dispose(disposing);
#region Windows フォーム デザイナーで生成されたコード
/// &summary&
/// &/summary&
private void InitializeComponent()
this.mainPanel = new System.Windows.Forms.Panel();
this.modePicture = new System.Windows.Forms.PictureBox();
this.difficultySelection = new System.boBox();
this.txtLabel = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.startbtn = new System.Windows.Forms.Button();
this.addPicturebtn = new System.Windows.Forms.Button();
this.pictureShowListBox = new System.Windows.Forms.ListBox();
((ponentModel.ISupportInitialize)(this.modePicture)).BeginInit();
this.SuspendLayout();
// mainPanel
this.mainPanel.Location = new System.Drawing.Point(151, 14);
this.mainPanel.Name = "mainPanel";
this.mainPanel.Size = new System.Drawing.Size(500, 500);
this.mainPanel.TabIndex = 0;
// modePicture
this.modePicture.Location = new System.Drawing.Point(12, 12);
this.modePicture.Name = "modePicture";
this.modePicture.Size = new System.Drawing.Size(120, 120);
this.modePicture.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchI
this.modePicture.TabIndex = 0;
this.modePicture.TabStop =
this.modePicture.Click += new System.EventHandler(this.modePicture_Click);
// difficultySelection
this.difficultySelection.DropDownStyle = System.boBoxStyle.DropDownL
this.difficultySelection.FormattingEnabled =
this.difficultySelection.Items.AddRange(new object[] {
"简单(3*3)",
"中等(5*5)",
"困难(7*7)"});
this.difficultySelection.Location = new System.Drawing.Point(45, 160);
this.difficultySelection.Name = "difficultySelection";
this.difficultySelection.Size = new System.Drawing.Size(88, 20);
this.difficultySelection.TabIndex = 0;
// txtLabel
this.txtLabel.AutoSize =
this.txtLabel.Location = new System.Drawing.Point(10, 163);
this.txtLabel.Name = "txtLabel";
this.txtLabel.Size = new System.Drawing.Size(29, 12);
this.txtLabel.TabIndex = 0;
this.txtLabel.Text = "难度";
this.label1.AutoSize =
this.label1.Location = new System.Drawing.Point(12, 197);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(59, 12);
this.label1.TabIndex = 0;
this.label1.Text = "图片选择:";
// startbtn
this.startbtn.Location = new System.Drawing.Point(31, 474);
this.startbtn.Name = "startbtn";
this.startbtn.Size = new System.Drawing.Size(75, 23);
this.startbtn.TabIndex = 0;
this.startbtn.Text = "开始";
this.startbtn.UseVisualStyleBackColor =
this.startbtn.Click += new System.EventHandler(this.startbtn_Click);
// addPicturebtn
this.addPicturebtn.Location = new System.Drawing.Point(31, 429);
this.addPicturebtn.Name = "addPicturebtn";
this.addPicturebtn.Size = new System.Drawing.Size(75, 23);
this.addPicturebtn.TabIndex = 0;
this.addPicturebtn.Text = "添加图片";
this.addPicturebtn.UseVisualStyleBackColor =
this.addPicturebtn.Click += new System.EventHandler(this.addPicturebtn_Click);
// pictureShowListBox
this.pictureShowListBox.FormattingEnabled =
this.pictureShowListBox.ItemHeight = 12;
this.pictureShowListBox.Location = new System.Drawing.Point(14, 212);
this.pictureShowListBox.Name = "pictureShowListBox";
this.pictureShowListBox.Size = new System.Drawing.Size(120, 196);
this.pictureShowListBox.TabIndex = 0;
this.pictureShowListBox.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.F
this.ClientSize = new System.Drawing.Size(678, 525);
this.Controls.Add(this.pictureShowListBox);
this.Controls.Add(this.addPicturebtn);
this.Controls.Add(this.startbtn);
this.Controls.Add(this.label1);
this.Controls.Add(this.txtLabel);
this.Controls.Add(this.difficultySelection);
this.Controls.Add(this.modePicture);
this.Controls.Add(this.mainPanel);
this.Name = "Form1";
this.Text = "Form1";
((ponentModel.ISupportInitialize)(this.modePicture)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
#endregion
private System.Windows.Forms.Panel mainP
private System.Windows.Forms.PictureBox modeP
private System.boBox difficultyS
private System.Windows.Forms.Label txtL
private System.Windows.Forms.Label label1;
private System.Windows.Forms.B
private System.Windows.Forms.Button addP
private System.Windows.Forms.ListBox pictureShowListB
现在窗体界面设计好了,下面该干嘛呢?对了,是设置Form的属性,为了把这些设置更好的讲解给大家,我就不在窗体设计文件中进行设置,在构造函数中设置,具体需要设置的窗体信息如下:1,窗体的名称 2,禁止拉伸窗口 3,图块所在容器背景色 4,去掉最大化按钮。具体如下:
this.Text = "拼图游戏(LilacFlower)";
this.MaximizeBox = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedS
this.mainPanel.BackColor = Color.W
this.DoubleBuffered = true;
// 窗体相关设置
this.Text = "拼图游戏(LilacFlower)";
// 去掉最大化按钮
this.MaximizeBox =
// 禁止拉伸窗口
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedS
// 显示背景
this.mainPanel.BackColor = Color.W
// 双缓冲绘图
this.DoubleBuffered =
2:动态加载图片
讲到图片,就不得不提System.Drawing.Bitmap对象了。这是来着MSDN的解释:
位图由图形图像及其特性的像素数据组成。可使用许多标准格式将位图保存到文件中。GDI+ 支持下列文件格式:BMP、GIF、EXIF、JPG、PNG 和
TIFF。有关支持的格式的更多信息,请参见。
可以使用 构造函数中的一种来从文件、流和其他源创建图像,然后使用
方法将这些图像保存到流或文件系统中。使用 对象的
方法,将图像绘制到屏幕上或内存中。有关使用图像文件的主题的列表,请参见。
说白了,Bitmap对象就是一张存放在内存中的一张图片,所有格式的图片在GDI+中,加载到内存当中去,就应该是Bitma对象了,其常用的2个构造函数如下:
Bitmap bmp1 = new Bitmap("path");
Bitmap bmp2 = new Bitmap(100, 200);
Bitmap bmp1 = new Bitmap("path");
Bitmap bmp2 = new Bitmap(100, 200);
Bitmap对象可以用来作为图片显示,你也可以使用GDI+改变该图片。并且在控件中显示出来。
Bitmap对象可以用来作为图片显示,你也可以使用GDI+改变该图片。并且在控件中显示出来。
上面那个构造函数式图片路径,可以是绝对路径也可以说相对路径。在程序中有个叫Image的目录,是专门存放图片的,该目录由应用程序在第一次运行的时候创建,并且在以后添加文件时自动添加到该目录下,如:
①:应用程序自动创建文件夹:
1:目录名称使用常量:
private const string PicturePath = "Image";
/// &summary&
/// 存放图片的文件目录名称
/// &/summary&
private const string PicturePath = "Image";
2:应用程序检查是否存在Image目录,不存在就创建它
if (!Directory.Exists(PicturePath))
Directory.CreateDirectory(PicturePath);
// 第一次运行创建Image目录
if (!Directory.Exists(PicturePath))
Directory.CreateDirectory(PicturePath);
②:Image目录下的文件一览:
③:添加图片
我们给按钮 ‘添加图片’ 增加一个相应函数(在窗体设计界面双击该按钮即可),这样你选择的图片就会自动拷贝到Image目录中被应用程序加载了。
private void addPicturebtn_Click(object sender, EventArgs e)
OpenFileDialog dlg = new OpenFileDialog();
dlg.Filter = "jpg文件|*.jpg|png图片|*.png|gif图片|*.gif";
if (DialogResult.OK == dlg.ShowDialog())
File.Copy(dlg.FileName, PicturePath + "\\" + System.IO.Path.GetFileName(dlg.FileName));
NewPicture(PicturePath + "\\" + System.IO.Path.GetFileName(dlg.FileName));
catch (Exception ex)
MessageBox.Show("文件复制失败!" + ex.Message);
dlg.Dispose();
/// &summary&
/// 增加图片
/// &/summary&
/// &param name="sender"&&/param&
/// &param name="e"&&/param&
private void addPicturebtn_Click(object sender, EventArgs e)
// 显示打开文件对话框
OpenFileDialog dlg = new OpenFileDialog();
dlg.Filter = "jpg文件|*.jpg|png图片|*.png|gif图片|*.gif";
// 按下确定
if (DialogResult.OK == dlg.ShowDialog())
// 把文件拷贝到 Image目录下
File.Copy(dlg.FileName, PicturePath + "\\" + System.IO.Path.GetFileName(dlg.FileName));
NewPicture(PicturePath + "\\" + System.IO.Path.GetFileName(dlg.FileName));
catch (Exception ex)
// 文件拷贝失败
MessageBox.Show("文件复制失败!" + ex.Message);
dlg.Dispose();
对于dlg的Filter属性,其用'|'分割,并且前面奇数位置是显示在对话框中的文字,偶数位置是前一个的目录筛选后缀名。
dlg.ShowDialog()函数将显示一个对话框并返回你点击的按钮结果。
④:增加图片成功,拷贝成功
解决了加载图片问题,下面就是解决图块(就是上图那些标有数字的控件)问题了。
3:图块类及图块的特效
考虑到图块需要显示图片,并且程序要对图块的位置进行判断是否已经拼完。那么我们可以创建一个类,并且让它继承PictureBox类,因为使用PictureBox来显示图片是再好不过的控件了。
public class PictureItem : PictureBox
/// &summary&
/// &/summary&
public class PictureItem : PictureBox
继承PictureBox后图块具有了PictureBox的一切特效,当能作为子类,我们需要为‘它’添加一些其它的特性,如:当鼠标移入的时候,图片框的颜色会发生变化,鼠标移出的时候图片框的颜色还原,并且当需要的时候还显示图片的位置(就是它上面的数字)。
public class PictureItem : PictureBox
private Bitmap _mouseOutB
private Bitmap _mouseInB
private Bitmap _mouseOutBitmapContainsN
private Bitmap _mouseInBitmapContainsN
private bool _showN
public bool ShowNumber
return this._showN
this._showNumber =
this.PictureItem_MouseLeave(this, new EventArgs());
public Point At
public Point RightAt
protected set;
public PictureItem()
this.MouseEnter += new EventHandler(PictureItem_MouseEnter);
this.MouseLeave += new EventHandler(PictureItem_MouseLeave);
void PictureItem_MouseLeave(object sender, EventArgs e)
if (!this._showNumber)
this.Image = this._mouseOutB
else this.Image = this._mouseOutBitmapContainsN
void PictureItem_MouseEnter(object sender, EventArgs e)
if (!this._showNumber)
this.Image = this._mouseInB
else this.Image = this._mouseInBitmapContainsN
public void SetBitmap(Bitmap msIn, Bitmap msOut, Bitmap numMsIn, Bitmap numMsOut)
this._mouseInBitmap = msIn;
this._mouseOutBitmap = msO
this._mouseOutBitmapContainsNumber = numMsO
this._mouseInBitmapContainsNumber = numMsIn;
this.Image = msO
public void SetRightPoint(int x, int y)
this.RightAt = new Point(x, y);
/// &summary&
/// &/summary&
public class PictureItem : PictureBox
private Bitmap _mouseOutB// 默认图片
private Bitmap _mouseInB // 鼠标移入的图片
private Bitmap _mouseOutBitmapContainsN// 包含数字的默认图片
private Bitmap _mouseInBitmapContainsN// 包含数字的鼠标移入图片
/// &summary&
/// 是否显示图片数字
/// &/summary&
private bool _showN
public bool ShowNumber
return this._showN
this._showNumber =
this.PictureItem_MouseLeave(this, new EventArgs());
/// &summary&
/// 图块所在的位置
/// &/summary&
public Point At
/// &summary&
/// 图块的正确位置 用于判断图块是否在正确位置上
/// &/summary&
public Point RightAt
public PictureItem()
// 鼠标移入图片方框颜色变化
this.MouseEnter += new EventHandler(PictureItem_MouseEnter);
// 鼠标移出使用默认图片
this.MouseLeave += new EventHandler(PictureItem_MouseLeave);
/// &summary&
/// 鼠标离开
/// &/summary&
/// &param name="sender"&&/param&
/// &param name="e"&&/param&
void PictureItem_MouseLeave(object sender, EventArgs e)
if (!this._showNumber)
this.Image = this._mouseOutB
else this.Image = this._mouseOutBitmapContainsN
/// &summary&
/// 鼠标移入
/// &/summary&
/// &param name="sender"&&/param&
/// &param name="e"&&/param&
void PictureItem_MouseEnter(object sender, EventArgs e)
if (!this._showNumber)
this.Image = this._mouseInB
else this.Image = this._mouseInBitmapContainsN
/// &summary&
/// 设置图块的图片
/// &/summary&
/// &param name="msIn"&&/param&
/// &param name="msOut"&&/param&
public void SetBitmap(Bitmap msIn, Bitmap msOut, Bitmap numMsIn, Bitmap numMsOut)
this._mouseInBitmap = msIn;
this._mouseOutBitmap = msO
this._mouseOutBitmapContainsNumber = numMsO
this._mouseInBitmapContainsNumber = numMsIn;
this.Image = msO
/// &summary&
/// 设置图块的正确位置
/// &/summary&
/// &param name="x"&&/param&
/// &param name="y"&&/param&
public void SetRightPoint(int x, int y)
this.RightAt = new Point(x, y);
这么一作,一个图块类以及完成了,接下来就是使用这个图块类了。
①:图块数组
因为我们在程序中需要N*N的图块,而N是未知数,那么就创建一个名为_pictureArray的二维数组,用于动态创建图块群。
[csharp] <a class="About" title="?" h
&&&&推荐文章:
【上篇】【下篇】关于棋牌游戏源代码开放_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
关于棋牌游戏源代码开放
上传于|0|0|暂无简介
阅读已结束,如果下载本文需要使用1下载券
想免费下载本文?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩1页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢BuildBox休闲游戏《不可能的跳跃》项目,其它,游戏源码,6m5m游戏素材
请求处理中...
BuildBox休闲游戏《不可能的跳跃》项目,玩家的目标是避免触碰三角形,虐心游戏,支持google play,带编译视频教程、文档和ai设计源文件。BuildBox是一种新兴的傻瓜式游戏开发工具,大家可以百度一下。
或 0 积分 ()
下载13浏览人数504交付方式直接下载
注意:【1】本站只是个免费分享平台,并不敢保证所有源码人人都能编译,因素太多,旨在学习研究,如果您有顾虑或斤斤计较就请不要下载了,大家都不容易,互相理解,才能让更多的好资源出现!【2】本站资源仅限于学习研究,请在下载后24小时内删除,不要用于任何商业用途。【3】部分素材压缩包因体积过大而上传到百度等网盘上,如果发现在本站下载的压缩包只要有几K大小,说明该压缩包里只是网盘的下载链接,并非文件损坏,本站的所有素材都是经过了审核,大家可放心下载,欢迎监督反馈。【4】做个好平台真心不容易,我们一直在努力,因本站素材量大,难免会出现某网盘下载链接失效等问题,请大家及时反馈,我们会及时修正保证您可以拿到素材,请大家支持和理解!
免责声明:本网所展示的素材与服务信息由买卖双方自行提供,其真实性、准确性和合法性由信息发布人负责。本网不提供任何保证,并不承担法律责任,如有不妥之处请及时反馈,本网将会妥善处理。
友情提醒:本站旨在游戏开发的学习,所分享的素材资源均来源于网络,仅适用于学习研究,禁止用于任何商业用途,否则后果自负,所展示的素材版权归原作者或公司所有,如果本站素材侵犯了您的权益,请与联系我们,我们将及时处理。
猜您喜欢的游戏素材
0金币 / 个
0金币 / 个
0金币 / 个
0金币 / 个
0金币 / 个
0金币 / 个
0金币 / 件
5金币 / 个
1金币 / 个
0金币 / 个
好评率100%
出售素材13安卓游戏源码
打地鼠游戏 可谓经典的游戏了,实现起来不难,可作为游戏开发学习的入门资料,前些日子在学习时写了一个现在就过年来临之际分享下源码供大家学习之用。...
android手机游戏分享客户端源码 ,基本实现了80%功能。...
本游戏是一个简单的安卓两人对战五子棋游戏源码,方便没有棋盘的时候跟朋友消遣。不需要联机,直接在一个棋盘上下,我的手机分辨率小点,所以游戏里面的棋盘显示不开,有大分辨率手机或者平板的朋友可以测试一下,当然只做棋盘可以把上面的我的五子棋那几个...
本游戏和之前发的那个五子棋在实现的功能上差不多,同样是3个java文件实现所有功能,但是这个在一些细节的处理上做的要比上一个五子棋游戏源码要好一些了,比如在分辨率的适配上,不过本项目比上一个项目注释量要少一些,有兴趣做安卓人人对战五子棋的朋友可...
本游戏是一个类似于涂鸦跳跃(Doodle Jump)的安卓游戏项目源码,是一款富有趣味的技巧性的游戏,在游戏中玩家要让小猪不停地往上跳跃,在跳跃中要小心碰撞黑洞或掉下死亡,上升过程中有各种奖励道具,和各类型踏板!,这是一个富有趣味的技巧性游戏。跳得越...
本项目是一个某品牌日用品的一个小游戏,可能某家天猫店做宣传的时候用的,游戏里面可以通过左右水平晃动手机来移动下方的小推车接住掉落下来的各种产品,然后最后提交一个联系方式来获取天猫优惠券(这种营销方式想法的却不错),其实优惠券号码是直接写死...
本项目是一个单机的斗地主项目源码,不过这个项目的分辨率有点问题,我在真机和模拟器的480*800上无论是横屏还是竖屏游戏都只能显示一部分画面,可能项目是使用的更低分辨率创建的,不过我玩了玩这个项目的却比以前发的斗地主项目算法要好一些,...
本项目是一个仿微信的飞机大战游戏源码,所有图片或者音效素材都是取自微信的飞机大战,纯java实现,触屏按住随意一个地方,左右移动,便可自动攻击敌人,上下移动亦可躲避强敌。不过没有道具,项目源码有比较详细的注释,项目编码GBK,默认编译版本4.1.2。...
本项目是一个类似与疯狂猜图的开源游戏源码,项目的名字叫猜你大爷,不过这个游戏是听声音猜文字。点击任意关卡以后会自动播放一段某人物说过的话,需要在指定时间内直接点击下方提供的字来拼出完整的人名,游戏过程中可以花费积分来进行名字里面某个字的提...
魔塔是一种RPG游戏。这个游戏需要动很多脑筋,任何一个轻率的选择都可能导致游戏的失败。对于血量攻击防御等级的提升都是很有讲究,稍有不慎就会导致满盘皆输重新开始,魔塔游戏虽不大,但是制作精美,道具很多,而且难度不低,对智商是一次艰巨的考验。记得...
本例子是一个最简单的打砖块游戏源码,刚开的时候我都不知道是什么东西。原来拖住最下面的块那个小圆就开始运动,小圆弹上去碰到上方的砖块,砖块会消失,然后砖块会再次弹下来,弹的过程中拖动下方小板的手不能放开,要一直按着才行,放开以后就不能再次移...
本项目是一个只适用于模拟器的俄罗斯方块,因为方块的翻滚需要按上键,但是游戏里面并没有虚拟键盘,现在的大屏智能机大部分也没有物理的方向键,所以就只能在有方向键的模拟器或者有物理方向键的老安卓机上才能玩了,不过游戏算法完整,如果想做俄罗斯方块...
本项目是一个基于安卓AndEngine开源2D游戏引擎开发的钻石消消看消除类小游戏,操作方式与传统的消除类小游戏一样,点击一个宝石再点击上下左右任意一个宝石即可互换位置,如果交换位置后宝石的颜色形状可以连成三个及三个以上就可以消除宝石并进行加分操作,...
本项目是一个看图片猜与图片相关联的项目源码,开始游戏以后游戏上方会以3秒、4秒、5秒的时间间隔陆续播放三张图片,有纯台词也有图片但是都与下方的选项有关系,游戏下方给出4个选项,每题原是积分为1000分,随着时间的逐渐降低所能得到的金币奖励也会逐渐...
android会说话的汤姆猫源码 这个游戏曾经在网上风靡一时,我想现在很多朋友的手机上还有这款游戏,不经意间发现这个源码和大家分享一下,android游戏源码的经典。...
本项目是一个基于安卓OGEngine引擎的别踩白块(也叫黑白块或者钢琴块)的游戏源码,别踩白块是一款非常耐玩的休闲益智游戏,别踩白块儿,这就是这个游戏唯一的一个规则,代码有大量详细的中文注释,游戏试玩了一下很流畅和原版没有什么区别不过只有经典模式,...
本项目是一个基于jbox2d的仿愤怒的小鸟的游戏源码,跟愤怒的小鸟玩法一致,不过主角从鸟换成了猪,游戏操作也比较流畅,不过玩了几局以后好像出现了bug,懂jbox2d的朋友再具体看一下吧,源码不多没有分层有比较详细的中文注释默认编译版本2.3.3编码GBK...
本项目是一个仿Flappy Bird的小游戏,不过把Flappy Bird里面的鸟替换成了简单的圆,操作技巧和Flappy Bird相同:1.不停点击屏幕,控制圆圈跳动。2.不要撞墙。本项目没有注释但是代码较少,只有三个java文件完成,默认编译版本4.2.2编码GBK...
脑筋急转弯(完整数据版),集成海量题目,内容丰富、形式多样,直接离线访问,无流量产生,趣味盎然,老少皆宜,通过阅读可以锻炼你从多角度思考问题,认识世界的能力,也可以帮助你破除固有思维,培养灵活多变的思维方式。每次刷新随机生成题目,还包含笑...
《街机赛马》是一款模拟90年代至2000年初期火爆各街机室的马机游戏,游戏操作简单,易上手,画面采用复古像素风,简洁清爽.百分百还原街机的画面和音乐,让我们重回学生时代在街机室里的那段激情燃烧的岁月,本项目是安卓版本的街机赛马游戏源码,代码简洁没有使...
安卓源码分类
增值电信业务经营许可证:苏B2-CopyRight &#169;
All Rights reserved.

我要回帖

 

随机推荐