Javascript games programming using Phaser in Dreamweaver lesson 5 - Collision Detection

preview_player
Показать описание
Source code for this lesson:

In this lesson we enable the arcade physics system and check for collision detection between the player and the alien spaceship, so when they touch the player disappears. We also fix the sprite rotation so that when we move the player diagonally, the sprite rotates to face the same direction.
Рекомендации по теме
welcome to shbcf.ru