import { Container , Sprite } from "pixi.js" ; export class RobotlegsView extends Container { private robotlegsLogo : Sprite ; constructor ( ) { super ( ) ; this . loadLogo ( ) ; this . move ( ) ; this . enable ( ) ; } private loadLogo ( ) { this . robotlegsLogo = Sprite . from ( "images/robotlegs.png" ) ; this . addChild ( this . robotlegsLogo ) ; } private move ( ) { this . robotlegsLogo . anchor . set ( 0.5 ) ; this . robotlegsLogo . x = 960 * 0.5 ; this . robotlegsLogo . y = 400 * 0.5 ; } private enable ( ) { this . interactive = true ; this . buttonMode = true ; } }