All Downloads are FREE. Search and download functionalities are using the official Maven repository.

view.entity-module.ContainerBasedEntity.js Maven / Gradle / Ivy

Go to download

Entity Manager module for the CodinGame engine toolkit. Simplify the management of shapes and drawings.

There is a newer version: 4.5.0
Show newest version
import { Entity } from './Entity.js'

/* global PIXI */

export class ContainerBasedEntity extends Entity {
  constructor () {
    super()
    Object.assign(this.defaultState, {
      children: []
    })
  }

  initDisplay () {
    super.initDisplay()
    this.graphics = new PIXI.Container()
  }

  updateDisplay (state, changed, globalData) {
    super.updateDisplay(state, changed, globalData)
  }

  get childrenContainer () {
    return this.graphics
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy