#Making games in C++

25 messages · Page 1 of 1 (latest)

junior panther
#

Hi, I've been learning C++, too make games with with. But an issue I have is, what do I need to / should learning in order to make games in C++? I've looked it up but, annoyingly all I get was a result are courses. If someone can give me tips on what I should learn would be heavily appreciated!

cerulean ploverBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

shy mantle
#

just make games!

#

you'll learn along the way

#

you can start with simple text-based console games

#

work your way up

junior panther
#

Ahhh

#

Get hands on visual experience with coding!

#

I see

worldly fox
shy mantle
low mango
#

100% what @shy mantle said. just start exploring some libraries or game engines you can use to build something simple as a first project. try making something like pong, tetris, snake, etc. those types of games will give you an idea of the types of problems and design patterns you'd use to make a game, then just work your way up to more complicated games once you have a decent understanding of how things should work at a high level.

there are a decent amount of popular libraries that offer the basic functionality you need to start (some are lower level C libraries that would lead you to having to build out more of the foundation of a game, others are higher level C++ libraries that give you a bit of a head start):
https://github.com/raysan5/raylib
https://github.com/libsdl-org/SDL/tree/main
https://github.com/mosra/magnum
https://docs.godotengine.org/en/stable/tutorials/scripting/gdextension/gdextension_cpp_example.html

most libraries like that also have decent collections of tutorials/guides to get you started:
https://github.com/mosra/magnum-examples
https://doc.magnum.graphics/magnum/example-index.html
https://www.raylib.com/examples.html

haughty torrent
#

raylib definitely best one imo

shy mantle
#

I like C++ better

#

it actually has a C++ api

#

as opposed to SDL and raylib which are basically C apis

haughty torrent
#

even if raylib is C, it has the easiest api

#

and tons of code examples

#

but if you really want c++ i suggest SFML

low mango
#

yeah SFML is another good one to add to that list. it'd sit somewhere between raylib and magnum when it comes to difficulty & features most likely

gloomy relic
junior panther
#

Thank you @shy mantle and @low mango !

cerulean ploverBOT
#

@junior panther Has your question been resolved? If so, type !solved :)

junior panther
#

!solved