0
is there a simple c++ code that can create a game and anyway how do you add graphics to the game using c++
2 odpowiedzi
+ 2
Yes make the snake game before by search on youtube
+ 1
Yes, but you should move away of the idea of creating a game if you haven't programmed before (~5 years, better more, if you learn for yourself, which I assume) and most games are created not only with one language, but with many. (e.g. lua is often used as an extension for c++ when programming)
I know this is not the answer you were looking for, so here is a (not detailed) way of how you could start: (please have in mind that I am not a game developer, so it may vary in the practical execution)
->Get an idea of a good game. (little games can be good, too)
->(that's more of an allrounder for all programmers:) don't recreate the wheel. if you have an idea, there is probably code of this somewhere on the Net, you just have to find it.
-> pick an engine or create one yourself. (<-read yourself into this yourself, but I would recommend doing that step BEFORE beginning building the game)
-> start with some little mechanics, e.g. have one area and test there the movement, fight etc.
->Your basics are finished? perfect, then start writing a storyline (only if your game needs one)
-> next step would be to design some enemies or objectives your character has to achieve.
-> get in touch with an artist or design your character, surroundings and stuff yourself
-> at this point you should be able to let others play your game and tell you what you should add, enhance etc. (this can be called pre-closed-beta, since you let test the mechanics by others)
-> now start implementing your story into the game or design levels/world/whatever you need to let your world "live".
-> this will take the most of the time, so you can start an official closed beta now, so others can play and give input to you.
Yup, that's pretty much then. There are some steps I have ignored, e.g. getting completely mad on the workschedule and overthrow all your work multiple times, but that's a story for another time ;)