手机版 | 登陆 | 注册 | 留言 | 设首页 | 加收藏
当前位置: 网站首页 > 精选电子书 > JavaScript教程 > 文章 当前位置: JavaScript > 文章

HTML5 Game Development with ImpactJS 用ImpactJS开发H5游戏

时间:2019-08-24    点击: 次    来源:网络    作者:佚名 - 小 + 大

HTML5 Game Development
with ImpactJS


impact

Table of Contents
Preface 1
Chapter 1: Firing Up Your First Impact Game 7
Installing a XAMPP server 7
Installing the game engine: ImpactJS 10
Choosing a script editor 12
Running the premade game 12
Debugging your game with the browser and ImpactJS 13
Debugging with the browser 15
Firebug – the Firefox debugger 15

Chrome debugger 16
Exercises in debugging with Chrome and Firebug 17
Debugging with ImpactJS 22
Which helpful tools are out there 25
Ejecta 25
AppMobi 25
PhoneGap 27
lawnchair 27
Scoreoid 28
Playtomic 29
one.com webhost 29
Summary 31
Chapter 2: Introducing ImpactJS 33
Building your own levels 34
Creating, loading, and saving levels in Weltmeister 34
Layers and the z axis 36
Adding and removing entities and objects 39
The collision layer 41
Connecting two different levels 42
Objects – playable and non-playable characters 46
The ImpactJS entity 46
Setting up player controls 51
Position, acceleration, and speed 55
The game's graphics: sprites and animation sheets 58
Spawning, health, and death 60
The camera view 63
The game canvas 63
Free to move camera 64
Automatically following camera 65
Adding music and sound effects 66
Playing background music 66
Introducing sound effects 67
Game physics with Box2D 68
Gravity and force 69
Collision impact and bounciness 70
Summary 71
Chapter 3: Let's Build a Role Playing Game 73
The RPG game setting 74
Building an RPG level 75
Adding a playable character 80
Introducing a defeatable opponent 84
Giving the player some weapons 87
Spawning a projectile 87
Causing harm with a projectile 91
Bringing your NPCs to life with artificial intelligence 93
The NPC's behavior 94
The NPC's decision making process 97
Pickup items to help out your player 101
Healing your player with a potion 101
Becoming rich with coins 102
Keeping score for player feedback 103
Transitioning from one area to another 106
NPCs and conversation 108
The speech balloon 108
Adding a talking non-playable character 112
The final battle 114
Summary 116

上一篇:HTML5 Mobile Game Development【专业HTM5 移动游戏开发】-PDF

下一篇:没有了

备案ICP编号  |   QQ:81962480  |  地址:上海金海路  |  电话:12345678910  |  
Copyright © 2019 MAPDF Studio 版权所有,授权www.mapdf.net使用 Powered by MAPDF.net