From 06c34c881eba7ae7e0d9f13bf6336cc05981447b Mon Sep 17 00:00:00 2001 From: Amaury Date: Tue, 14 Apr 2020 11:10:03 +0200 Subject: [PATCH] ajouts mobs --- DungeonAndDeamonScript/DungeonAndDemaonScript/GestionJeu.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionJeu.cpp b/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionJeu.cpp index e510f0e..d2135bc 100644 --- a/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionJeu.cpp +++ b/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionJeu.cpp @@ -57,6 +57,10 @@ void GestionJeu::create_scene() add_child(gPlayer); add_child(gTerrain); gMobs->AjoutMobC2C(10, 20, 5, 0, 1, 25); + for (MobsIA m : gMobs->mobs) + { + add_child(&m); + } }