blob: 1bd62d13b6c811869b71bd644c0ebbb95770b506 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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)
}
}
|