admin管理员组文章数量:1794759
《游戏学习》
游戏介绍
这是一款由百度JS小组提供的HTML5版切水果游戏,这款基于HTML5实现的网页版切水果游戏虽然和原版的切水果游戏相比仍有美中不足之处,但也算有声有色,画面效果也十分炫目华丽。
游戏截图 主界面 游戏界面 结束界面 游戏目录除了images(图片素材)文件夹和sound(音效素材)文件夹外,主要的代码文件就是all.js和index.html。
代码展示 index.html代码 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="description" content="A simple HTML5 Template"> <meta name="author" content="tarzan"> <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, maximum-scale=1.0"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <link rel="shortcut icon" href="/favicon.ico"> <link rel="stylesheet" href="images/index.css"> <title>水果忍者HTML5网页版在线游戏</title> <!--[if lt IE 9]><script>document.createElement("canvas");</script><![endif]--> </head> <body> <div id="extra"></div> <em> -- 水果忍者 -- </em> <canvas id="view" width="640" height="480"></canvas> <div id="desc"> <div style="text-align:center;clear:both;"> </div> <div id="browser"></div> </div> <script src="scripts/all.js"></script> </body> </html>注:这行代码可以控制游戏的屏幕分辨率(目前适配平板)
<canvas id="view" width="640" height="480"></canvas> 代码下载水果忍者HTML5网页版在线游戏|源码-游戏开发文档类资源-CSDN下载水果忍者HTML5网页版在线游戏|源码更多下载资源、学习资料请访问CSDN下载频道.download.csdn/download/weixin_40986713/74638504
本文标签: 游戏
版权声明:本文标题:《游戏学习》 内容由林淑君副主任自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1686813797a106168.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论