mirror of
https://github.com/stevenhowes/GoRetro.git
synced 2026-05-26 15:53:31 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user