14 Replies - 1854 Views - Last Post: 29 July 2011 - 07:21 AM Rate Topic: -----

#1 kingfresh13  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 12-July 11

Beginner C++ Game Programming Help

Posted 27 July 2011 - 12:40 PM

Hello everyone, I am learning C++ (reading books right now), and I will be going to school majoring in Computer Science, to learn more programming, but at the moment, I want to make a small basic game in C++.

I've looked around, and I heard isometric games are the easiest to start off with, so I think I want to take that approach (unless it isn't the easiest to start with). Now I am having trouble finding an engine that is "beginner friendly", and I can use to create my first game. I was looking around, and I couldn't find any isometric game engines, that are free. As a beginner, I don't want to pay for a game engine, since I don't know a lot about C++ yet.

Again, I am reading books, and tutorials to help increase my C++ knowledge, but I do want to make a small free game, that I can share online, and stuff like that. It's my first game, so I don't plan on making any money from the game.

Anyways... If anyone can offer some knowledge on what engine I should use, then please inform me. Also, if there are any source codes I can learn from, then please tell me about those as well. And if anyone knows where I can find some pixel assets, or game assets (characters, objects, etc.) for free, please tell me.

GAMES I WOULD LIKE TO MAKE:

Simulation (Sims, Tycoon Games, Etc.)
RPG (Final Fantasy, etc.)
Platform Games
Shooters

Is This A Good Question/Topic? 0
  • +

Replies To: Beginner C++ Game Programming Help

#2 ZOMBIE!!!  Icon User is offline

  • D.I.C Head

Reputation: 27
  • View blog
  • Posts: 206
  • Joined: 28-October 09

Re: Beginner C++ Game Programming Help

Posted 27 July 2011 - 12:58 PM

Making a game, no matter what engine used, takes a good amount of knowledge. Exactly how far are you in your learning?

As general recommendation I would say SFML is one of the more straightforward APIs I've used. SDL seems a little more complex but is also very good. The most simplistic I remember using was Dark GDK

It's all personal preference for the most part. I tend to lean towards SFML.
Was This Post Helpful? 0
  • +
  • -

#3 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 0
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: Beginner C++ Game Programming Help

Posted 27 July 2011 - 12:58 PM

Welcome kingfresh13.

The reason why you can't find anything beginner friendly is because game programming is not beginner friendly. You have a long road ahead in first learning C++, and even better getting into your computer science degree at least, to get some theoretical foundations down before making games.

Focus on one thing at a time with that thing being learning C++.
Was This Post Helpful? 2
  • +
  • -

#4 stayscrisp  Icon User is offline

  • フカユ
  • member icon

Reputation: 1000
  • View blog
  • Posts: 4,181
  • Joined: 14-February 08

Re: Beginner C++ Game Programming Help

Posted 27 July 2011 - 02:19 PM

You need to learn some basics first. Whoever said to you that isometric games are easy to start with is talking s**t. There is a lot involved with any graphical game and you are not ready for anything like that.

The best way to start is to get yourself a book (or learn online) that teaches the basics of *insert desired language* and then you can work from there. Do not dive into SDL, SFML or even Dark GDK until you have some programming experience. You will find that you are just programming away following tutorials without understanding how it all works; Bad idea!
Was This Post Helpful? 1
  • +
  • -

#5 Oler1s  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1395
  • View blog
  • Posts: 3,884
  • Joined: 04-June 09

Re: Beginner C++ Game Programming Help

Posted 27 July 2011 - 02:52 PM

This is a duplicate.

This post has been edited by Oler1s: 27 July 2011 - 02:52 PM

Was This Post Helpful? 1
  • +
  • -

#6 stayscrisp  Icon User is offline

  • フカユ
  • member icon

Reputation: 1000
  • View blog
  • Posts: 4,181
  • Joined: 14-February 08

Re: Beginner C++ Game Programming Help

Posted 27 July 2011 - 03:15 PM

Oh well, I like our answers better. Even though they are similar (which is also good :))
Was This Post Helpful? 0
  • +
  • -

#7 kingfresh13  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 12-July 11

Re: Beginner C++ Game Programming Help

Posted 27 July 2011 - 03:23 PM

View Poststayscrisp, on 27 July 2011 - 03:15 PM, said:

Oh well, I like our answers better. Even though they are similar (which is also good :))


I wanted to get more answers, which is why I posted on multiple sites.

And thank you for all of the replies. I will continue to read up on C++ and then move to game development when I know enough C++
Was This Post Helpful? 0
  • +
  • -

#8 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 0
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: Beginner C++ Game Programming Help

Posted 27 July 2011 - 04:52 PM

View Postkingfresh13, on 27 July 2011 - 11:23 PM, said:

View Poststayscrisp, on 27 July 2011 - 03:15 PM, said:

Oh well, I like our answers better. Even though they are similar (which is also good :))


I wanted to get more answers, which is why I posted on multiple sites.

And thank you for all of the replies. I will continue to read up on C++ and then move to game development when I know enough C++

Were you expecting the answers to differ significantly? What were you expecting, or trying to avoid?
Was This Post Helpful? 0
  • +
  • -

#9 kingfresh13  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 12-July 11

Re: Beginner C++ Game Programming Help

Posted 27 July 2011 - 04:59 PM

View PostButchDean, on 27 July 2011 - 04:52 PM, said:

View Postkingfresh13, on 27 July 2011 - 11:23 PM, said:

View Poststayscrisp, on 27 July 2011 - 03:15 PM, said:

Oh well, I like our answers better. Even though they are similar (which is also good :))


I wanted to get more answers, which is why I posted on multiple sites.

And thank you for all of the replies. I will continue to read up on C++ and then move to game development when I know enough C++

Were you expecting the answers to differ significantly? What were you expecting, or trying to avoid?


Nothing. Some people on that site may not be on this site. So I can get different opinions from different people. Instead of trying to get all my help on one site.
Was This Post Helpful? 0
  • +
  • -

#10 NeoTifa  Icon User is online

  • Whorediot
  • member icon





Reputation: 2699
  • View blog
  • Posts: 15,736
  • Joined: 24-September 08

Re: Beginner C++ Game Programming Help

Posted 28 July 2011 - 12:38 PM

If you want, you can learn Java. It's a little easier than C++ (imho) and there are built in graphics libraries, so you don't have to worry about finding an external library you like.
Was This Post Helpful? 0
  • +
  • -

#11 DivideByZero  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 238
  • View blog
  • Posts: 551
  • Joined: 02-December 10

Re: Beginner C++ Game Programming Help

Posted 28 July 2011 - 01:26 PM

Make a text based game using every concept you learn.

So if you're learning about inheritance, make a text based game using inheritance.
The game can have a base enemy class with loads of different types of enemies for example.
Don't move onto a different concept until you have a working game using the concept you just learnt!

After that, move onto the next concept (for example, polymorphism) and make another text based game using that.
Rinse and repeat :)
Once you have done this for all advanced C++ concepts THEN move onto the graphical side, because that's when shit gets real hard!

Side note: you don't have to make a fresh game for all concepts if you don't want to, add the new concept into a game you've already made.
For example, you can modify your inheritance game to use polymorphism and virtual methods etc etc
Was This Post Helpful? 0
  • +
  • -

#12 NeoTifa  Icon User is online

  • Whorediot
  • member icon





Reputation: 2699
  • View blog
  • Posts: 15,736
  • Joined: 24-September 08

Re: Beginner C++ Game Programming Help

Posted 28 July 2011 - 02:29 PM

Inheritance and polymorphism go hand in hand anyways. XD
Was This Post Helpful? 0
  • +
  • -

#13 DivideByZero  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 238
  • View blog
  • Posts: 551
  • Joined: 02-December 10

Re: Beginner C++ Game Programming Help

Posted 29 July 2011 - 02:21 AM

View PostNeoTifa, on 28 July 2011 - 02:29 PM, said:

Inheritance and polymorphism go hand in hand anyways. XD

Yeah that's true.
I was taught them seperately, we had to make a vehicle program using inheritance.
Then we had to copy the program and change the main class a bit to use polymorphism instead.
Was good doing it that way as we could see why and how it's used :)
Was This Post Helpful? 0
  • +
  • -

#14 stayscrisp  Icon User is offline

  • フカユ
  • member icon

Reputation: 1000
  • View blog
  • Posts: 4,181
  • Joined: 14-February 08

Re: Beginner C++ Game Programming Help

Posted 29 July 2011 - 05:35 AM

But it still used inheritance. So not "instead" :P
Was This Post Helpful? 0
  • +
  • -

#15 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 0
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: Beginner C++ Game Programming Help

Posted 29 July 2011 - 07:21 AM

View PostDivideByZero, on 28 July 2011 - 09:26 PM, said:

Make a text based game using every concept you learn.
...

This is actually not very good advice! What should be done is to learn the concept and justifiably use it in the game. There are two reasons for this:

1. Game programming is not there to teach you a language, it is an activity that you undertake after you have learned a language. This is because game programming somewhat obfuscates programming principles due to its own complexity.
2. It's unrealistic in principle and practice. I am yet to see a game engine that uses everything about C++ - in fact a lot of game code is actually closer to vanilla C, also you will be making your overall game engine a lot more complicated than it need be.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1