aboutsummaryrefslogtreecommitdiffstats
path: root/src/drawables/Selector.ts
blob: b72d8391154012cf6026fda0942954ab6c2fafca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { canvas, ctx } from "../consts";
import Drawable from "../Drawable";
import { IMGS } from "../Images";

export class Selector extends Drawable {
  sprite = IMGS.selector
  width = canvas.width
  height = 24
  draw() {
    if (this.sprite.src == null) this.sprite = IMGS.selector;
    ctx.drawImage(this.sprite, this.x, this.y)
  }
}