aboutsummaryrefslogtreecommitdiffstats
path: root/src/drawables/AnimStart.ts
blob: fff48e8b36f16a1cf6d4e1a4d725415785364213 (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 = 1;
  draw(): boolean {
    try {
      ctx.drawImage(IMGS.start[this.i], 0, TOPBAR_HEIGHT);
    } catch (error) {
      return false
    }
    this.i++;
    return true
  }
}