File size: 255 Bytes
c679a93
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import Phaser from 'phaser'

export default class Player extends Phaser.GameObjects.Sprite {
  constructor(scene, channelId, x, y) {
    super(scene, x, y, 'player')
    scene.add.existing(this)

    this.channelId = channelId

    this.setFrame(4)
  }
}