GithubHelp home page GithubHelp logo

Comments (6)

gurkanctn avatar gurkanctn commented on July 19, 2024

After checking through Google, I've found the reason of the error..
Link Here

and the reason is the size of the screen. 160x100 did not work, 40 x 40 did work.
Here's the working line:
demo.ConstructConsole(40, 40, 8, 8);

from javidx9.

OneLoneCoder avatar OneLoneCoder commented on July 19, 2024

Yes, the console needs to fit on the primary display of the computer, so the resolution multiplied by the character size must remain less than your desktop resolution. Rather than lowering the resolution, you can also lower the character size, which is visually a little more appealing

from javidx9.

UncleBob2 avatar UncleBob2 commented on July 19, 2024

After checking through Google, I've found the reason of the error..
Link Here

and the reason is the size of the screen. 160x100 did not work, 40 x 40 did work.
Here's the working line:
demo.ConstructConsole(40, 40, 8, 8);

I am unable to view the link. Can you tell us how to solve this problem again as I am unable to find the size of the screen "160x100 did not work, 40 x 40 did work."

from javidx9.

UncleBob2 avatar UncleBob2 commented on July 19, 2024

I thinking that I got it working now:

int main()
{
OneLoneCoder_PathFinding game;
game.ConstructConsole(160, 160, 5,5);
game.Start();
return 0;
}

from javidx9.

gurkanctn avatar gurkanctn commented on July 19, 2024

After checking through Google, I've found the reason of the error..
Link Here
and the reason is the size of the screen. 160x100 did not work, 40 x 40 did work.
Here's the working line:
demo.ConstructConsole(40, 40, 8, 8);

I am unable to view the link. Can you tell us how to solve this problem again as I am unable to find the size of the screen "160x100 did not work, 40 x 40 did work."

I couldn't access the link either. However, the solution to my problem was the construct line of the application:
The engine constructs the screen by the line:
demo.ConstructConsole(Width, Height, size_of_pixel_x, size_of_pixel_y);

from javidx9.

UncleBob2 avatar UncleBob2 commented on July 19, 2024

After checking through Google, I've found the reason of the error..
Link Here
and the reason is the size of the screen. 160x100 did not work, 40 x 40 did work.
Here's the working line:
demo.ConstructConsole(40, 40, 8, 8);

I am unable to view the link. Can you tell us how to solve this problem again as I am unable to find the size of the screen "160x100 did not work, 40 x 40 did work."

I couldn't access the link either. However, the solution to my problem was the construct line of the application:
The engine constructs the screen by the line:
demo.ConstructConsole(Width, Height, size_of_pixel_x, size_of_pixel_y);

I believe OneLoneCoder has changed the source code from demo.ConstructConsole to game.ConstructConsole; hence, I was unable to find demo.ConstructConsole before. Now everything make sense. Many thanks.

from javidx9.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.