Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Let's make a game in C++ (SDL, OpenGL) - S2E1 - Visual C++ Express

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,070
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 5, 2011

A new season has started. In the first episode we setup Visual C++ 2010 Express, SDL for it and compile and run the game from the previous season.

Previous info video (also post questions for Q&A video there):
http://www.youtube.com/watch?v=6p-fyKva4QY
Next video:
Coming soon

Code:
http://pastebin.com/6kiVheZx

My blog:
http://www.redgamedevblog.blogspot.com/

My Twitter:
http://twitter.com/includeLuka

Please give feedback

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (RedReaper132)

  • @RedReaper132 One problem plz guide...

    I ran the game on my laptop where OpenGL 1.4 is installed. the game run smooth.

    But in my other pc where OpenGL 3.3 is installed it runs very slowly. But when i change the X & Y speed of ball & Bar then it run smooth on PC, But very fast on Laptop. o.O any idea plz help.......

  • @07105006 Hmm it seams that the game runs on a lower framerate than on the laptop. So you have to increase the speed of the objects so it looks the same. You probably have V-Sync enabled on your PC, so the game is limited to 60 FPS and may seam slow, or there is some other problem with the PC where I can't help.

  • For people who don't want to watch the previous videos on code blocks, can u uplode the source code so we can follow with this one !!!

  • @TheKane12YT I uploaded the code and added the link in the description.

see all

All Comments (24)

Sign In or Sign Up now to post a comment!
  • Moar Videos pls

  • @2mustange Because OpenGL is cross platform(He uses linux)... DX10/11 is windows only.

  • i need images :DDDD

  • You should make more videos!! btw I agree with @TortillaGaming why use OpenGL and not DX10/11?

  • Why OpenGL and not DX10/11?

  • where did i find the images

  • I'm looking forward to the continuation of this show! I've been trying to get a footing on C++ and game design but I've been having such a hard time getting direction on what graphics API and if I should stick with C++ or go to python or java or whatever. I'm a fan of platformers aswell and would love to make my own.

  • Lookinf forward to it! :D

  • this is sum good stuff here! SUBBED XD!

  • When i run it i get this error:

    Unhandled exception at 0x68129dce in gameSDL.exe: 0xC0000005: Access violation reading location 0x00000000.

    I even made images and not sure...

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more