You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
338 B
18 lines
338 B
import { Actor, Color, vec } from 'excalibur'
|
|
import { Resources } from '../resources'
|
|
|
|
export class Player extends Actor {
|
|
constructor() {
|
|
super({
|
|
pos: vec(150, 150),
|
|
width: 25,
|
|
height: 25,
|
|
color: new Color(255, 100, 100)
|
|
})
|
|
}
|
|
|
|
onInitialize() {
|
|
this.graphics.use(Resources.Cat.toSprite())
|
|
}
|
|
}
|