blob: af4df05bc48da0ab6e09000409852089999ca794 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import Drawable, { Rectangle } from "../Drawable";
import { IMGS } from "../Images";
export default class Powerup extends Drawable {
sprite = IMGS.powerup
width = IMGS.powerup.width
height = IMGS.powerup.height
squares: Rectangle[] = [new Rectangle(this)]
move() {
this.y += 1
return this.isOutsideMap()
}
}
|