blob: b855b25f0c885260af16261fe7692c8e26cc220a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { ctx, TOPBAR_HEIGHT } from "../consts";
import Drawable from "../Drawable";
import { IMGS } from "../Images";
export default class AnimStart extends Drawable {
i = 0;
draw(): boolean {
try {
ctx.drawImage(IMGS.start[this.i], 0, TOPBAR_HEIGHT);
} catch (error) {
return false
}
this.i++;
return true
}
}
|