I know this might be a half ass question but, I need to learn some stuff for game engines, and just plain game programming. I want to make a game like "I see you" (Basically just a easy short pix-elated game). I already have a program for the art, just I want to learn how to make hallways, doors, then a monster kill the player. But again I need to learn everything about basic programming in C++. Some basic examples of programming would be much appreciated.Like:
Code:
Something
something
/Code
Then what it does, thank you.
And also if you could list some terminology that would also be very appreciated.
I don't think you would use a game engine for something like that.. game engines are for like 3d games or big games I believe you could use SDL for simple graphics or even just make a simple console game like snake where you don't even need graphics you can just use characters to get started with. If there is a will there is a way anything is possible in c++.
You have to crawl before you can walk/run. If you want to skip right to game design get a program that lets you design a game around a template. But if you want to build your own game you need to know enough about programming to work with a programming language. Do the tutorial on this site, it'll probably take a month or two. Then move on from there. Maybe in a year you could make a 3d game if you work at it every day and are good at math.
2-D or 3-D engines? or engines in general? Based on the game you referenced, you're looking at a 3-D game engine, in which case, you're looking at a time-consuming project. I don't mean to sound demotivating, but it's the truth, especially when you know very little about C++. While games and their counterparts, engines, are normally implemented in C++, other languages can be used too such as C# (XNA) or Java.
johnc445 wrote:
"just plain game programming."
Define "plain game programming."
gitblit wrote:
"I don't think you would use a game engine for something like that.. game engines are for like 3d games or big games"
I wouldn't go so far as to disregard an engine as the base of a basic 2-D game. Naturally, a commercial 3-D game-engine like Unreal, CryENGINE and id Tech, are more complex from an architectural stand-point in comparison to a 2-D game-engine.
agnophilo wrote:
"and are good at math."
Not necessarily. There are libraries out there, like Direct-X, that have mathematical utilities for graphic artists -- one could use those utilities until they are proficient with mathematics enough to implement their own maybe.
get a book on programming basics in C++. also the new boston C++ tutorial on youtube is great if you need a visual on how to do things. and the tutorial on this site is an excellent reference to C++.
Ok thank you for all the responses! But I want to build an engine, I don't want to use a program, I want to do this from the ground up! So I will look around this site, but if you know a tut for building a game from the ground up that has the basics, please send it to me.
Ok guys, I am using notepad plus plus and whenever I try to open the program it just brings up the coding. I save it as a .cpp but it doesn't work. Please help.
You need to compile the source code to generate a working program. For this, you need a compiler. There are many compilers out there, but for now, I would suggest using the MinGW compiler which is shipped with Code::Blocks[1].
Ok I am back! Since I have went online, did some tutorials, forgot everything, then remembered this site, I just decided that I want to use code blocks, and gimp for one small game. If anyone could link me a tutorial, or direct to a certain forum thread that would be much appreciated!
Now that I have done some research, looked up a herrendous amount of tutorials, I have a very basic understanding of cpp. But I don't know how to Clear Screen.
Is it system ("Cls")?
Just tell me what the command is.
Do you think I could make a function so it will say "Press enter to continue" and it goes to the \r command? If you know any batch like:
:start
echo.
echo Press "Enter" to continue.
echo.
set /p Enter=
if %Enter% equ (Enter Key I guess?) goto \r
if %Enter% neq Enter goto start