…Now that we've created our game world,…we need to populate it with friendly creatures.…We'll use the phase and group mechanism to generate and help manage these entities.…With entities created as part of a group,…we can access them both individually and upon a group level.…So the first thing we'll do is go into our preloader,…because we need to load in one of our spreadsheets.…So inside the preload function, we'll say this.load.atlasXML.…And here we need to give this an identifier that we can invoke later on,…and we'll simply call it bunny, since that's what it represents.…
And then two additional things we need to place in here is a reference to the actual…spreadsheet PNG file, followed by a reference to the spritesheet data file.…So to do that, we put images/spritesheets/bunny.png.…And then for the data file, it's in the same location.…Except it's an XML file instead of a PNG file.…So we do images/spritesheets/bunny.xml.…
All right.…Popping back over to our game state.…We're going to add a couple of variables up here.…
- Downloading the Phaser framework
- Creating your first Phaser project
- Building the preloader and menu states
- Creating and spawning entities
- Working with particles and emitters
- Detecting and handling collisions
- Detecting "game over"
- Adding sound effects and text
- Preparing for mobile deployment
Skill Level Beginner
1. Setting Up Phaser
2. Configuring Loaders and States
3. Populating the World
5. Wrapping Things Up
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.