jumpstorm/engine/components/Control.ts

12 lines
282 B
TypeScript
Raw Normal View History

2023-08-12 15:49:16 -04:00
import { Component, ComponentNames, Velocity } from ".";
2023-07-19 23:38:24 -04:00
export class Control extends Component {
2023-08-12 15:49:16 -04:00
public controlVelocity: Velocity;
constructor(controlVelocity: Velocity = new Velocity()) {
2023-07-19 23:38:24 -04:00
super(ComponentNames.Control);
2023-08-12 15:49:16 -04:00
this.controlVelocity = controlVelocity;
2023-07-19 23:38:24 -04:00
}
}