Advertisement

How to start making games?!

Started by January 17, 2017 07:05 PM
10 comments, last by Alberth 7 years, 11 months ago

Hello, guys! My problem is that I know C++ on a middle level, I've read couple of books, but I don't know how to even write games! Yeah, sure, I know structures, algorithms and I can write classes if you want, but I don't know how to write games! Can you guys give me some advises please? I just want to know how to make video-games using C++. Please, don't suggest me some engines, cuz I want to get a deep understanding of game making to get the job that I want. I have learned SDL2 a bit, but again I can't move further than a basic window with some sprites, that I loaded.

P.S. Sorry for my English, I know it is bad, just because it's not my native language.

I have learned SDL2 a bit, but again I can't move further than a basic window with some sprites, that I loade

Sounds like you should be able to use that knowledge and move some sprites around based on user input.

With that, you can start making clones of Pong, Breakout, Pac-man, etc. Gradually making more and more complex games.

Hello to all my stalkers.

Advertisement

I have learned SDL2 a bit, but again I can't move further than a basic window with some sprites, that I loade

Sounds like you should be able to use that knowledge and move some sprites around based on user input.

With that, you can start making clones of Pong, Breakout, Pac-man, etc. Gradually making more and more complex games.

Yeah, I thought about it, but how can I start?

Yeah, I thought about it, but how can I start?

You said you can open a window, and load + draw sprites, correct?

That is already a start. Just go from there.

Figure out to move the ball in Pong.

Figure out how to read input so that you can use that input to move the player's paddle.

Create rules for the AI to follow when moving the computer's paddle.

Figure out how to keep track of score and displaying it.

Maybe add a menu to restart or quit.

Break things down into tasks that are managable, figure out what you need to learn if you don't know it yet, and just do it.

Hello to all my stalkers.

Yeah, I thought about it, but how can I start?

You said you can open a window, and load + draw sprites, correct?

That is already a start. Just go from there.

Figure out to move the ball in Pong.

Figure out how to read input so that you can use that input to move the player's paddle.

Create rules for the AI to follow when moving the computer's paddle.

Figure out how to keep track of score and displaying it.

Maybe add a menu to restart or quit.

Break things down into tasks that are managable, figure out what you need to learn if you don't know it yet, and just do it.

It sounds too easy, but I think you right! I should try it right now! Thanks, man)

As Lactose said, you really just have to decide what you want to happen in your games and make it happen. Make a basic game loop that handles game objects. Make different objects that has functions for handling logic and interaction between the objects and functions for rendering and just experiment around with making the objects behave in different ways. Start simple and then try something bigger. Once you have gotten into it a bit more, I would definitely recommend reading the book Game Programming Patterns as it can help a quite a bit with getting better structure and design of your game code, although it doesn't focus on teaching the basics of programming game behaviour. Good luck!

Advertisement

I would definitely recommend reading the book Game Programming Patterns as it can help a quite a bit with getting better structure and design of your game code, although it doesn't focus on teaching the basics of programming game behaviour. Good luck!

Ok than, thanks!

Download a c++ game off the internet. Study it, change it, refactor it, claim it and then blam, your game is made.

Hey you want my old demo to get started? I had this game demo I made a while back before I flipped my code to have polymorphism just because I wanted to say I can use polymorphism.

Please, don't suggest me some engines, cuz I want to get a deep understanding of game making to get the job that I want.
dude I feel for you, cause this is about where I am too. I don't want some one to hold my hand through the process like unity or unreal does, but I do wanna make a real game. here is what I've learned recently. video game programmers can be broken roughly into 2 categories. Those who use game engines and those who make game engines. game engines themselves aren't crutchs, they are the product of people like you and me who want to know the deeper things. That being said, engines are the results of teams of people working for years, creating tools, and helper programs to make a single game. look at Crysis(Cryengine), Unreal Tournament(UE4), etc. they then reuse that work and sell it to others.

to answer your question:

I'm not sure of your skill level but I'm assuming you know what a library is. (IE: #include <iostream>)

you can build your own franken-engine using the host of open source libraries out there. be cautioned, this will involve a lot of non-game development programing to get it to work properly. here are some of the most popular libraries:

Graphics:

  • Irrlicht
  • Ogre3d
  • sfml
  • horde3d
  • search google 'graphics library for c++'

Physics:

  • Bullet3d
  • box2d(2d)
  • Nvidia's PhysX

?Sound

  • irrClang

Download a c++ game off the internet. Study it, change it, refactor it, claim it and then blam, your game is made.

I heard about it and I even have a github account, I tried few times, but I can't understand where to start. How to understand somebody's code?

Hey you want my old demo to get started?

Yeah, it would be nice)


I don't want some one to hold my hand through the process like unity or unreal does

It's exactly what I think!) Thanks for libs, I'll try it immediately)

This topic is closed to new replies.

Advertisement