X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=blobdiff_plain;f=src%2FentityCreator.cpp;h=1b4b6f7f8946f4f63e4513905d5244163a0605cd;hp=2df44578e555821c7d2bdbcbb9d621ce1d80e4a0;hb=4a76d2e2cf7874e54a4e6688ebf1fa8ca59ce8c1;hpb=002fd13cf3966163e9a7b48ae43f4812661e1cc1 diff --git a/src/entityCreator.cpp b/src/entityCreator.cpp index 2df4457..1b4b6f7 100644 --- a/src/entityCreator.cpp +++ b/src/entityCreator.cpp @@ -23,6 +23,7 @@ #include "input/inputManager.h" #include "Entities/Ball.h" +#include "Entities/Polygon.h" #include "graphics/colors.h" @@ -78,6 +79,14 @@ void creator::init() { addBall(Vector2(200+i*2, 200+i*2), 10, cCyan); } + + // add a polygon into the mix (currently not cleaned up) + vector points; + points.push_back(Vector2(50,50)); + points.push_back(Vector2(50,100)); + points.push_back(Vector2(100,50)); + + manager::add(new Polygon(points)); } void creator::clean() {