OneLoneCoder / Javidx9

The official distribution of Javidx9's YouTube videos and projects
http://www.youtube.com/javidx9
Other
2.1k stars 1.29k forks source link

olcConsoleGameEngine.h does not display correctly #57

Open ekyne opened 3 years ago

ekyne commented 3 years ago

I have been following the 3D Graphics Engine tutorials which use olcConsoleGameEngine.h. However, when I run the code, the console window appears shrunk and is no longer running. The other engines seem to run fine, so the issue isn't on Visual Studio's end. Has anyone else encountered the same issue?

Coder-Rahul-Y commented 3 years ago

I copied the code to my visual studio and pasted it in a new header file.

But it's showing many compile time error. At line: 98 102 255 Etc etc.

Can you suggest something

lucasig11 commented 3 years ago

I had the same issue and fixed it by changing the pixel size values from the ConstructConsole function from 4 to 2.

int main()
{
    olcEngine3D engine;

    if (engine.ConstructConsole(256, 240, 2, 2))
        engine.Start();
    return 0;
}
Manar-hub commented 3 years ago

Tried all sizes, didn't work.