Learn C++ Game Development

C++ game development course for beginners.
  • Lectures 43
  • Video 5 Hours
  • Skill level beginner level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

Course Description

Learn C++ game development is a course I made for everyone who knows how to program, but doesn't know where to start with game development. The course teaches you how to use the SFML library for C++, to start working with graphics, events and sound to create a 2D game. Everything is done step by step with the help of videos, so it's easy to follow along and learn. At the end of the course you will know what you need for game programming and will be able to start making your own games.

Warning: This course was published more than 2 years ago and the technology used in it progresses fast. The current most updated version of SFML (2.1) doesn't work out of the box with Visual Studio 2013 (or the express editions) and it requires more work to setup. If you want to follow this course easily, then you should use the 2012 or older version of Visual Studio (or the express edition) which can still be officially downloaded from Microsoft site.

What am I going to get from this course?

  • Over 43 lectures and 4 hours of content!

What you get with this course?

Not for you? No problem.
30 day money back guarantee

Forever yours.
Lifetime access

Learn on the go.
Desktop, iOS and Android

Get rewarded.
Certificate of completion

Curriculum

02:34

A welcome video where I explain what you need for the course, what you will learn and how it's going to progress.

Section 1: Lesson 1: Setup
12:55

A new video, where I will show you how to prepare you environment, so you can continue with the course using the latest Visual Studio 2013 and SFML 2.1. You can skip lecture "Installing Visual C++" and "Installing SFML" if you use this video.

Made because there were many questions on how to use the latest software with this course.

The microphone quality is a little bad and some words are muffled, but I hope this video will help everyone out there.

07:23

In this video I show how to install Visual C++ Express 2010.

Link to the site:

http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express

09:27

In this video I show how to prepare te library SFML to use it with Visual C++.


Link for the download:

http://www.sfml-dev.org/download/2.0-rc/SFML-2.0-rc-windows-32-vc2010.zip

Section 2: Lesson 2: The window
11:45

In this video I show you how to create the project in Visual C++.

08:06

In this video I show you how to create a simple window for the game.

07:24

in this video I show you how the basic game loop is constructed.

1.29 MB

If you want you can download the file, extract it and then open the solution with Visual C++ Express.

Section 3: Lesson 3: Events
09:59

In this video I show and explain to you how to use keyboard events in SFML.

11:41

In this video I show and explain to you how we can use a state based system to separate events from logic.

1.29 MB

If you wish you can download, extract and open the file to see how the project should look like by now.

11:34

In this video I show and explain to you how we can use mouse events for our game.


NOTE:

There is a faulty line of code:

int mouseX, mouseY;

Replace it with:

int mouseX = 0, mouseY = 0;
1.29 MB

If you wish you can download, extract and open the file to see how the project should look like by now.

Text
Here are some exercises for "Lesson 3: Events". These exercises will test if you understood how to use events and separate events from logic. The exercises go from the easiest to the hardest, but are all solvable with some logical thinking. After you finished the exercises or if you don't know one y…
12:58

In this video I show you the solutions for the exercises.

Section 4: Lesson 4: Drawing or rendering
15:32

In this video I show and explain to you how to draw simple shapes like a rectangle and a circle.

1.29 MB

If you wish you can download, extract and open the file to see how the project should look like by now.

09:31

In this video I show and explain to you how to create a simple image, load it and render it in the game.

Link to GIMP website:

http://www.gimp.org/

03:57

In this video I show and explain to you how to find an image and then prepare it for use in the game.

Link to OpenClipArt website:

http://openclipart.org/

1.64 MB

If you wish you can download, extract and open the file to see how the project should look like by now.

07:54

In this video I show and explain to you how to load and render fonts in the game.

I have gotten a notice so I will post this here. If you are planning on releasing your games in the future, then don't use Microsoft fonts, but find some free and open sourced ones on the web. They are really easy to find, and you can avoid licensing problems.

2.05 MB

If you wish you can download, extract and open the file to see how the project should look like by now.

Section 5: Lesson 5: Sounds and music
03:59

In this video I show and explain to you how to prepare the project in order to be able to use sounds and music in the game.

07:06

In this video I show and explain to you how to create a simple sound using a website and then load and play it in the game.

Link to site:

http://www.bfxr.net/

2.72 MB

If you wish you can download, extract and open the file to see how the project should look like by now.

05:10

In this video I show and explain to you how to find and prepare music to load and play it in the game.

Websites:

http://www.jamendo.com/en

http://media.io/

2.78 MB

If you wish you can download, extract and open the file to see how the project should look like by now.

Section 6: Lesson 6: Game mechanics
09:32

In this video I show and explain to you how to use what we have learned till now to create some simple game logic.

2.66 MB

If you wish you can download, extract and open the file to see how the project should look like by now.

12:42

In this video I show and explain to you how to create simple movement with events and rendering.

2.66 MB

If you wish you can download, extract and open the file to see how the project should look like by now.

08:59

In this video I show and explain to you how basic collision works.

2.66 MB

If you wish you can download, extract and open the file to see how the project should look like by now. 

Section 7: Lesson 7: Creating the game "Pong"
07:48

In this lesson we take a look at the resources we are going to use in the game. We also prepare our code and load eveything.

3.41 MB

Download the zip and extract it. In it you will find the data folder with the files and the project.

07:46

In this video we get the images on the screen using shapes.

3.41 MB

If you wish you can download, extract and open the file to see how the project should look like by now. 

15:12

In this video we add movement to the pad and the ball.

3.41 MB

If you wish you can download, extract and open the file to see how the project should look like by now. 

10:24

In this video we create a very simple AI for the 2nd pad, and we add collision check for the ball.

3.41 MB

If you wish you can download, extract and open the file to see how the project should look like by now. 

12:34

In this video we finish up our game.

7.03 MB

If you wish you can download, extract and open the file to see how the project should look like by now. 

Instructor Biography

Luka Horvat , Independent Game programmer, designer

Luka is an independent game programmer and designer with much experience from different projects and many different programming languages. He has been interested in computer science and programming from his early years. That, and a passion for games lead him into the field of video game design and programming. In 2011 he started making tutorials on game development, and has now moved to Udemy to continue teaching others how to make games.

Join the biggest student community

6,400,000

Hours of video content

29,000,000

Course Enrollments

7,900,000

Students

Reviews

Average Rating
4.5
Details
  1. 5 Stars
    136
  2. 4 Stars
    49
  3. 3 Stars
    14
  4. 2 Stars
    7
  5. 1 Stars
    3
    • Amadeus J

    Doesn't go deep enough into Game Programming

    He kinda skims the service, and spends too much time in the beginning making what the library already gives as a boilerplate. He could easily have run through the boiler plate and gotten into more advanced gaming topics.

    • Haley Valletta

    A very basic course with a horribly outdated setup process

    This course only gets useful halfway in. The first half is all about setting up SFML, which would be good IF his version of Visual Studios wasn't five years out of date. In the end I had to switch to Xcode because it was the only way SFML would load textures. Even following his specific instructions and building from the source code only got me so far. With an updated setup for the new visual studios and more in depth look into the functions, how they work, and how to fix the programing bug that was shown in the last lecture but never addressed, I would rate higher. I give it a two because at the very least it gave me a very general knowledge of how to load things in and bind keys, as well as program simple AI. If you can find another class on C++ game logic, I'd give this one a pass.

    • Anthony Collado

    Not bad, but not good either

    Getting everything installed is confusing due to the fact that he's using older versions. He explains every line of code within this course, but that's about it. Seems more like a copy and paste type of deal with vague explanations. If you already know C++, and want to expand your learning about game development then try this course out. It's awesome making the game, but you probably won't be able to move on to more advanced game programming with this course. It's more of a "cool I made a game" than a "cool I can make game(s)" type of course.

    • Marcius Oliveira

    Muito explicativo

    O curso é bem legal, bem simples mas o professor desenvolve bem o assunto

    • Rob Howard

    Great introductory course

    I have to say, I was a little skeptical at the beginning of the course, but Luka does a wonderful job of explaining the basics of SFML!! For the cost of the course, it is a real bargain and gives you a basis to start SFML programming. I look forward to continuing with SFML and working on some more advanced items in the future.

Show more reviews
Ready to start learning?
Preview this course