Comments (6)
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.
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.
After checking through Google, I've found the reason of the error..
Link Hereand 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.
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.
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.
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)
- Easier to use SetConsoleScreenBufferInfoEx
- olcConsoleGameEngine.h does not display correctly HOT 3
- olcCosoleEngine doesn't work with linux HOT 7
- Non-circular Spline - looks strange or I don't get it :)
- ERROR: SCREEN Height / Font Height Too Big
- olcConsoleGameEngine.h - ERROR: Screen Height / Font Height Too Big
- Unhandled exception thrown: write access violation. this->m_bufScreen was 0x1110112. HOT 2
- Video
- Should reset dw1_step to zero here too.
- OneLoneCoder_olcEngine3D_Part3.cpp line 330 can be deleted
- 3D Graphics Engine Part #3. Clip against the frustum
- onUserSoundSample bug at 127 seconds after start HOT 2
- Not an issue but a request. Hidden line removal
- Small bug with Perlin-like noise generator HOT 1
- 3d console game engine does not display properly in Windows Terminal HOT 3
- Out of bounds? HOT 1
- Missing assets from multiple videos HOT 1
- Shame on David for boasting about his stupidity. HOT 3
- RPG_Main.cpp(55,24): error C2440: '=': cannot convert from 'OneLoneCoder_RPG *' to 'RPG_Engine *' HOT 2
- DDA vMapCheck truncation only works in positive axis
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javidx9.