add move speed
This commit is contained in:
@@ -12,10 +12,12 @@ export default class Game {
|
||||
|
||||
get eventEmitter() { return this.#eventEmitter }
|
||||
get system() { return this.#system }
|
||||
get tickBudget() { return this.#tickBudget }
|
||||
|
||||
spawn_entity(entity) {
|
||||
this.entities.push(entity)
|
||||
this.#system.insert(entity.collider)
|
||||
entity.game = this
|
||||
}
|
||||
|
||||
async start() {
|
||||
|
||||
Reference in New Issue
Block a user