diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2015-12-10 08:13:15 -0500 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2015-12-10 08:13:15 -0500 |
commit | b28023525c6dcf2360c8d03b405d46af4e0e1c6d (patch) | |
tree | ec35eed3f48d089da8ee4ec5ebb14c9db328ce6c /src/world.cpp | |
parent | ce169efec21d44b6c7b3133280d9088ba1c108a5 (diff) |
Doing shit
Diffstat (limited to 'src/world.cpp')
-rw-r--r-- | src/world.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/world.cpp b/src/world.cpp index 9674b64..fd20904 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -600,7 +600,8 @@ LOOP2: o->draw(); o->loc.y-=(yoff-DRAW_Y_OFFSET); } - } + }for(auto &o : particles){o->draw();} + /* * If we're drawing the closest/last world, handle and draw the player. @@ -876,6 +877,10 @@ void World::addObject(ITEM_ID i, bool q, const char *p, float x, float y){ entity.push_back(object.back()); } +void World::addParticle(float x, float y, float w, float h, Color color){ + particles.push_back(new Particles(x,y,w,h,color)); +} + /*void World::removeObject(Object i){ object.delete[](i); }*/ |