blob: f021f77f32339e8bf61dc9bf7cbfabdf4761ae60 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { canvas, ctx } from "../consts";
import Drawable from "../Drawable";
import { IMGS } from "../Images";
export class TopBar extends Drawable {
sprite = IMGS.topbar;
width = canvas.width
height = 24
constructor() {
super(0, 0)
}
draw() {
if (this.sprite.src == null) this.sprite = IMGS.topbar;
ctx.drawImage(this.sprite, 0, 0)
}
}
|