HTML5游戏开发技术——Egret Engine
- ISBN:9787517059349
- 装帧:一般胶版纸
- 册数:暂无
- 重量:暂无
- 开本:24cm
- 页数:208页
- 出版时间:2017-10-01
- 条形码:9787517059349 ; 978-7-5170-5934-9
本书特色
本书以案例教学的方式,讲解了如何使用白鹭引擎(Egret Engine)及配套工具开发HTML5游戏。案例由简至繁,选取了当前应用领域常见的摇奖游戏、卡牌游戏、平台游戏、塔防游戏以及在线聊天,讲解了白鹭引擎支持图形图 像、多媒体、交互与事件、粒子特效、EUI、物理引擎、人工智能及网络通信方面的功能,讨论了程序开发时的调试、面向对象设计、设计模式及应用程序框架等应用方法。本书*后介绍了实际项目开发中的一些应用技巧。本书适合从事H TML5开发的初级技术人员,也可供HTML5开发培训机构参考。
内容简介
本书以案例教学的方式, 讲解了如何使用白鹭引擎 (Egret Engine) 及配套工具开发HTML5游戏。案例由简至繁, 选取了当前应用领域常见的摇奖游戏、卡牌游戏、平台游戏、塔防游戏以及在线聊天, 讲解了白鹭引擎支持图形图像、多媒体、交互与事件、粒子特效、EUI、物理引擎、人工智能及网络通信方面的功能, 讨论了程序开发时的调试、面向对象设计、设计模式及应用程序框架等应用方法。本书*后介绍了实际项目开发中的一些应用技巧。
目录
一个HTML5应用························································· 7 2.1 开发前的准备工作····································· 7 2.1.1 软件下载················································ 7 2.1.2 安装配置················································ 7 2.1.3 软件界面················································ 9 2.2 开发“Hello world”应用························ 11 2.2.1 新建项目·············································· 12 2.2.2 运行项目·············································· 14 2.2.3 编辑项目内容······································ 15 2.3 把应用发布到网络上······························· 20 2.4 TypeScript基础·········································· 21 2.4.1 TypeScript简介···································· 21 2.4.2 对象的属性和方法······························ 22 2.4.3 对象的事件及运行流程······················ 23 2.4.4 编程基础·············································· 24 第3章互动与特效—摇奖游戏制作···················· 47 3.1 使用多媒体元素······································· 47 3.1.1 使用图片·············································· 49 3.1.2 使用资源管理器实现预加载·············· 52 3.1.3 显示图像·············································· 54 3.2 特效制作与应用······································· 58 3.2.1 粒子特效介绍······································ 58 3.2.2 Egret Feather使用······························ 59 3.2.3 花瓣飘落及元宝掉落特效·················· 60 3.3 事件机制··················································· 65 3.3.1 什么是事件(Event)························· 65 3.3.2 使用事件监听器(Event Listener)··· 66 第4章多样的交互界面—卡牌游戏制作············ 69 4.1 所见即所得的界面编辑··························· 69 4.1.1 准备设计资源······································ 72 4.1.2 EXML可视化编辑器···························· 74 4.1.3 皮肤分离机制······································ 79 4.2 交互界面开发··········································· 80 4.2.1 主要界面开发······································ 80 4.2.2 界面逻辑实现······································ 85 4.3 EUI详细介绍············································· 96 4.3.1 EXML····················································· 96 4.3.2 控件和容器·········································· 99 4.3.3 自定义组件········································ 121 第5章模拟物理—动作类平台游戏制作·········· 123 5.1 游戏设计思路及任务分解····················· 123 5.2 素材准备················································· 124 5.3 设计游戏界面········································· 131 5.3.1 游戏加载界面···································· 131 5.3.2 游戏开始界面······································ 133 5.4 场景逻辑················································· 133 5.4.1 载入界面············································ 133 5.4.2 开始界面············································ 135 5.5 使用p2物理引擎··································· 137 5.5.1 导入第三方库···································· 138 5.5.2 角色制作············································ 138 5.5.3 制作游戏场景···································· 143 5.5.4 碰撞检测与开发································ 144 5.6 运行时错误调试····································· 148 5.6.1 Chrome调试······································ 148 5.6.2 “调试”视图···································· 150 第6章人工智能—经典塔防游戏制作·············· 156 6.1 塔防游戏设计及任务分解····················· 156 6.1.1 塔防游戏元素分析···························· 156 6.1.2 面向对象编程···································· 158 6.1.3 MVC设计模式··································· 165 6.2 塔防游戏开发········································· 167 6.2.1 地图制作方法···································· 167 6.2.2 炮塔与子弹制作································ 171 6.2.3 游戏图形渲染机制分析···················· 175 6.3 让炮塔更加智能····································· 176 6.3.1 人工智能的应用································ 176 6.3.2 智能炮塔设计开发···························· 178 第7章建立通信—网络多人聊天······················ 180 7.1 应用设计及分析····································· 180 7.1.1 网络资源设计···································· 180 7.1.2 多人聊天逻辑设计···························· 181 7.1.3 WebSocket原理及配置···················· 182 7.1.4 开放平台原理及使用························ 184 7.2 游戏聊天室开发····································· 185 7.3 通过微信分享········································· 190 7.3.1 配置JS-SDK第三方库······················· 190 7.3.2 微信JS-SDK的使用··························· 191 7.3.3 微信分享接口使用···························· 193 第8章高级技巧······················································ 195 8.1 实际开发中的常见问题························· 195 8.1.1 屏幕适配与自动布局························ 195 8.1.2 如何使用第三方库···························· 198 8.2 跨平台开发与发布································· 202 8.2.1 iOS和Android APP生成方法··········· 202 8.2.2 微信小程序生成方法························ 204 8.3 接下来做什么········································· 208
作者简介
辛子俊,现北京智慧谷文化传媒有限公司总经理,中国传媒大学外聘教师,致力于新媒体教育及游戏人才培养工作,曾作为Adobe开发者社区版主,负责引入国外相关技术类文章及其翻译工作,主持过的项目包括《长征课堂VR》《情商加油站》《职场演兵》《脑健操》《养生厨房》《漆艺·再造物》《雕栏砌筑》等。 林雪莹,中国传媒大学计算机应用专业硕士研究生,专攻游戏设计,曾任腾讯游戏和乐元素实习策划,作品《昔:Yesterday》获“中国优秀游戏制作人大赛”非专业组*佳游戏创意奖、“中国大学生原创动漫大赛”一等奖、“中国学院奖”三等奖,获苹果App Store在全球市场推荐。
-
有限与无限的游戏:一个哲学家眼中的竞技世界
¥37.4¥68.0 -
全图解零基础word excel ppt 应用教程
¥12.0¥48.0 -
机器学习
¥59.4¥108.0 -
深度学习的数学
¥43.5¥69.0 -
智能硬件项目教程:基于ARDUINO(第2版)
¥37.7¥65.0 -
硅谷之火-人与计算机的未来
¥14.3¥39.8 -
元启发式算法与背包问题研究
¥38.2¥49.0 -
AI虚拟数字人:商业模式+形象创建+视频直播+案例应用
¥62.9¥89.8 -
UNIX环境高级编程(第3版)
¥164.9¥229.0 -
剪映AI
¥52.8¥88.0 -
深度学习高手笔记 卷2:经典应用
¥90.9¥129.8 -
纹样之美:中国传统经典纹样速查手册
¥77.4¥109.0 -
UG NX 12.0数控编程
¥24.8¥45.0 -
MATLAB计算机视觉与深度学习实战(第2版)
¥90.9¥128.0 -
界面交互设计理论研究
¥30.8¥56.0 -
UN NX 12.0多轴数控编程案例教程
¥25.8¥38.0 -
微机组装与系统维护技术教程(第二版)
¥37.8¥43.0 -
明解C语言:实践篇
¥62.9¥89.8 -
Linux服务器架设实战(Linux典藏大系)
¥84.5¥119.0 -
PREMIERE PRO 2023全面精通:视频剪辑+颜色调整+转场特效+字幕制作+案例实战
¥69.3¥99.0