售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
GameMaker Programming By Example
Table of Contents
GameMaker Programming By Example
Credits
About the Authors
About the Reviewer
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
Downloading the color images of this book
Errata
Piracy
Questions
1. Introduction to GameMaker: Studio
Choosing your version
The GameMaker: Studio interface
GameMaker: Studio documentation
An example project
Naming convention – resource prefixes
Drawing the sprite
Creating an object
Coordinate planes in GameMaker
Creating a room
Testing your game
Summary
Review questions
Quick drills
2. Your First Game – Escape the Dungeon
Creating your Escape the Dungeon game
The playable character
The sprite
The object
Walls
Enemies
Making your enemies move
Damaging the player
Making the player and enemies shoot
Making the player shoot
Making the enemies shoot
More resources
Backgrounds
Sounds
Keys and locks and advancing to the next room
Summary
Review questions
Quick drills
3. Introducing the GameMaker Language
Remaking Escape the Dungeon in the GML
Remaking the sprites
Remaking the player object
Understanding the four events
Starting to code your player object
Making the player move
Changing the subimage
Collisions
Coding the enemies
Random seeds
Health and lives system
Displaying health and lives
Invincibility
Shooting
Sounds
Keys and locks
Scripts
Summary
Review questions
Quick drills
4. Fun with Infinity and Gravity – An Endless Platformer
Creating an endless platformer
Bouncing and movement
Death and enemies
Random spawning
2D arrays
Menus and textboxes
Menus
Textboxes
Summary
Review questions
Quick drills
5. Saving and Loading Data
Putting in a scoring system
Saving and loading a highscore
INI file encryption
Customizable controls
Saving control configurations
Summary
Review questions
Quick drills
6. A Multiplayer Sidescrolling Platformer
Sprite animation
Spritesheet importing
Programming the movement
Making your scrolling platformer scroll
Client/server multiplayer networking
Networking terminology
Printing the server's IP address and port on a screen
Creating the actual server
Our Asynchronous Networking event
Connection
Disconnection
Handling data
Our data handling script
The client in your client/server system
Integrating Xbox gamepad support
Legacy gamepad support
Modern gamepad support
Summary
Review questions
Quick drills
7. Programming a Scrolling Shooter
Creating the main ship
Creating the enemies
Parenting in objects
Random enemy spawning
Programming a Boss AI
Particles
Summary
Review questions
Quick drills
8. Introducing the GameMaker: Studio Physics Engine
A physics game
The physics engine in a regular game
Summary
Review questions
Quick drills
9. Wrapping Up
Debugging
Compile-time errors
Runtime errors
The GameMaker: Studio debugger
Debugging functions
Helpful information on GameMaker
Quirks of the GameMaker Language
Unexplained resources
Export modules
Summary
Review questions
Quick drills
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜