Skip to content

Instantly share code, notes, and snippets.

@Srushtika
Last active May 28, 2020 13:41
Code snippet 3 - For multiplayer space invaders article
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