Ditch keyboard mover, shooter, interval shooter. All of that is game code not engine. Added key handler and scheduler. Can also now duplicate components on an element (key readers for example)

This commit is contained in:
stevenhowes
2022-01-04 22:00:31 +00:00
parent 45c553150c
commit bc5cd16447
7 changed files with 98 additions and 223 deletions
-4
View File
@@ -43,10 +43,6 @@ func (dr *damageReceiver) onUpdate() error {
lm := dr.container.getComponent(&moverLinear{}).(*moverLinear)
lm.speed = 0
}
if dr.container.checkComponentIsPresent(&moverKeyboard{}) {
km := dr.container.getComponent(&moverKeyboard{}).(*moverKeyboard)
km.speed = 0
}
}
// If we've finished our destroy animation then we're not active and can be removed