Add circle render
This commit is contained in:
@@ -102,7 +102,7 @@ void addStuff(SDLPP::Scene &scene, std::shared_ptr<SDLPP::Renderer> &r) {
|
||||
x->addCollision(SDLPP::Rect(0.3,0.7,0.05,0.31));
|
||||
x->addCollision(SDLPP::Rect(0.65,0.7,0.05,0.31));
|
||||
x->addCollision(SDLPP::Rect(0.2,0.3,0.6,0.45));
|
||||
x->addCollision(SDLPP::Rect(0.35,0,0.3,0.3));
|
||||
x->addCollision(SDLPP::Circle(0.5,0.15,0.3));
|
||||
x->setTexture("5.png");
|
||||
x->setId(PLAYER_ID);
|
||||
x->setColiderColor("00FF00");
|
||||
@@ -273,7 +273,7 @@ int main() {
|
||||
SDL_setFramerate(&gFPS, 60);
|
||||
std::thread inputThread(doInput, main_scene);
|
||||
while( !quit ) {
|
||||
// SDL_framerateDelay(&gFPS);
|
||||
SDL_framerateDelay(&gFPS);
|
||||
main_scene->renderScene();
|
||||
main_scene->presentScene();
|
||||
frames++;
|
||||
|
||||
Reference in New Issue
Block a user