From c6e9baa0009f7cce0f6ff156a3957ef04a8cb684 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sat, 12 Aug 2023 13:49:16 -0600 Subject: the great engine refactor --- engine/components/Control.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'engine/components/Control.ts') diff --git a/engine/components/Control.ts b/engine/components/Control.ts index 094ef1c..1e782ee 100644 --- a/engine/components/Control.ts +++ b/engine/components/Control.ts @@ -1,7 +1,11 @@ -import { Component, ComponentNames } from "."; +import { Component, ComponentNames, Velocity } from "."; export class Control extends Component { - constructor() { + public controlVelocity: Velocity; + + constructor(controlVelocity: Velocity = new Velocity()) { super(ComponentNames.Control); + + this.controlVelocity = controlVelocity; } } -- cgit v1.2.3-70-g09d2