From f5ed70a78e8d180b824858064f4dcd2e71fef5bd Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Mon, 1 Aug 2022 03:30:58 -0400 Subject: [PATCH] Test static mob factory --- source/app.d | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/source/app.d b/source/app.d index 31ce385..f6e5bcb 100644 --- a/source/app.d +++ b/source/app.d @@ -3,12 +3,8 @@ import std.stdio; import raylib; import entity.mob.mob; import entity.mob.zombie; +import entity.mob.mob_factory; -void main() -{ - Mob[] debugBoi; - - debugBoi ~= new Zombie(); - - debugBoi[0].onSpawn(); +void main() { + MobFactory.spawnMob(new Zombie()); }