It depends a lot on the operating system you are using. As Bubba said, ANSI C is meant to be portable, so most of the graphics functions either need to be called using inline assembly like the stuff...
Type: Posts; User: acas7i11o
It depends a lot on the operating system you are using. As Bubba said, ANSI C is meant to be portable, so most of the graphics functions either need to be called using inline assembly like the stuff...
If you are new to game programming I would suggest using SDL with C++ instead. C# has managed code wich is ok for simple games, but none of the blockbuster titles use because of performance issues.
...
If you are coding in C++ you are better off using vectors for this kind of thing. It gives you the speed of arrays plus a bunch of other features to optimize your code, including array resize, .at()...
I would seriously consider using SDL instead. Using plain GDI for a game is a horrible experience both from the programmer's point of view and the user's point of view. Microsoft created WinG in the...
Check Cone3D Programming - SDL, OpenGL and C++ Tutorials which is a very simple and fast solution.
The main issue here is not even the code. You have to change the way you are doing your game, nobody uses a big image as a background for a game map. What most people do is create tiles that...