Improved Makefile (and reset just in case you fall off the map).

This commit is contained in:
Deathsbreed
2014-10-19 21:39:06 -05:00
parent 320458ead7
commit 9f1ce610d0
2 changed files with 13 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ int main() {
gui::IGUIEnvironment *guienv = device->getGUIEnvironment();
// Add text to game
guienv->addStaticText(L"Use WASD to move\nUse SPACE to jump\nUse ESC to exit", core::rect<s32>(30, 30, 120, 65), false, false, 0, -1, true);
guienv->addStaticText(L"Use WASD to move\nUse SPACE to jump\nUse R to reset\nUse ESC to exit", core::rect<s32>(30, 30, 120, 72), false, false, 0, -1, true);
// Load map
device->getFileSystem()->addFileArchive("../res/map-20kdm2.pk3");
@@ -86,6 +86,10 @@ int main() {
if(eventReceiver.IsKeyDown(KEY_ESCAPE)) {
device->closeDevice();
}
if(eventReceiver.IsKeyDown(KEY_KEY_R)) {
cam->setPosition(core::vector3df(50, 50, -60));
cam->setTarget(core::vector3df(-70, 30, -60));
}
// Print FPS
int fps = driver->getFPS();