售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Learning Cocos2d-x Game Development
Table of Contents
Learning Cocos2d-x Game Development
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started
Downloading and installing Visual Studio
Downloading and installing the Windows Phone SDK
Downloading and installing Python
Downloading Cocos2d-x
Creating a new project
Coordinate system
Basic classes of Cocos2d-x
Project breakup
Running the project on multiple platforms
Running the project on Windows (desktop mode)
Running the project on Windows RT (tile mode)
Running the project on the iPhone simulator using Xcode
Running the project on an Android simulator using Eclipse
Summary
2. Displaying the Hero and Controls
First things first
Displaying the background image
Character movement
Enabling the touch function
Enabling multitouch
Movement with touches
Movement with the accelerometer
Custom controls
Summary
3. Enemies and Controls
Creating the enemy class
Adding the enemy movement
Adding the gameplay layer
Creating the projectile class
Adding hero controls
Summary
4. Collision Detection and Scoring
Theory of collision detection
Circular collision
Bounding box collision
Pixel perfect collision
Other collision detection methods
Coding collision detection
Keeping track of the score and the game over condition
Storing high scores
Summary
5. HUD, Parallax Background, and the Pause Button
Texts and fonts
Literra
Bitmap font generator
GlyphDesigner
Creating the HUD layer and displaying as well as updating scores
Creating the pause button and showing the pause screen
Implementing pause and resuming the game
Adding the scrolling layer class
Creating the parallax scrolling layer
Summary
6. Animations
Animation basics
Spritesheet animation
Skeletal animation
TexturePacker
The display section
The Geometry section
The Layout section
Advanced features
Creating a spritesheet for the player
Coding the player animation
Creating and coding enemy animation
Creating the skeletal animation
Coding the player walk cycle
Summary
7. Particle Systems
What is a particle system?
Cocos2d-x's inbuilt particle system
Adding the gun muzzle particle system
Particle designing
Particle Designer
Emitter Configuration
Particle Configuration
Color Settings
Texture Settings
Particle2dx
Motion
Color&Shape
Template
InOut
Background
Adding an explosion particle system
Adding particles for jetpack when a player moves upwards
Creating your own particle system
Summary
8. Adding Main and Option Menu Scenes
Creating the main menu scene
Loading the menu scene at start of the app
Creating the Options scene
Changing the name of the app
Summary
9. Adding Sounds and Effects
Audio in Cocos2d-x
Adding looped background music
Adding sound effects
Adding the mute button
Summary
10. Publishing to the Windows Phone Store
A look at the Windows Phone Store
Creating the store account
Preparing/creating the app
Creating the app and setting pricing
Uploading the XAP file, icons, and screenshots for review
Summary
11. Porting, References, and Final Remarks
Running the game on the Windows desktop
Running the game on the Android simulator using the Eclipse IDE
Running on the BlackBerry simulator using the Momentics IDE
Running on an iOS simulator using Xcode
Additional learning resources
Cocos2d-x
Cocos2d-Swift
gamedev.stackexchange.com/stackoverflow
Final remarks and a thank you note
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜