Join Joseph Labrecque for an in-depth discussion in this video Group-versus-group collisions, part of HTML5 Game Development with Phaser.
…Unfortunately we do have to react to the inevitable collision between our…bunny entities and the onslaught of space rocks.…We will once again test collisions against the two entity groups,…using Phasers Update method.…So inside of GameJs, let's scroll back down to our Update method.…And we can actually copy and paste, this Overlap method right here, and…simply change some parameters, so that we target the bunnies instead of the burst.…So here we have this Physics Arcade overlap and…we still want to test against Space Rock group for the first parameter.…
But for the second, we actually want to test against the Bunny group.…So this.bunnygroup.…Instead of burstCollision,…we're going to create a new function here called bunnyCollision.…So we'll put that in here.…This parameter stays null.…And we once again pass through the current context which is our Space Rock group and…our Bunny group and the objects that have been particularly overlapped within those…groups so that we can react to them.…So let's create a new Bunny Collision function right above Burst Collision.…
- 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.