Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { Component } from "$/common/ecs/mod.ts";
|
||||
|
||||
export class Camera extends Component {
|
||||
active = true;
|
||||
x: number;
|
||||
y: number;
|
||||
zoom: number;
|
||||
|
||||
constructor(x = 0, y = 0, zoom = 1) {
|
||||
super();
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.zoom = zoom;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user