]> code.bitgloo.com Git - clyne/gamedev.git/commitdiff
added dropping from platforms
authorClyne Sullivan <tullivan99@gmail.com>
Mon, 28 Sep 2015 12:15:18 +0000 (08:15 -0400)
committerClyne Sullivan <tullivan99@gmail.com>
Mon, 28 Sep 2015 12:15:18 +0000 (08:15 -0400)
1  2 
src/entities.cpp
src/main.cpp

index 140223d91eeeab4caa3361d0b2510cb35255c022,d31f4278f7b6da1b0cdd1304172ce9e10b720e60..ab19c6f028e510955caf73c2609f545ad6bca6e6
@@@ -83,7 -83,10 +83,10 @@@ unsigned int Structures::spawn(int t, f
                        std::cout<<"NPC:"<<npc.size()<<std::endl;
                        std::cout<<"Entity:"<<entity.size()<<std::endl;
                        entity[entity.size()] = &npc[npc.size()-1];
 -
 +                      entity[entity.size()]->spawn(loc.x + (float)(i - 5) / 8,100);
+                       entity[entity.size()-1]->spawn(loc.x + (float)(i - 5) / 8,100);
+                       std::cout<<"Entity Type["<<entity.size()<<"]: "<<entity[entity.size()]->type<<std::endl;
+                       std::cout<<"Entity Life["<<entity.size()<<"]: "<<entity[entity.size()]->alive<<std::endl;
                }
                return entity.size();
        }
diff --cc src/main.cpp
Simple merge