Ver código fonte

Linux Makefile for examples and example cleanup

Ivan Safrin 14 anos atrás
pai
commit
4263ee432b
32 arquivos alterados com 183 adições e 98 exclusões
  1. 100 7
      Examples/C++/Build/Linux/Makefile
  2. 2 2
      Examples/C++/Contents/2DAudio/HelloPolycodeApp.cpp
  3. 2 2
      Examples/C++/Contents/2DParticles/HelloPolycodeApp.cpp
  4. 2 2
      Examples/C++/Contents/2DPhysics_CollisionOnly/HelloPolycodeApp.cpp
  5. 3 3
      Examples/C++/Contents/2DPhysics_Contacts/HelloPolycodeApp.cpp
  6. 2 2
      Examples/C++/Contents/2DPhysics_PointCollision/HelloPolycodeApp.cpp
  7. 1 1
      Examples/C++/Contents/2DShapes/HelloPolycodeApp.cpp
  8. 2 2
      Examples/C++/Contents/2DTransforms/HelloPolycodeApp.cpp
  9. 2 2
      Examples/C++/Contents/3DAudio/HelloPolycodeApp.cpp
  10. 3 3
      Examples/C++/Contents/3DBasics/HelloPolycodeApp.cpp
  11. 1 3
      Examples/C++/Contents/3DMeshParticles/HelloPolycodeApp.cpp
  12. 1 3
      Examples/C++/Contents/3DParticles/HelloPolycodeApp.cpp
  13. 3 3
      Examples/C++/Contents/3DPhysics_Basic/HelloPolycodeApp.cpp
  14. 5 5
      Examples/C++/Contents/3DPhysics_Character/HelloPolycodeApp.cpp
  15. 4 4
      Examples/C++/Contents/3DPhysics_CollisionOnly/HelloPolycodeApp.cpp
  16. 3 3
      Examples/C++/Contents/3DPhysics_Contacts/HelloPolycodeApp.cpp
  17. 5 5
      Examples/C++/Contents/3DPhysics_RayTest/HelloPolycodeApp.cpp
  18. 12 12
      Examples/C++/Contents/3DPhysics_Vehicle/HelloPolycodeApp.cpp
  19. 2 3
      Examples/C++/Contents/AdvancedLighting/HelloPolycodeApp.cpp
  20. 2 2
      Examples/C++/Contents/BasicImage/HelloPolycodeApp.cpp
  21. 1 3
      Examples/C++/Contents/BasicLighting/HelloPolycodeApp.cpp
  22. 1 1
      Examples/C++/Contents/BasicText/HelloPolycodeApp.cpp
  23. 3 3
      Examples/C++/Contents/EventHandling/HelloPolycodeApp.cpp
  24. 2 2
      Examples/C++/Contents/KeyboardInput/HelloPolycodeApp.cpp
  25. 2 2
      Examples/C++/Contents/MouseInput/HelloPolycodeApp.cpp
  26. 3 4
      Examples/C++/Contents/Networking_Client/HelloPolycodeApp.cpp
  27. 1 1
      Examples/C++/Contents/Networking_Server/HelloPolycodeApp.cpp
  28. 2 2
      Examples/C++/Contents/PlayingSounds/HelloPolycodeApp.cpp
  29. 1 1
      Examples/C++/Contents/ScreenEntities/HelloPolycodeApp.cpp
  30. 2 2
      Examples/C++/Contents/ScreenSprites/HelloPolycodeApp.cpp
  31. 5 5
      Examples/C++/Contents/SkeletalAnimation/HelloPolycodeApp.cpp
  32. 3 3
      Examples/C++/Contents/UpdateLoop/HelloPolycodeApp.cpp

+ 100 - 7
Examples/C++/Build/Linux/Makefile

@@ -1,14 +1,107 @@
 CC=g++
-CFLAGS=-I../../Core/Dependencies/include -I../../Core/Dependencies/include/AL -I../../Core/include
-LDFLAGS=../../Core/lib/libPolycore.a ../../Core/Dependencies/lib/libfreetype.a ../../Core/Dependencies/lib/liblibogg.a ../../Core/Dependencies/lib/liblibvorbis.a ../../Core/Dependencies/lib/liblibvorbisfile.a ../../Core/Dependencies/lib/libopenal.a ../../Core/Dependencies/lib/libphysfs.a ../../Core/Dependencies/lib/libpng15.a ../../Core/Dependencies/lib/libz.a -lGL -lGLU -lSDL
+CFLAGS=-I../../Core/Dependencies/include -I../../Core/Dependencies/include/AL -I../../Core/include -I../../Modules/include -I../../Modules/Dependencies/include -I../../Modules/Dependencies/include/bullet
+LDFLAGS=../../Core/lib/libPolycore.a ../../Core/Dependencies/lib/libfreetype.a ../../Core/Dependencies/lib/liblibogg.a ../../Core/Dependencies/lib/liblibvorbis.a ../../Core/Dependencies/lib/liblibvorbisfile.a ../../Core/Dependencies/lib/libopenal.a ../../Core/Dependencies/lib/libphysfs.a ../../Core/Dependencies/lib/libpng15.a ../../Core/Dependencies/lib/libz.a -lGL -lGLU -lSDL ../../Modules/lib/libPolycode2DPhysics.a ../../Modules/Dependencies/lib/libBox2D.a ../../Modules/lib/libPolycode3DPhysics.a ../../Modules/Dependencies/lib/libBulletDynamics.a ../../Modules/Dependencies/lib/libBulletCollision.a ../../Modules/Dependencies/lib/libLinearMath.a ../../Modules/lib/libPolycodeNetworking.a
 
-default: BasicText BasicImage
+default: 2DAudio 2DParticles 2DPhysics_Basic 2DPhysics_CollisionOnly 2DPhysics_Contacts 2DPhysics_Joints 2DPhysics_PointCollision 2DShapes 2DTransforms 3DAudio 3DBasics 3DMeshParticles 3DParticles 3DPhysics_Basic 3DPhysics_Character 3DPhysics_CollisionOnly 3DPhysics_Contacts 3DPhysics_RayTest 3DPhysics_Vehicle AdvancedLighting BasicImage BasicLighting BasicText EventHandling KeyboardInput MouseInput Networking_Client Networking_Server PlayingSounds ScreenEntities ScreenSprites SkeletalAnimation UpdateLoop  
 
 clean:
-	rm BasicText
+	rm 2DAudio
+	rm 2DParticles
+	rm 2DPhysics_Basic
+	rm 2DPhysics_CollisionOnly
+	rm 2DPhysics_Contacts
+	rm 2DPhysics_Joints
+	rm 2DPhysics_PointCollision
+	rm 2DShapes
+	rm 2DTransforms
+	rm 3DAudio
+	rm 3DBasics
+	rm 3DMeshParticles
+	rm 3DParticles
+	rm 3DPhysics_Basic
+	rm 3DPhysics_Character
+	rm 3DPhysics_CollisionOnly
+	rm 3DPhysics_Contacts
+	rm 3DPhysics_RayTest
+	rm 3DPhysics_Vehicle
+	rm AdvancedLighting
 	rm BasicImage
+	rm BasicLighting
+	rm BasicText
+	rm EventHandling
+	rm KeyboardInput
+	rm MouseInput
+	rm Networking_Client
+	rm Networking_Server
+	rm PlayingSounds
+	rm ScreenEntities
+	rm ScreenSprites
+	rm SkeletalAnimation
+	rm UpdateLoop
 
-BasicText:
-	${CC} $(CFLAGS) -I./Contents/BasicText main.cpp Contents/BasicText/HelloPolycodeApp.cpp -o BasicText $(LDFLAGS)
+2DAudio:
+	$(CC) $(CFLAGS) -I./Contents/2DAudio main.cpp Contents/2DAudio/HelloPolycodeApp.cpp -o 2DAudio $(LDFLAGS)
+2DParticles:
+	$(CC) $(CFLAGS) -I./Contents/2DParticles main.cpp Contents/2DParticles/HelloPolycodeApp.cpp -o 2DParticles $(LDFLAGS)
+2DPhysics_Basic:
+	$(CC) $(CFLAGS) -I./Contents/2DPhysics_Basic main.cpp Contents/2DPhysics_Basic/HelloPolycodeApp.cpp -o 2DPhysics_Basic $(LDFLAGS)
+2DPhysics_CollisionOnly:
+	$(CC) $(CFLAGS) -I./Contents/2DPhysics_CollisionOnly main.cpp Contents/2DPhysics_CollisionOnly/HelloPolycodeApp.cpp -o 2DPhysics_CollisionOnly $(LDFLAGS)
+2DPhysics_Contacts:
+	$(CC) $(CFLAGS) -I./Contents/2DPhysics_Contacts main.cpp Contents/2DPhysics_Contacts/HelloPolycodeApp.cpp -o 2DPhysics_Contacts $(LDFLAGS)
+2DPhysics_Joints:
+	$(CC) $(CFLAGS) -I./Contents/2DPhysics_Joints main.cpp Contents/2DPhysics_Joints/HelloPolycodeApp.cpp -o 2DPhysics_Joints $(LDFLAGS)
+2DPhysics_PointCollision:
+	$(CC) $(CFLAGS) -I./Contents/2DPhysics_PointCollision main.cpp Contents/2DPhysics_PointCollision/HelloPolycodeApp.cpp -o 2DPhysics_PointCollision $(LDFLAGS)
+2DShapes:
+	$(CC) $(CFLAGS) -I./Contents/2DShapes main.cpp Contents/2DShapes/HelloPolycodeApp.cpp -o 2DShapes $(LDFLAGS)
+2DTransforms:
+	$(CC) $(CFLAGS) -I./Contents/2DTransforms main.cpp Contents/2DTransforms/HelloPolycodeApp.cpp -o 2DTransforms $(LDFLAGS)
+3DAudio:
+	$(CC) $(CFLAGS) -I./Contents/3DAudio main.cpp Contents/3DAudio/HelloPolycodeApp.cpp -o 3DAudio $(LDFLAGS)
+3DBasics:
+	$(CC) $(CFLAGS) -I./Contents/3DBasics main.cpp Contents/3DBasics/HelloPolycodeApp.cpp -o 3DBasics $(LDFLAGS)
+3DMeshParticles:
+	$(CC) $(CFLAGS) -I./Contents/3DMeshParticles main.cpp Contents/3DMeshParticles/HelloPolycodeApp.cpp -o 3DMeshParticles $(LDFLAGS)
+3DParticles:
+	$(CC) $(CFLAGS) -I./Contents/3DParticles main.cpp Contents/3DParticles/HelloPolycodeApp.cpp -o 3DParticles $(LDFLAGS)
+3DPhysics_Basic:
+	$(CC) $(CFLAGS) -I./Contents/3DPhysics_Basic main.cpp Contents/3DPhysics_Basic/HelloPolycodeApp.cpp -o 3DPhysics_Basic $(LDFLAGS)
+3DPhysics_Character:
+	$(CC) $(CFLAGS) -I./Contents/3DPhysics_Character main.cpp Contents/3DPhysics_Character/HelloPolycodeApp.cpp -o 3DPhysics_Character $(LDFLAGS)
+3DPhysics_CollisionOnly:
+	$(CC) $(CFLAGS) -I./Contents/3DPhysics_CollisionOnly main.cpp Contents/3DPhysics_CollisionOnly/HelloPolycodeApp.cpp -o 3DPhysics_CollisionOnly $(LDFLAGS)
+3DPhysics_Contacts:
+	$(CC) $(CFLAGS) -I./Contents/3DPhysics_Contacts main.cpp Contents/3DPhysics_Contacts/HelloPolycodeApp.cpp -o 3DPhysics_Contacts $(LDFLAGS)
+3DPhysics_RayTest:
+	$(CC) $(CFLAGS) -I./Contents/3DPhysics_RayTest main.cpp Contents/3DPhysics_RayTest/HelloPolycodeApp.cpp -o 3DPhysics_RayTest $(LDFLAGS)
+3DPhysics_Vehicle:
+	$(CC) $(CFLAGS) -I./Contents/3DPhysics_Vehicle main.cpp Contents/3DPhysics_Vehicle/HelloPolycodeApp.cpp -o 3DPhysics_Vehicle $(LDFLAGS)
+AdvancedLighting:
+	$(CC) $(CFLAGS) -I./Contents/AdvancedLighting main.cpp Contents/AdvancedLighting/HelloPolycodeApp.cpp -o AdvancedLighting $(LDFLAGS)
 BasicImage:
-	${CC} $(CFLAGS) -I./Contents/BasicImage main.cpp Contents/BasicImage/HelloPolycodeApp.cpp -o BasicImage $(LDFLAGS)
+	$(CC) $(CFLAGS) -I./Contents/BasicImage main.cpp Contents/BasicImage/HelloPolycodeApp.cpp -o BasicImage $(LDFLAGS)
+BasicLighting:
+	$(CC) $(CFLAGS) -I./Contents/BasicLighting main.cpp Contents/BasicLighting/HelloPolycodeApp.cpp -o BasicLighting $(LDFLAGS)
+BasicText:
+	$(CC) $(CFLAGS) -I./Contents/BasicText main.cpp Contents/BasicText/HelloPolycodeApp.cpp -o BasicText $(LDFLAGS)
+EventHandling:
+	$(CC) $(CFLAGS) -I./Contents/EventHandling main.cpp Contents/EventHandling/HelloPolycodeApp.cpp -o EventHandling $(LDFLAGS)
+KeyboardInput:
+	$(CC) $(CFLAGS) -I./Contents/KeyboardInput main.cpp Contents/KeyboardInput/HelloPolycodeApp.cpp -o KeyboardInput $(LDFLAGS)
+MouseInput:
+	$(CC) $(CFLAGS) -I./Contents/MouseInput main.cpp Contents/MouseInput/HelloPolycodeApp.cpp -o MouseInput $(LDFLAGS)
+Networking_Client:
+	$(CC) $(CFLAGS) -I./Contents/Networking_Client main.cpp Contents/Networking_Client/HelloPolycodeApp.cpp -o Networking_Client $(LDFLAGS)
+Networking_Server:
+	$(CC) $(CFLAGS) -I./Contents/Networking_Server main.cpp Contents/Networking_Server/HelloPolycodeApp.cpp -o Networking_Server $(LDFLAGS)
+PlayingSounds:
+	$(CC) $(CFLAGS) -I./Contents/PlayingSounds main.cpp Contents/PlayingSounds/HelloPolycodeApp.cpp -o PlayingSounds $(LDFLAGS)
+ScreenEntities:
+	$(CC) $(CFLAGS) -I./Contents/ScreenEntities main.cpp Contents/ScreenEntities/HelloPolycodeApp.cpp -o ScreenEntities $(LDFLAGS)
+ScreenSprites:
+	$(CC) $(CFLAGS) -I./Contents/ScreenSprites main.cpp Contents/ScreenSprites/HelloPolycodeApp.cpp -o ScreenSprites $(LDFLAGS)
+SkeletalAnimation:
+	$(CC) $(CFLAGS) -I./Contents/SkeletalAnimation main.cpp Contents/SkeletalAnimation/HelloPolycodeApp.cpp -o SkeletalAnimation $(LDFLAGS)
+UpdateLoop:
+	$(CC) $(CFLAGS) -I./Contents/UpdateLoop main.cpp Contents/UpdateLoop/HelloPolycodeApp.cpp -o UpdateLoop $(LDFLAGS)

+ 2 - 2
Examples/C++/Contents/2DAudio/HelloPolycodeApp.cpp

@@ -8,13 +8,13 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 	
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);	
 
 	Screen *screen = new Screen();
 	
 	sourceEntity = new ScreenEntity();
-	ScreenSound *testSound = new ScreenSound("test.wav", 200, 600);
+	ScreenSound *testSound = new ScreenSound("Resources/test.wav", 200, 600);
 	testSound->getSound()->Play(true);
 	sourceEntity->addChild(testSound);
 	ScreenShape *soundShape = new ScreenShape(ScreenShape::SHAPE_CIRCLE, 20,20,10);

+ 2 - 2
Examples/C++/Contents/2DParticles/HelloPolycodeApp.cpp

@@ -8,11 +8,11 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 	
 	Screen *screen = new Screen();	
-	ScreenParticleEmitter *emitter = new ScreenParticleEmitter("particle.png", screen,
+	ScreenParticleEmitter *emitter = new ScreenParticleEmitter("Resoruces/particle.png", screen,
 		 Particle::BILLBOARD_PARTICLE, ParticleEmitter::CONTINUOUS_EMITTER, 4, 200,
 		Vector3(0.0,-50.0,0.0), Vector3(0.0,0.0,0.0), Vector3(20.5, 40.0, 0.0));
 	

+ 2 - 2
Examples/C++/Contents/2DPhysics_CollisionOnly/HelloPolycodeApp.cpp

@@ -8,7 +8,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 	
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);	
 
 	screen = new PhysicsScreen(10, 50);
@@ -56,4 +56,4 @@ bool HelloPolycodeApp::Update() {
 	checkShape->setPosition(mouse.x, mouse.y);
 	checkShape->setRotation(checkShape->getRotation() + (core->getElapsed() * 100));
     return core->Update();
-}
+}

+ 3 - 3
Examples/C++/Contents/2DPhysics_Contacts/HelloPolycodeApp.cpp

@@ -8,7 +8,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 	
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);	
 
 	screen = new PhysicsScreen(10, 60);		
@@ -23,7 +23,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 		shape->setPosition(rand() % 640, rand() % 300);
 		screen->addPhysicsChild(shape, PhysicsScreenEntity::ENTITY_RECT, false);		
 	}
-	collisionSound = new Sound("hit.wav");
+	collisionSound = new Sound("Resources/hit.wav");
 	screen->addEventListener(this, PhysicsScreenEvent::EVENT_NEW_SHAPE_COLLISION);
 }
 
@@ -45,4 +45,4 @@ HelloPolycodeApp::~HelloPolycodeApp() {
 
 bool HelloPolycodeApp::Update() {
     return core->Update();
-}
+}

+ 2 - 2
Examples/C++/Contents/2DPhysics_PointCollision/HelloPolycodeApp.cpp

@@ -8,7 +8,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 	
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);	
 
 	screen = new PhysicsScreen(10, 50);
@@ -38,4 +38,4 @@ bool HelloPolycodeApp::Update() {
 		lastEntity = entity;
 	}
     return core->Update();
-}
+}

+ 1 - 1
Examples/C++/Contents/2DShapes/HelloPolycodeApp.cpp

@@ -8,7 +8,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 	
 	Screen *screen = new Screen();

+ 2 - 2
Examples/C++/Contents/2DTransforms/HelloPolycodeApp.cpp

@@ -8,12 +8,12 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	Screen *screen = new Screen();			
 	for(Number i=0; i < 10; i++) {
-		ScreenImage *image = new ScreenImage("polycode_logo.png");
+		ScreenImage *image = new ScreenImage("Resources/polycode_logo.png");
 		screen->addChild(image);	
 		image->setPosition(160+(42*i), 230);
 		image->setPositionMode(ScreenEntity::POSITION_CENTER);

+ 2 - 2
Examples/C++/Contents/3DAudio/HelloPolycodeApp.cpp

@@ -8,13 +8,13 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 	
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);	
 
 	Scene *scene = new Scene();
 	
 	sourceEntity = new SceneEntity();
-	SceneSound *testSound = new SceneSound("test.wav", 20, 50);
+	SceneSound *testSound = new SceneSound("Resources/test.wav", 20, 50);
 	testSound->getSound()->Play(true);
 	sourceEntity->addChild(testSound);
 	ScenePrimitive *soundShape = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 1,1,1);

+ 3 - 3
Examples/C++/Contents/3DBasics/HelloPolycodeApp.cpp

@@ -8,16 +8,16 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	Scene *scene = new Scene();
 	ScenePrimitive *ground = new ScenePrimitive(ScenePrimitive::TYPE_PLANE, 5,5);
-	ground->loadTexture("green_texture.png");
+	ground->loadTexture("Resources/green_texture.png");
 	scene->addEntity(ground);
 
 	ScenePrimitive *box = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 1,1,1);
-	box->loadTexture("pink_texture.png");
+	box->loadTexture("Resources/pink_texture.png");
 	box->setPosition(0.0, 0.5, 0.0);
 	scene->addEntity(box);
 	

+ 1 - 3
Examples/C++/Contents/3DMeshParticles/HelloPolycodeApp.cpp

@@ -8,10 +8,8 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
-	CoreServices::getInstance()->getResourceManager()->addDirResource(".", false);
-
 	CoreServices::getInstance()->getResourceManager()->addDirResource("Resources", false);	
 
 	Scene *scene = new Scene();

+ 1 - 3
Examples/C++/Contents/3DParticles/HelloPolycodeApp.cpp

@@ -8,10 +8,8 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
-	CoreServices::getInstance()->getResourceManager()->addDirResource(".", false);
-
 	CoreServices::getInstance()->getResourceManager()->addDirResource("Resources", false);	
 
 	Scene *scene = new Scene();

+ 3 - 3
Examples/C++/Contents/3DPhysics_Basic/HelloPolycodeApp.cpp

@@ -8,18 +8,18 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	PhysicsScene *scene = new PhysicsScene();
 
 	ScenePrimitive *ground = new ScenePrimitive(ScenePrimitive::TYPE_PLANE, 10, 10);
-	ground->loadTexture("green_texture.png");
+	ground->loadTexture("Resources/green_texture.png");
 	scene->addPhysicsChild(ground, PhysicsSceneEntity::SHAPE_PLANE, 0.0);
 
 	for(int i=0; i < 100; i++) {
 		ScenePrimitive *box = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 0.5,0.5,0.5);
-		box->loadTexture("pink_texture.png");
+		box->loadTexture("Resources/pink_texture.png");
 		box->Roll(-45 + (rand() % 90));
 		box->Pitch(-45 + (rand() % 90));		
 		box->setPosition(-2 + (rand() % 4), i*0.5, -2 + (rand() % 4));

+ 5 - 5
Examples/C++/Contents/3DPhysics_Character/HelloPolycodeApp.cpp

@@ -8,7 +8,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	Screen *hud = new Screen();
@@ -22,12 +22,12 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	scene = new PhysicsScene();
 
 	ScenePrimitive *ground = new ScenePrimitive(ScenePrimitive::TYPE_PLANE, 10, 10);
-	ground->loadTexture("green_texture.png");
+	ground->loadTexture("Resources/green_texture.png");
 	scene->addPhysicsChild(ground, PhysicsSceneEntity::SHAPE_PLANE, 0.0);
 
 	for(int i=0; i < 10; i++) {
 		ScenePrimitive *box = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 0.8,0.8,0.8);
-		box->loadTexture("pink_texture.png");
+		box->loadTexture("Resources/pink_texture.png");
 		box->Roll(-45 + (rand() % 90));
 		box->Pitch(-45 + (rand() % 90));		
 		box->setPosition(-2 + (rand() % 4), i*0.5, -2 + (rand() % 4));
@@ -35,7 +35,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	}
 
 	player = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 0.5,1.0,0.5);
-	player->loadTexture("pink_texture.png");
+	player->loadTexture("Resources/pink_texture.png");
 	player->setColor(1.0, 1.0, 0.0, 1.0);
 	player->setPosition(2,1,2);
 	playerController = scene->addCharacterChild(player, 10.0, 1.0, 0.5);	
@@ -44,7 +44,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	playerDirection = 0;
 	
 	testBox = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 2, 2, 2);
-	testBox->loadTexture("pink_texture.png");
+	testBox->loadTexture("Resources/pink_texture.png");
 	testBox->setColor(0.3,0.5, 1.0,0.4);
 	testBox->setPosition(2,1,-2);
 	scene->addCollisionChild(testBox, PhysicsSceneEntity::SHAPE_BOX);

+ 4 - 4
Examples/C++/Contents/3DPhysics_CollisionOnly/HelloPolycodeApp.cpp

@@ -8,22 +8,22 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	scene = new CollisionScene();
 
 	ScenePrimitive *ground = new ScenePrimitive(ScenePrimitive::TYPE_PLANE, 10, 10);
-	ground->loadTexture("green_texture.png");
+	ground->loadTexture("Resources/green_texture.png");
 	scene->addEntity(ground);
 
 	box = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 0.5,0.5,0.5);
-	box->loadTexture("pink_texture.png");
+	box->loadTexture("Resources/pink_texture.png");
 	box->setPosition(0,1,0);
 	scene->addCollisionChild(box, CollisionSceneEntity::SHAPE_BOX);
 
 	bigBox = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 2,2,2);
-	bigBox->loadTexture("pink_texture.png");
+	bigBox->loadTexture("Resources/pink_texture.png");
 	bigBox->setColor(0.0,1.0,1.0,0.5);
 	bigBox->setPosition(0,1,0);
 	scene->addCollisionChild(bigBox, CollisionSceneEntity::SHAPE_BOX);

+ 3 - 3
Examples/C++/Contents/3DPhysics_Contacts/HelloPolycodeApp.cpp

@@ -8,18 +8,18 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	PhysicsScene *scene = new PhysicsScene();
 
 	ScenePrimitive *ground = new ScenePrimitive(ScenePrimitive::TYPE_PLANE, 10, 10);
-	ground->loadTexture("green_texture.png");
+	ground->loadTexture("Resources/green_texture.png");
 	scene->addPhysicsChild(ground, PhysicsSceneEntity::SHAPE_PLANE, 0.0);
 
 	for(int i=0; i < 100; i++) {
 		ScenePrimitive *box = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 0.5,0.5,0.5);
-		box->loadTexture("pink_texture.png");
+		box->loadTexture("Resources/pink_texture.png");
 		box->Roll(-45 + (rand() % 90));
 		box->Pitch(-45 + (rand() % 90));		
 		box->setPosition(-2 + (rand() % 4), i*0.5, -2 + (rand() % 4));

+ 5 - 5
Examples/C++/Contents/3DPhysics_RayTest/HelloPolycodeApp.cpp

@@ -8,7 +8,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	Screen *hud = new Screen();
@@ -18,21 +18,21 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 	scene = new CollisionScene();
 
 	ScenePrimitive *ground = new ScenePrimitive(ScenePrimitive::TYPE_PLANE, 10, 10);
-	ground->loadTexture("green_texture.png");
+	ground->loadTexture("Resources/green_texture.png");
 	scene->addEntity(ground);
 
 	box = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 1,1,1);
-	box->loadTexture("pink_texture.png");
+	box->loadTexture("Resources/pink_texture.png");
 	box->setPosition(0,1,0);
 	scene->addCollisionChild(box, CollisionSceneEntity::SHAPE_MESH);
 
 	box = new ScenePrimitive(ScenePrimitive::TYPE_CONE, 1,1,10);
-	box->loadTexture("pink_texture.png");
+	box->loadTexture("Resources/pink_texture.png");
 	box->setPosition(1,1,2);
 	scene->addCollisionChild(box, CollisionSceneEntity::SHAPE_CONE);
 
 	box = new ScenePrimitive(ScenePrimitive::TYPE_CYLINDER, 2,0.5,10);
-	box->loadTexture("pink_texture.png");
+	box->loadTexture("Resources/pink_texture.png");
 	box->setPosition(2,1,-1);
 	scene->addCollisionChild(box, CollisionSceneEntity::SHAPE_CYLINDER);
 

+ 12 - 12
Examples/C++/Contents/3DPhysics_Vehicle/HelloPolycodeApp.cpp

@@ -8,7 +8,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	Screen *hud = new Screen();
@@ -19,7 +19,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	scene = new PhysicsScene();
 
 	ScenePrimitive *ground = new ScenePrimitive(ScenePrimitive::TYPE_PLANE, 30, 30);
-	ground->loadTexture("green_texture.png");
+	ground->loadTexture("Resources/green_texture.png");
 	scene->addPhysicsChild(ground, PhysicsSceneEntity::SHAPE_PLANE, 0.0);
 
 	// Some obstacles	
@@ -27,25 +27,25 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	box->setPitch(25.0);
 	box->setPosition(7,-1.05, 0.0);
 	box->setColor(0.5,0.5,1.0,1.0);
-	box->loadTexture("green_texture.png");
+	box->loadTexture("Resources/green_texture.png");
 	scene->addPhysicsChild(box, PhysicsSceneEntity::SHAPE_BOX, 0.0);
 
 	box = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 4,4,6);	
 	box->setPitch(25.0);
 	box->setPosition(-7,-1.05, 0.0);
 	box->setColor(0.5,0.5,1.0,1.0);
-	box->loadTexture("green_texture.png");
+	box->loadTexture("Resources/green_texture.png");
 	scene->addPhysicsChild(box, PhysicsSceneEntity::SHAPE_BOX, 0.0);
 
 	box = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 20,2,5);	
 	box->setPosition(0.0,1.0, -4.3);
 	box->setColor(0.5,0.5,1.0,1.0);
-	box->loadTexture("green_texture.png");
+	box->loadTexture("Resources/green_texture.png");
 	scene->addPhysicsChild(box, PhysicsSceneEntity::SHAPE_BOX, 0.0);
 
 	for(int i=0; i < 10; i++) {
 		ScenePrimitive *box = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 0.7,0.7,0.7);
-		box->loadTexture("pink_texture.png");
+		box->loadTexture("Resources/pink_texture.png");
 		box->Roll(-45 + (rand() % 90));
 		box->Pitch(-45 + (rand() % 90));		
 		box->setPosition(-3 + (rand() % 6), 2 + i*0.5, -5 + (rand() % 3));
@@ -54,31 +54,31 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 
 	// The vehicle
 	vehicle = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 1.0,0.5,2.0);
-	vehicle->loadTexture("pink_texture.png");
+	vehicle->loadTexture("Resources/pink_texture.png");
 	vehicle->setColor(1.0, 1.0, 0.0, 1.0);
 	vehicle->setPosition(6,1,5);
 	vehicleController = scene->addVehicleChild(vehicle, 5.0, 1.0);
 	
 	ScenePrimitive *wheel = new ScenePrimitive(ScenePrimitive::TYPE_SPHERE, 0.3, 10, 10);
-	wheel->loadTexture("pink_texture.png");
+	wheel->loadTexture("Resources/pink_texture.png");
 	wheel->setColor(0.0, 1.0, 0.0, 1.0);
 	vehicleController->addWheel(wheel, Vector3(0.6,0,-0.5), Vector3(0,-1,0), Vector3(-1,0,0), 0.2,  0.3, true);
 	scene->addEntity(wheel);
 
 	wheel = new ScenePrimitive(ScenePrimitive::TYPE_SPHERE, 0.3, 10, 10);
-	wheel->loadTexture("pink_texture.png");
+	wheel->loadTexture("Resources/pink_texture.png");
 	wheel->setColor(0.0, 1.0, 0.0, 1.0);
 	vehicleController->addWheel(wheel, Vector3(-0.6,0,-0.5), Vector3(0,-1,0), Vector3(-1,0,0), 0.2,  0.3, true);
 	scene->addEntity(wheel);
 
 	wheel = new ScenePrimitive(ScenePrimitive::TYPE_SPHERE, 0.3, 10, 10);
-	wheel->loadTexture("pink_texture.png");
+	wheel->loadTexture("Resources/pink_texture.png");
 	wheel->setColor(0.0, 1.0, 0.0, 1.0);
 	vehicleController->addWheel(wheel, Vector3(0.6,0,0.5), Vector3(0,-1,0), Vector3(-1,0,0), 0.2,  0.3, false);
 	scene->addEntity(wheel);
 
 	wheel = new ScenePrimitive(ScenePrimitive::TYPE_SPHERE, 0.3, 10, 10);
-	wheel->loadTexture("pink_texture.png");
+	wheel->loadTexture("Resources/pink_texture.png");
 	wheel->setColor(0.0, 1.0, 0.0, 1.0);
 	vehicleController->addWheel(wheel, Vector3(-0.6,0,0.5), Vector3(0,-1,0), Vector3(-1,0,0), 0.2,  0.3, false);
 	scene->addEntity(wheel);
@@ -88,7 +88,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	breaking = false;
 	
 	testBox = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 4, 4, 4);
-	testBox->loadTexture("pink_texture.png");
+	testBox->loadTexture("Resources/pink_texture.png");
 	testBox->setColor(0.3,0.5, 1.0,0.4);
 	testBox->setPosition(-5,2,7);
 	scene->addCollisionChild(testBox, PhysicsSceneEntity::SHAPE_BOX);

+ 2 - 3
Examples/C++/Contents/AdvancedLighting/HelloPolycodeApp.cpp

@@ -8,10 +8,9 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
-
-	CoreServices::getInstance()->getResourceManager()->addDirResource(".", false);
+	CoreServices::getInstance()->getResourceManager()->addDirResource("Resources", false);
 	
 	Scene *scene = new Scene();
 	ScenePrimitive *ground = new ScenePrimitive(ScenePrimitive::TYPE_PLANE, 5,5);

+ 2 - 2
Examples/C++/Contents/BasicImage/HelloPolycodeApp.cpp

@@ -8,11 +8,11 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	Screen *screen = new Screen();			
-	ScreenImage *image = new ScreenImage("polycode_logo.png");
+	ScreenImage *image = new ScreenImage("Resources/polycode_logo.png");
 	screen->addChild(image);	
 }
 

+ 1 - 3
Examples/C++/Contents/BasicLighting/HelloPolycodeApp.cpp

@@ -8,10 +8,8 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
-	CoreServices::getInstance()->getResourceManager()->addDirResource(".", false);
-	
 	CoreServices::getInstance()->getResourceManager()->addDirResource("Resources", false);
 
 	Scene *scene = new Scene();

+ 1 - 1
Examples/C++/Contents/BasicText/HelloPolycodeApp.cpp

@@ -8,7 +8,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	Screen *screen = new Screen();

+ 3 - 3
Examples/C++/Contents/EventHandling/HelloPolycodeApp.cpp

@@ -8,14 +8,14 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 	  
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	rotateTimer = new Timer(true, 1000);
 	rotateTimer->addEventListener(this, Timer::EVENT_TRIGGER);
 
 	Screen *screen = new Screen();			
-	image = new ScreenImage("polycode_logo.png");
+	image = new ScreenImage("Resources/polycode_logo.png");
 	screen->addChild(image);	
 }
 
@@ -27,4 +27,4 @@ void HelloPolycodeApp::handleEvent(Event *e) {
 
 bool HelloPolycodeApp::Update() {
     return core->Update();
-}
+}

+ 2 - 2
Examples/C++/Contents/KeyboardInput/HelloPolycodeApp.cpp

@@ -8,11 +8,11 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	Screen *screen = new Screen();			
-	image = new ScreenImage("polycode_logo.png");
+	image = new ScreenImage("Resources/polycode_logo.png");
 	image->setPositionMode(ScreenEntity::POSITION_CENTER);
 	image->setPosition(640/2, 480/2);
 	screen->addChild(image);	

+ 2 - 2
Examples/C++/Contents/MouseInput/HelloPolycodeApp.cpp

@@ -8,11 +8,11 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	Screen *screen = new Screen();			
-	image = new ScreenImage("polycode_logo.png");
+	image = new ScreenImage("Resources/polycode_logo.png");
 	image->setPositionMode(ScreenEntity::POSITION_CENTER);
 	screen->addChild(image);	
 	

+ 3 - 4
Examples/C++/Contents/Networking_Client/HelloPolycodeApp.cpp

@@ -8,13 +8,13 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	gameScreen = new Screen();	
 
 	Screen *hudScreen = new Screen();
-	ScreenLabel *label = new ScreenLabel("Example client.  Connecting.... Press escape to exit.", 16);
+	ScreenLabel *label = new ScreenLabel("Example client.  Press escape to exit.", 16);
 	hudScreen->addChild(label);
 	
 	motdLabel =  new ScreenLabel("", 16);
@@ -31,8 +31,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core->getInput()->addEventListener(this, InputEvent::EVENT_KEYDOWN);
 	core->getInput()->addEventListener(this, InputEvent::EVENT_KEYUP);
 	
-//	client->Connect("127.0.0.1", 52345);
-	client->Connect("192.168.2.3", 52345);
+	client->Connect("127.0.0.1", 52345);
 	state = 0;
 }	
 

+ 1 - 1
Examples/C++/Contents/Networking_Server/HelloPolycodeApp.cpp

@@ -8,7 +8,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : ServerWorld(), EventHan
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	memset(serverInfo.motd, 0, 256);

+ 2 - 2
Examples/C++/Contents/PlayingSounds/HelloPolycodeApp.cpp

@@ -8,7 +8,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 	
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 	
 	Screen *screen = new Screen();
@@ -16,7 +16,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	screen->addChild(label);
 		
 	core->getInput()->addEventListener(this, InputEvent::EVENT_MOUSEDOWN);
-	testSound = new Sound("test.wav");
+	testSound = new Sound("Resources/test.wav");
 }
 
 void HelloPolycodeApp::handleEvent(Event *e) {

+ 1 - 1
Examples/C++/Contents/ScreenEntities/HelloPolycodeApp.cpp

@@ -8,7 +8,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	Screen *screen = new Screen();			

+ 2 - 2
Examples/C++/Contents/ScreenSprites/HelloPolycodeApp.cpp

@@ -8,12 +8,12 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	CoreServices::getInstance()->getRenderer()->setTextureFilteringMode(Renderer::TEX_FILTERING_NEAREST);
 	Screen *screen = new Screen();
-	ScreenSprite *sprite = new ScreenSprite("sprite_sheet.png", 93, 78);
+	ScreenSprite *sprite = new ScreenSprite("Resources/sprite_sheet.png", 93, 78);
 	sprite->setPosition(350,150);
 	sprite->setScale(7,7);
 	screen->addChild(sprite);

+ 5 - 5
Examples/C++/Contents/SkeletalAnimation/HelloPolycodeApp.cpp

@@ -8,17 +8,17 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	CoreServices::getInstance()->getRenderer()->setTextureFilteringMode(Renderer::TEX_FILTERING_NEAREST);
 
 	Scene *scene = new Scene();
-	SceneMesh *mesh = new SceneMesh("ninja.mesh");
-	mesh->loadTexture("ninja.png");
+	SceneMesh *mesh = new SceneMesh("Resources/ninja.mesh");
+	mesh->loadTexture("Resources/ninja.png");
 	scene->addEntity(mesh);
-	mesh->loadSkeleton("ninja.skeleton");
-	mesh->getSkeleton()->addAnimation("Run", "run.anim");
+	mesh->loadSkeleton("Resources/ninja.skeleton");
+	mesh->getSkeleton()->addAnimation("Run", "Resources/run.anim");
 	mesh->getSkeleton()->playAnimation("Run");
 
 	scene->getDefaultCamera()->setPosition(25,25,25);

+ 3 - 3
Examples/C++/Contents/UpdateLoop/HelloPolycodeApp.cpp

@@ -8,11 +8,11 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 	core = new SDLCore(view, 640,480,false,0,90);	  
 #endif
 	  
-	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	Screen *screen = new Screen();			
-	image = new ScreenImage("polycode_logo.png");
+	image = new ScreenImage("Resources/polycode_logo.png");
 	screen->addChild(image);	
 }
 
@@ -20,4 +20,4 @@ bool HelloPolycodeApp::Update() {
 	Number elapsed = core->getElapsed();
 	image->setRotation(image->getRotation()+(elapsed*100));
     return core->Update();
-}
+}