Last active
May 28, 2020 13:41
-
-
Save Srushtika/528677c1af6885df35b87c443e138cc8 to your computer and use it in GitHub Desktop.
Code snippet 3 - For multiplayer space invaders article
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GameScene extends Phaser.Scene { | |
constructor() { | |
super("gameScene"); | |
} | |
//load assets | |
preload(){ | |
} | |
//init variables, define animations & sounds, and display assets | |
create(){ | |
} | |
//update the attributes of various game objects per game logic | |
update(){ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment