html 游戏首页,30个让人玩上瘾的HTML5游戏

30个让人玩上瘾的HTML5游戏

10月 17, 2013

评论 (4)

Sponsor10a45d2d0c23f68c6aa68c87bb9e706a.png

HTML5代替FLASH已经很强大了,没想到还可以做HTML5游戏,这样我们不用下载游戏客户端都能玩游戏了……目前国外很多网站都使用HTML5来构建,曾经使用FLASH的网站现在也转换成HTML5网页,使用HTML5是有很大优势的,用户可以通过HTML5来构建应用程序,包括手机APP应用、网页设计、游戏图形加速、高清视频等等。

下面是最新收集的30个让人玩上瘾的HTML5游戏,很多游戏真的难以想象是用HTML5制作出来的,好吧,大家一起去试玩下,看看好不好玩?Enjoy!

Super Mario

Sand Trap

HexGL

Entanglement

Galactic Inbox

BananaBread

Bombermine

Vector Runner Remix

Koubachi

Contre Jour

Cube

Save the Day

Connection

Chrome World Wide Maze

Roll It

Shell heroes

3D Bricks

Fluid Table Tennis

Unsnarl it

Input/Output

Universe within

Missile game

Circle game

Pappu Pakia

Tiny Monsters

HeadBoxing

Uncle Mike

Get Motion Media

Sketch out

Lux Ahoy

怎么样?这些HTML5游戏是不是很爽,你最喜欢玩哪个呢?请在下放留言处告诉大家吧!

推荐:查看最受欢迎的 301 个设计网站 → http://hao.shejidaren.com

交流:为设计新人提供的设计交流群,请加入UI设计交流群,分享经验、接单、求职、聊设计。

赞助商链接

155252a6671cbe350ec7f31b0924d3ce.png

赞助商链接

喜欢这篇文章吗?欢迎分享到你的微博、QQ群,并关注我们的微博,谢谢支持。

版权:除非注明,本站文章均为原创文章,转载请联系我们授权,否则禁止转载。

681c8afaf173814c21bcf077c1826a28.png

led -

2016 年 08 月 03 日 下午 4:00

不敢吃饭行不

ba72c92722ca72eada39234ff487175f?s=32&d=mm&r=g

吳冠廷 -

2013 年 10 月 19 日 下午 8:05

Contre Jour風格很棒=)

c4f2d6161db9a6fc784f340348c630ea?s=32&d=mm&r=g

Chenninny -

2013 年 10 月 18 日 上午 7:59

30个让人玩上瘾的HTML5游戏

a1c58e3845837893f03bce0bc1057157?s=32&d=mm&r=g

诸葛小觉 -

2013 年 10 月 17 日 下午 4:23

大多数被墙了 坑爹

{ 发表评论 }

姓 名 (必填)

邮 件 (必填)

网 站

http://blog.csdn.net/xiaoxiao108/article/details/8913616 html5 挺火,写个html5游戏吧,想起cocos2d 貌似各个平台都有,网上找了找,下载了个Cocos2d-html5引擎包。 貌似另一个开源引擎lufylegend.js也很好,下次用用lufylegend.js试试。 开发环境 chrome Cocos2d-html5 游戏地址:http://hehe108.sinaapp.com/cocos2d/ (adsw回车) 实现方法如下 1.创建好 LayerGradient的子类 (里面放坦克子弹) 2.重写 onEnter 方法添加一些基本按钮 跟一些初始坦克,子弹 3.通过schedule方法 控制 坦克 子弹的重画 4.根据键盘按键(ASWD)确定出坦克的方向,根据坦克的方向修改坦克的X,Y轴坐标,来实现坦克的移动 5.通过cc.rectIntersectsRect函数来进行碰撞检测,实现子弹打击坦克 具体代码 1.在项目里面添加方向 var Direction = { L:0, U:1, D:2, R:3, STOP:4 }; 2.添加子弹类的相关属性 SPEED:10, WIDTH:15, HEIGHT:15, x:null, y:null, dir:null, live:true, tankClient:null, //LayerGradient子类TankClient 的引用 good:null, 3.子弹初始化,重画 ctor:function (x,y,good,dir,tankClient) { cc.associateWithNative( this, cc.Sprite ); this.x=x; this.y=y; this.dir=dir; this.tankClient=tankClient; this.good=good; this.initWithFile(s_missile); this.setPosition( cc.p(this.x, this.y) ); this.tankClient.addChild(this); }, Draw:function(){ if(!this.live){ this.tankClient.removeChild(this, true); return; } this.setPosition( cc.p(this.x, this.y) ); this.Move(); }, 4.添加子弹打击坦克的方法 HitTank:function(t){ if (cc.rectIntersectsRect(this.GetRectangle(), t.GetRectangle()) && t.live && this.live && this.good != t.good){ t.live = false; this.live = false; return true; } return false; }, 5.添加坦克类相关属性 SPEED:5, WIDTH:58, HEIGHT:58, x:0, y:0, l:false, u:false, r:false, d:false, dir:Direction["STOP"], ptDir:Direction["D"], tankClient:null, good:null, step:0, live:true, 6.在tank类中 坦克初始化,重画 ctor:function (x,y,good,tankClient) { cc.associateWithNative( this, cc.Sprite ); this.x=x; this.y=y; this.tankClient=tankClient; this.good=good; if(good){ this.initWithFile(s_tank); }else{ this.initWithFile(s_enemy); } this.setPosition( cc.p(this.x, this.y) ); this.tankClient.addChild(this); }, Draw:function(){ if (!this.live){ if (!this.good){ this.tankClient.removeChild(this, true); } this.tankClient.removeChild(this, true); return; } this.setPosition( cc.p(this.x, this.y) ); switch (this.ptDir) { case Direction["D"]: this.setRotation(0); //旋转精灵控制 炮筒方向 break; case Direction["U"]: this.setRotation(180); break; case Direction["L"]: this.setRotation(270); break; case Direction["R"]: this.setRotation(90); break; } this.Move(); }, 7.tank发子弹的方法 Fire:function() { if(!this.live) return null; for(var i=0;i<this.tankClient.missiles.length;i++){ var m = this.tankClient.missiles[i]; if (m.live == false){ m.x=this.x; m.y=this.y; m.live=true; m.dir=this.ptDir; m.good=this.good; this.tankClient.addChild(m); return m; } } var missile=new Missile(this.x,this.y,this.good,this.ptDir,this.tankClient); this.tankClient.missiles.push(missile); return missile; }, 8.LayerGradient加入坦克 this.tanks = []; this.myTank = new Tank(60,20, true, this); for (var i = 0; i < 10; i++){ this.tanks.push(new Tank(50 + 70 * (i + 1), 420, false, this)); } 9.LayerGradient中调用子弹打击坦克的方法 for(var i=0;i<this.missiles.length;i++){ var m = this.missiles[i]; m.HitTank(this.myTank); m.HitTanks(this.tanks); m.Draw(); } 10.控制坦克移动射击的部分代码 onKeyUp:function(key) { this.myTank.KeyReleased(key); }, onKeyDown:function(key) { this.myTank.KeyPressed(key); } 11.用Ant和compiler合并压缩js后发布到sae 如果你发现有什么不合理的,需要改进的地方,请留言。或者可以通过 328452421@qq.com 联系我,非常感谢。 http://blog.csdn.net/xiaoxiao108/article/details/8913616
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值