Don't use canvas I guess

This commit is contained in:
Lani Aung
2021-10-11 21:08:17 -06:00
parent 590c84b81f
commit d1d891881f
11 changed files with 84 additions and 111 deletions
+10 -3
View File
@@ -1,20 +1,27 @@
export interface IPlayset {
export class Playset {
name: string
height: number
width: number
cels: ICel[]
cels: Cel[]
enabledSets: boolean[]
}
export interface ICel {
export class Cel {
defaultImage: string
initialPositions: Coordinate[]
offset: Coordinate
sets: boolean[]
currentPositions: Coordinate[]
}
export class Coordinate {
x: number
y: number
constructor(x: number = 0, y: number = 0) {
this.x = x
this.y = y
}
}