13 lines
212 B
TypeScript
13 lines
212 B
TypeScript
import { Component } from "$/common/ecs/component.ts";
|
|
|
|
export class Velocity extends Component {
|
|
vx: number;
|
|
vy: number;
|
|
|
|
constructor(vx: number, vy: number) {
|
|
super();
|
|
this.vx = vx;
|
|
this.vy = vy;
|
|
}
|
|
}
|