diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-12 13:49:16 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-12 13:49:16 -0600 |
commit | c6e9baa0009f7cce0f6ff156a3957ef04a8cb684 (patch) | |
tree | 9766a4a33ad1c86aa71a5f92daf8917f3e5f5eed /engine/components/Control.ts | |
parent | b67ffb57c1bf6e9628339a3f43c71ccebdb46136 (diff) | |
download | jumpstorm-c6e9baa0009f7cce0f6ff156a3957ef04a8cb684.tar.gz jumpstorm-c6e9baa0009f7cce0f6ff156a3957ef04a8cb684.zip |
the great engine refactor
Diffstat (limited to 'engine/components/Control.ts')
-rw-r--r-- | engine/components/Control.ts | 8 |
1 files changed, 6 insertions, 2 deletions
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; } } |