Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // GAME.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <irrlicht.h>
- #include <iostream>
- #include <windows.h>
- #include <conio.h>
- #include <windef.h>
- #include "fstream"
- #include "string"
- #include "vector"
- #include <sstream>
- #include <cstdlib>
- #include <time.h>
- using namespace std;
- using namespace irr;
- using namespace core;
- using namespace scene;
- using namespace video;
- using namespace io;
- using namespace gui;
- enum
- {
- ID_IsNotPickable = 0,
- IDFlag_IsPickable = 1 << 0,
- IDFlag_IsHighlightable = 1 << 1
- };
- int main()
- {
- scene::IMeshSceneNode* n1 = 0;
- scene::IMeshSceneNode* n2 = 0;
- scene::IMeshSceneNode* n3 = 0;
- scene::IMeshSceneNode* n4 = 0;
- scene::IMeshSceneNode* n5 = 0;
- scene::IMeshSceneNode* n6 = 0;
- scene::IMeshSceneNode* n7 = 0;
- scene::IMeshSceneNode* n8 = 0;
- scene::IMeshSceneNode* n9= 0;
- scene::IMeshSceneNode* n10 = 0;
- scene::IMeshSceneNode* n11 = 0;
- scene::IMeshSceneNode* n12 = 0;
- scene::IMeshSceneNode* n13 = 0;
- scene::IMeshSceneNode* n14 = 0;
- scene::IMeshSceneNode* n15 = 0;
- scene::IMeshSceneNode* n16 = 0;
- scene::IMeshSceneNode* n17 = 0;
- scene::IMeshSceneNode* n18 = 0;
- scene::IMeshSceneNode* n19 = 0;
- scene::IMeshSceneNode* n20 = 0;
- scene::IMeshSceneNode* b1 = 0;
- scene::IMeshSceneNode* b2 = 0;
- scene::IMeshSceneNode* b3 = 0;
- scene::IMeshSceneNode* b4 = 0;
- int loop=0;
- int ct=1;
- bool n1e=false;
- double xx=100;
- double yy=85;
- bool collision=false;
- srand( time( NULL ) );
- double ix = rand()%100;
- double iy = rand()%150;
- double x = 100;
- double y = 85;
- double x1 = 500;
- double x2 = 500;
- double x3 = 500;
- double x4 = 500;
- double x5 = 500;
- double x6 = 500;
- double x7 = 500;
- double x8 = 500;
- double x9 = 500;
- double x10 = 500;
- double x11 = 500;
- double x12 = 500;
- double x13 = 500;
- double x14 = 500;
- double x15 = 500;
- double x16 = 500;
- double x17 = 500;
- double x18 = 500;
- double x19 = 500;
- double x20 = 500;
- double y1 = 500;
- double y2 = 500;
- double y3 = 500;
- double y4 = 500;
- double y5 = 500;
- double y6 = 500;
- double y7 = 500;
- double y8 = 500;
- double y9 = 500;
- double y10 = 500;
- double y11 = 500;
- double y12 = 500;
- double y13 = 500;
- double y14 = 500;
- double y15 = 500;
- double y16 = 500;
- double y17 = 500;
- double y18 = 500;
- double y19 = 500;
- double y20 = 500;
- bool go=false;
- int dir = 2;
- bool mouse=false;
- core::stringw title = "SNAKE 3D";
- IrrlichtDevice *device =
- createDevice(EDT_DIRECT3D9, dimension2d<u32>(640, 480), 16,
- false, true, true, 0);
- IVideoDriver* driver = device->getVideoDriver();
- ISceneManager* smgr = device->getSceneManager();
- IGUIEnvironment* guienv = device->getGUIEnvironment();
- int score = 0;
- core::stringw str = L"";
- str += title;
- str +=" [ Score: ";
- str += score;
- str += " ]";
- device->setWindowCaption(str.c_str());
- scene::IAnimatedMesh* nn1 = smgr->getMesh("../../media/tail.obj");
- //TAIL
- n1 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n1->setScale(core::vector3df(5, 5, 5));
- n1->setPosition(core::vector3df(500,0,500));
- n2 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n2->setScale(core::vector3df(5, 5, 5));
- n2->setPosition(core::vector3df(500,0,500));
- n3 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n3->setScale(core::vector3df(5, 5, 5));
- n3->setPosition(core::vector3df(500,0,500));
- n4 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n4->setScale(core::vector3df(5, 5, 5));
- n4->setPosition(core::vector3df(500,0,500));
- n5 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n5->setScale(core::vector3df(5, 5, 5));
- n5->setPosition(core::vector3df(500,0,500));
- n6 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n6->setScale(core::vector3df(5, 5, 5));
- n6->setPosition(core::vector3df(500,0,500));
- n7 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n7->setScale(core::vector3df(5, 5, 5));
- n7->setPosition(core::vector3df(500,0,500));
- n8 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n8->setScale(core::vector3df(5, 5, 5));
- n8->setPosition(core::vector3df(500,0,500));
- n9 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n9->setScale(core::vector3df(5, 5, 5));
- n9->setPosition(core::vector3df(500,0,500));
- n10 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n10->setScale(core::vector3df(5, 5, 5));
- n10->setPosition(core::vector3df(500,0,500));
- n11 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n11->setScale(core::vector3df(5, 5, 5));
- n11->setPosition(core::vector3df(500,0,500));
- n12 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n12->setScale(core::vector3df(5, 5, 5));
- n12->setPosition(core::vector3df(500,0,500));
- n13 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n13->setScale(core::vector3df(5, 5, 5));
- n13->setPosition(core::vector3df(500,0,500));
- n14 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n14->setScale(core::vector3df(5, 5, 5));
- n14->setPosition(core::vector3df(500,0,500));
- n15 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n15->setScale(core::vector3df(5, 5, 5));
- n15->setPosition(core::vector3df(500,0,500));
- n16 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n16->setScale(core::vector3df(5, 5, 5));
- n16->setPosition(core::vector3df(500,0,500));
- n17 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n17->setScale(core::vector3df(5, 5, 5));
- n17->setPosition(core::vector3df(500,0,500));
- n18 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n18->setScale(core::vector3df(5, 5, 5));
- n18->setPosition(core::vector3df(500,0,500));
- n19 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n19->setScale(core::vector3df(5, 5, 5));
- n19->setPosition(core::vector3df(500,0,500));
- n20 = smgr->addOctreeSceneNode(nn1->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- n20->setScale(core::vector3df(5, 5, 5));
- n20->setPosition(core::vector3df(500,0,500));
- n1->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n2->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n3->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n4->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n5->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n6->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n7->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n8->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n9->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n10->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n11->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n12->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n13->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n14->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n15->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n16->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n17->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n18->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n19->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- n20->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- int unlocked=0;
- scene::IAnimatedMesh* br = smgr->getMesh("../../media/barrier.obj");
- b1 = smgr->addOctreeSceneNode(br->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- b1->setScale(core::vector3df(22, 0, 22));
- b1->setPosition(core::vector3df(x-40,-4,y));
- b1->setMaterialTexture(0, driver->getTexture("../../media/bar.jpg"));
- scene::IAnimatedMesh* fcube = smgr->getMesh("../../media/snakehead.obj");
- scene::IMeshSceneNode* nd = 0;
- nd = smgr->addOctreeSceneNode(fcube->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- nd->setScale(core::vector3df(12, 12, 12));
- //nd->setMaterialFlag(video::EMF_BACK_FACE_CULLING, true);
- device->getCursorControl()->setVisible(false);
- //nd->setMaterialTexture(0, driver->getTexture((const io::path) maptexture.c_str()));
- nd->getMaterial(0).SpecularColor.set(0,0,0,0);
- scene::ITriangleSelector* selector = 0;
- if (nd)
- {
- nd->setPosition(core::vector3df(100,0,85));
- selector = smgr->createOctreeTriangleSelector(
- nd->getMesh(), nd, 128);
- nd->setMaterialType( video::EMT_SOLID );
- nd->setTriangleSelector(selector);
- nd->setRotation(core::vector3df(0,180,0));
- nd->setMaterialTexture(0, driver->getTexture("../../media/snake.jpg"));
- nd->setMaterialFlag(EMF_LIGHTING, true);
- }
- scene::IAnimatedMesh* item = smgr->getMesh("../../media/coin.obj");
- scene::IMeshSceneNode* itemnode = 0;
- itemnode = smgr->addOctreeSceneNode(item->getMesh(0), 0, IDFlag_IsPickable, IDFlag_IsHighlightable);
- if (itemnode)
- {
- itemnode->setMaterialTexture(0, driver->getTexture("../../media/coin.jpg"));
- itemnode->setPosition(core::vector3df(ix,0,iy));
- itemnode->setScale(core::vector3df(4, 4, 4));
- }
- if (selector)
- {
- scene::ISceneNodeAnimator* anim = smgr->createCollisionResponseAnimator(
- selector, itemnode, core::vector3df(30,50,30),
- core::vector3df(0,-10,0), core::vector3df(0,30,0));
- selector->drop();
- nd->addAnimator(anim);
- anim->drop();
- }
- scene::ICameraSceneNode* camera = smgr->addCameraSceneNode(0, vector3df(200,100,85), vector3df(100,0,85));
- scene::ILightSceneNode * light = smgr->addLightSceneNode(0, core::vector3df(-70,100,300),
- video::SColorf(50.0f,50.0f,50.0f,50.0f), 100000.0f);
- light->setID(ID_IsNotPickable);
- scene::ISceneNode* highlightedSceneNode = 0;
- scene::ISceneCollisionManager* collMan = smgr->getSceneCollisionManager();
- core::stringw message;
- while(device->run())
- {
- driver->beginScene(true, true, SColor(0,200,200,200));
- smgr->drawAll();
- driver->endScene();
- if(GetAsyncKeyState(KEY_ESCAPE) != 0)
- {
- if (mouse){
- device->getCursorControl()->setVisible(false);
- mouse = false;
- }else{
- mouse = true;
- device->getCursorControl()->setVisible(true);
- }
- }
- if(GetAsyncKeyState(VK_SPACE) != 0)
- {
- }
- if(GetAsyncKeyState(VK_SHIFT) != 0)
- {
- n1->remove();
- n2->remove();
- n3->remove();
- n4->remove();
- n5->remove();
- }
- if(GetAsyncKeyState(KEY_UP) != 0)
- {
- if (dir!=2){dir = 1;nd->setRotation(core::vector3df(0,360,0));}
- }
- if(GetAsyncKeyState(KEY_DOWN) != 0)
- {
- if (dir!=1){dir = 2;nd->setRotation(core::vector3df(0,180,0));}
- }
- if(GetAsyncKeyState(KEY_LEFT) != 0)
- {
- if (dir!=3){dir = 4;nd->setRotation(core::vector3df(0,-90,0));}
- }
- if(GetAsyncKeyState(KEY_RIGHT) != 0)
- {
- if (dir!=4){dir = 3;nd->setRotation(core::vector3df(0,90,0));}
- }
- if(GetAsyncKeyState(KEY_KEY_T) != 0)
- {
- cout <<"T"<<endl;
- }
- //COLLISIONS
- if (x-11<=ix && x+11>=ix && y-11<=iy && y+11>=iy){
- collision=true;
- }
- if(collision){
- ix = rand()%100;
- iy = rand()%150;
- score++;
- unlocked++;
- itemnode->setPosition(core::vector3df(ix,0,iy));
- collision=false;
- }
- if (x-8<=x1 && x+8>=x1 && y-8<=y1 && y+8>=y1 && ct-1!=1 ){
- go=true;
- }
- if (x-8<=x2 && x+8>=x2 && y-8<=y2 && y+8>=y2 && ct-1!=2 ){
- go=true;
- }
- if (x-8<=x3 && x+8>=x3 && y-8<=y3 && y+8>=y3 && ct-1!=3 ){
- go=true;
- }
- if (x-8<=x4 && x+8>=x4 && y-8<=y4 && y+8>=y4 && ct-1!=4 ){
- go=true;
- }
- if (x-8<=x5 && x+8>=x5 && y-8<=y5 && y+8>=y5 && ct-1!=5 ){
- go=true;
- }
- if (x-8<=x6 && x+8>=x6 && y-8<=y6 && y+8>=y6 && ct-1!=6 ){
- go=true;
- }
- if (x-8<=x7 && x+8>=x7 && y-8<=y7 && y+8>=y7 && ct-1!=7 ){
- go=true;
- }
- if (x-8<=x8 && x+8>=x8 && y-8<=y8 && y+8>=y8 && ct-1!=8 ){
- go=true;
- }
- if (x-8<=x9 && x+8>=x9 && y-8<=y9 && y+8>=y9 && ct-1!=9 ){
- go=true;
- }
- if (x-8<=x10 && x+8>=x10 && y-8<=y10 && y+8>=y10 && ct-1!=10 ){
- go=true;
- }
- if (x-8<=x11 && x+8>=x11 && y-8<=y11 && y+8>=y11 && ct-1!=11 ){
- go=true;
- }
- if (x-8<=x12 && x+8>=x12 && y-8<=y12 && y+8>=y12 && ct-1!=12 ){
- go=true;
- }
- if (x-8<=x13 && x+8>=x13 && y-8<=y13 && y+8>=y13 && ct-1!=13 ){
- go=true;
- }
- if (x-8<=x14 && x+8>=x14 && y-8<=y14 && y+8>=y14 && ct-1!=14 ){
- go=true;
- }
- if (x-8<=x15 && x+8>=x15 && y-8<=y15 && y+8>=y15 && ct-1!=15 ){
- go=true;
- }
- if (x-8<=x16 && x+8>=x16 && y-8<=y16 && y+8>=y16 && ct-1!=16 ){
- go=true;
- }
- if (x-8<=x17 && x+8>=x17 && y-8<=y17 && y+8>=y17 && ct-1!=17 ){
- go=true;
- }
- if (x-8<=x18 && x+8>=x18 && y-8<=y18 && y+8>=y18 && ct-1!=18 ){
- go=true;
- }
- if (x-8<=x19 && x+8>=x19 && y-8<=y19 && y+8>=y19 && ct-1!=19 ){
- go=true;
- }
- if (x-8<=x20 && x+8>=x20 && y-8<=y20 && y+8>=y20 && ct-1!=20 ){
- go=true;
- }
- if (x>=150 || y>=150 || x<=0 || y<=0){ go=true;}
- //COLLISIONS
- if (go){
- cout <<"DEAD"<<endl;
- unlocked=0;
- score=0;
- loop=0;
- ct=1;
- xx=100;
- yy=85;
- collision=false;
- ix = rand()%100;
- iy = rand()%150;
- x = 100;
- y = 85;
- x1 = 500;
- x2 = 500;
- x3 = 500;
- x4 = 500;
- x5 = 500;
- x6 = 500;
- x7 = 500;
- x8 = 500;
- x9 = 500;
- x10 = 500;
- x11 = 500;
- x12 = 500;
- x13 = 500;
- x14 = 500;
- x15 = 500;
- x16 = 500;
- x17 = 500;
- x18 = 500;
- x19 = 500;
- x20 = 500;
- y1 = 500;
- y2 = 500;
- y3 = 500;
- y4 = 500;
- y5 = 500;
- y6 = 500;
- y7 = 500;
- y8 = 500;
- y9 = 500;
- y10 = 500;
- y11 = 500;
- y12 = 500;
- y13 = 500;
- y14 = 500;
- y15 = 500;
- y16 = 500;
- y17 = 500;
- y18 = 500;
- y19 = 500;
- y20 = 500;
- go=false;
- dir = 2;
- mouse=false;
- n1->setPosition(core::vector3df(500,0,500));
- n2->setPosition(core::vector3df(500,0,500));
- n3->setPosition(core::vector3df(500,0,500));
- n4->setPosition(core::vector3df(500,0,500));
- n5->setPosition(core::vector3df(500,0,500));
- n6->setPosition(core::vector3df(500,0,500));
- n7->setPosition(core::vector3df(500,0,500));
- n8->setPosition(core::vector3df(500,0,500));
- n9->setPosition(core::vector3df(500,0,500));
- n10->setPosition(core::vector3df(500,0,500));
- n11->setPosition(core::vector3df(500,0,500));
- n12->setPosition(core::vector3df(500,0,500));
- n13->setPosition(core::vector3df(500,0,500));
- n14->setPosition(core::vector3df(500,0,500));
- n15->setPosition(core::vector3df(500,0,500));
- n16->setPosition(core::vector3df(500,0,500));
- n17->setPosition(core::vector3df(500,0,500));
- n18->setPosition(core::vector3df(500,0,500));
- n19->setPosition(core::vector3df(500,0,500));
- n20->setPosition(core::vector3df(500,0,500));
- itemnode->setPosition(core::vector3df(ix,0,iy));
- nd->setPosition(core::vector3df(x,0,y));
- nd->setRotation(core::vector3df(0,180,0));
- go=false;
- }
- Sleep(2);
- xx=x;
- yy=y;
- if (dir==1){x-=0.4; xx=x+10;}
- if (dir==2){x+=0.4; xx=x-10;}
- if (dir==3){y+=0.4;yy=y-10;}
- if (dir==4){y-=0.4;yy=y+10;}
- nd->setPosition(core::vector3df(x,0,y));
- if (loop==40){
- if (unlocked!=0){
- if (ct==1 && unlocked>=1){
- n1->setPosition(core::vector3df(x,0,y));
- x1=xx;
- y1=yy;
- }
- if (ct==2 && unlocked>=2){
- n2->setPosition(core::vector3df(x,0,y));
- x2=xx;
- y2=yy;
- }
- if (ct==3 && unlocked>=3){
- n3->setPosition(core::vector3df(x,0,y));
- x3=xx;
- y3=yy;
- }
- if (ct==4 && unlocked>=4){
- n4->setPosition(core::vector3df(x,0,y));
- x4=xx;
- y4=yy;
- }
- if (ct==5 && unlocked>=5){
- n5->setPosition(core::vector3df(x,0,y));
- x5=xx;
- y5=yy;
- }
- if (ct==6 && unlocked>=6){
- n6->setPosition(core::vector3df(x,0,y));
- x6=xx;
- y6=yy;
- }
- if (ct==7 && unlocked>=7){
- n7->setPosition(core::vector3df(x,0,y));
- x7=xx;
- y7=yy;
- }
- if (ct==8 && unlocked>=8){
- n8->setPosition(core::vector3df(x,0,y));
- x8=xx;
- y8=yy;
- }
- if (ct==9 && unlocked>=9){
- n9->setPosition(core::vector3df(x,0,y));
- x9=xx;
- y9=yy;
- }
- if (ct==10 && unlocked>=10){
- n10->setPosition(core::vector3df(x,0,y));
- x10=xx;
- y10=yy;
- }
- if (ct==11 && unlocked>=11){
- n11->setPosition(core::vector3df(x,0,y));
- x11=xx;
- y11=yy;
- }
- if (ct==12 && unlocked>=12){
- n12->setPosition(core::vector3df(x,0,y));
- x12=xx;
- y12=yy;
- }
- if (ct==13 && unlocked>=13){
- n13->setPosition(core::vector3df(x,0,y));
- x13=xx;
- y13=yy;
- }
- if (ct==14 && unlocked>=14){
- n14->setPosition(core::vector3df(x,0,y));
- x14=xx;
- y14=yy;
- }
- if (ct==15 && unlocked>=15){
- n15->setPosition(core::vector3df(x,0,y));
- x15=xx;
- y15=yy;
- }
- if (ct==16 && unlocked>=16){
- n16->setPosition(core::vector3df(x,0,y));
- x16=xx;
- y16=yy;
- }
- if (ct==17 && unlocked>=17){
- n17->setPosition(core::vector3df(x,0,y));
- x17=xx;
- y17=yy;
- }
- if (ct==18 && unlocked>=18){
- n18->setPosition(core::vector3df(x,0,y));
- x18=xx;
- y18=yy;
- }
- if (ct==19 && unlocked>=19){
- n19->setPosition(core::vector3df(x,0,y));
- x19=xx;
- y19=yy;
- }
- if (ct==20 && unlocked>=20){
- n20->setPosition(core::vector3df(x,0,y));
- x20=xx;
- y20=yy;
- }
- if (ct==unlocked){ct=0;}else if(ct==20){ct=0;}
- ct++;
- }
- loop=0;
- }
- //core::stringw str = L"";
- // str += title;
- // str += " [ Score: ";
- //str += score;
- //str += " ]";
- core::stringw str = L"";
- str += title;
- str += " Score: ";
- str += score;
- str += " TAIL SECTOR: ";
- str += ct;
- str += " X: ";
- str += nd->getPosition().X;
- str += " Y: ";
- str += nd->getPosition().Y;
- str += " Z: ";
- str += nd->getPosition().Z;
- str += "]";
- device->setWindowCaption(str.c_str());
- loop++;
- }
- device->drop();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement