+ 15

Is C++ better than C for game development?

3rd Feb 2020, 11:43 PM
Odnantiev
Odnantiev - avatar
58 odpowiedzi
+ 20
Yes, it's not a pure OO language like C# (which is arguably a better language for some games). C++ supports both procedural and Object oriented paradigms, was one of the first major languages to introduce OO concepts and has fast performance. The down side is that the programmer has to keep track of memory management unlike in newer languages like Java and C#, but that maybe a topic for another discussion.
4th Feb 2020, 2:39 AM
Sonic
Sonic - avatar
+ 13
Odnantiev right, and these objects don't always have to move. They could glow, scream, etc. and exhibit different kinds of behaviour. They could be abstract entities too, that are not always visible or tangible. This stuff could be implemented in C too but it's easier to manage using OO languages.
4th Feb 2020, 2:29 AM
Sonic
Sonic - avatar
+ 11
I would say C++ is better than C for more complex games as OO can be used to better model the objects used in the game. But as Ярослав Вернигора(Yaroslav Vernigora) said, C# is another option.
4th Feb 2020, 2:12 AM
Sonic
Sonic - avatar
+ 10
Odnantiev sorry. By OO, I meant object orientation. This means that you can use classes to model the attributes and behaviour of 'objects' within the game.
4th Feb 2020, 2:22 AM
Sonic
Sonic - avatar
+ 5
You are interest only gaming or something else?
4th Feb 2020, 12:27 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 5
4th Feb 2020, 2:33 AM
Sonic
Sonic - avatar
+ 4
Yes I think because C++ is like the pro language of C
4th Feb 2020, 12:59 PM
Nathaniel Temitope Ogunjobi
Nathaniel Temitope Ogunjobi - avatar
+ 4
Cpp Have many of minuses, but pluses too. 1. If you game is platformer, Cpp better. Graphics.h not in C 2. If you game is simple, like that; String a = Console.ReadLine() So, cpp better. ------BUT------ C cool in simple games too. ------ENDBUT------ 3. If your game is VERY hard, using by you heart. So C get Very good CLEAR programming. But cp p is graphics, lines, and very small clear programming -------- C -------- Finnaly, output; 56,8% ONLY GAMES IN PROGRAMMING(CLEAR PROGRAMMING) 43,2% GRAPHICS -------- C++(Cpp) -------- 50% GRAPHICS 30% CLASSES 13,4% CLEAR PROGRAMMING 6,2% STRUCTS 0,3% GET(GETTERS) AND SET(SETTERS) F I N N A L Y --------------MY----SOLVE---------------- I think you must trying write a game on Cpp, and trying write on C Whats you like, on thats write. #HOPEIHELP
4th Feb 2020, 8:57 PM
КРОСОВОчиК
КРОСОВОчиК - avatar
+ 3
Hi! For game development is better C++ or C# (is used in game engines)
4th Feb 2020, 12:21 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 3
You need more tips?
4th Feb 2020, 12:24 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 3
Yes C++ is better then C. But the real question is do you need C++ for the games you want to create?
10th Feb 2020, 11:04 PM
Ricky Steven
Ricky Steven - avatar
+ 3
C++ is best
12th Jul 2020, 8:24 AM
SRIKANTH
SRIKANTH - avatar
+ 2
Hello! Thank you, and yes it would be very cool to get all the tips i can since im just starting to get into programming xd
4th Feb 2020, 12:25 AM
Odnantiev
Odnantiev - avatar
+ 2
Sonic oh ok thank you, also what do you mean by OO?
4th Feb 2020, 2:16 AM
Odnantiev
Odnantiev - avatar
+ 2
Sonic its alright, so basically the things that you control when ur playing the game and the stuff that moves for itself?
4th Feb 2020, 2:24 AM
Odnantiev
Odnantiev - avatar
+ 2
Sonic oh wow ok loool, thanks a lot
4th Feb 2020, 2:33 AM
Odnantiev
Odnantiev - avatar
+ 2
Sonic so that means that C++ is an OO language?
4th Feb 2020, 2:34 AM
Odnantiev
Odnantiev - avatar
+ 2
Sonic Oh ok ok i kinda understand lol thanks :))
4th Feb 2020, 2:45 AM
Odnantiev
Odnantiev - avatar
+ 2
You can start with C++ or C#, but if you want to understand game mechanics, you can try to make games for example in web (javascript and framework Phaser3), in Python (PyGame, RenPy) and others... Games for PC: - Unity (C#), - Cryengine V (C++), - Unreal engine 4 (C++) (games for pc, vr, playstations) JavaScript (Construct 2 engine), Gamemaker(only 2D, without program language) In Python: RenPy (2D) or Pygame 2D engines for beginners: - Stencyl, - RPG-maker, - Ink - free addition for Unity (html, c#). - GameMaker Studio2 (paid 100$, drag&drop technology)
4th Feb 2020, 5:43 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar