Jump to content

PcWizKid

Members
  • Posts

    106
  • Joined

  • Last visited

Posts posted by PcWizKid

  1. I just wrote the simple program in c++ and tried compiling it I keep getting a few errors that i cant seem to fix.

     

    here is my code:

    #include "Engine.h"

     

    int main(int argc, char** argv)

    {

    //Load engine Dll

    Initialize();

     

    //Create Main Game graphics window

    Graphics (800,600,0,0,GRAPHICS_BACKBUFFER+GRAPHICS_DEPHBUFFER);

     

    //Create World

    ;CreateWorld();

     

    //Create a camera

    TEntity cam;

    cam=CreateCamera(0);

    MoveEntity(cam,Vec3(0,0,-5));

     

    //Create Cube

    CreateCube(0);

     

    //MainLoop

    while (!KeyHit(KEY_ESCAPE)) {

    //UpdateWorld

    UpdateWorld(1);

     

    //Render the world

    RenderWorld(RENDER_ALL);

     

    //FLip Buffer

    Flip(1);

     

    }

     

    Terminate();

     

    return 0

     

     

    }

     

     

     

     

    }

     

     

     

     

    and here are the errors im getting

    1>------ Build started: Project: DarkAge, Configuration: Debug Win32 ------

    1>Compiling...

    1>DarkAge.cpp

    1>c:\users\pointersoftworks\desktop\projects\darkage\darkage\darkage.cpp(20) : error C2065: 'GRAPHICS_DEPHBUFFER' : undeclared identifier

    1>c:\users\pointersoftworks\desktop\projects\darkage\darkage\darkage.cpp(51) : error C2143: syntax error : missing ';' before '}'

    1>c:\users\pointersoftworks\desktop\projects\darkage\darkage\darkage.cpp(56) : error C2059: syntax error : '}'

    1>c:\users\pointersoftworks\desktop\projects\darkage\darkage\darkage.cpp(56) : error C2143: syntax error : missing ';' before '}'

    1>c:\users\pointersoftworks\desktop\projects\darkage\darkage\darkage.cpp(56) : error C2059: syntax error : '}'

    1>Build log was saved at "file://c:\Users\PointerSoftworks\Desktop\Projects\DarkAge\DarkAge\Debug\BuildLog.htm"

    1>DarkAge - 5 error(s), 0 warning(s)

    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

  2. ok i did everything u said but an error comes up saying "failed to open Fpscontroller.lua"

     

    And then amother saying " ')' expected near 'GraphicsWitdth' "

     

     

    P.S I also saw the "VisualKnights Developer Diary - 1 - Mission Tab" video. It looks great!!

  3. i have made a door model in blender and textured it and everything but now this is what i need: You walk up to the door and it displays a message on the screen "Press E to use" then when you press E the door opens. how might I do this? :)

     

     

    thanks,

    Garrett

×
×
  • Create New...