Got library and demos building on mingw32 and ubuntu again

This commit is contained in:
2013-01-22 07:49:01 -05:00
parent 1590271691
commit f1c2baf795
27 changed files with 220 additions and 13852 deletions

View File

@@ -1,16 +1,16 @@
/*
* This demo expands on the frictionball demo. It shows how to create objects dynamically, by
* This demo expands on the frictionball demo. It shows how to create objects dynamically, by
* creating an explosion every time the ball touches the ground
*/
#include <libgame/libgame.h>
#include <libsdlgame/libsdlgame.h>
#include <string>
int main(int argc, char *argv[])
{
Display2D display = Display2D();
Game &myGame = Game::NewSingleton();
Actor ball;
Actor ball;
Actor *exploder = NULL;
float gravity = 0.1;
//int exploderCount = 0;
@@ -72,7 +72,7 @@ int main(int argc, char *argv[])
exploder->setState(STATE_DYING);
exploder->setPosition(actorPos);
display.addActor(exploder, LAYER_SPRITE2);
actorPos.y = (480 - ball.nextFrame()->h);
ball.setPosition(actorPos);
}