…We've now come to the point in developing our game where we…must begin building out the playable portion of the project.…This is our game state.…And within this state, we'll create all of the game objects and logic.…So inside of our Start menu, when somebody clicks on it,…we're going to invoke start game and call this.state.start.…And we want to start our games state.…So let's create that.…We'll create a new file called game.js.…And we'll bind that to Bunny Defender.…
So BunnyDefender.game.…And set that equal to a new function,…passing in our game object from the index.html file.…We now set BunnyDefender.Game.prototype equal…to an object which has two specific functions in it for now.…One is the phaser create function, and the second is the phaser update function.…Again the difference between these two is that the create function runs basically…once and this is a good point to set up anything that we need in this state.…The update function is something that runs constantly and here we can put logic and…different checks for things.…
- 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.