SDL Tutorials

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

kilgariff
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 17
Joined: Wed May 07, 2008 8:45 pm
Current Project: ArkEngine, Regalia
Favorite Gaming Platforms: PC (Linux, Windows)
Programming Language of Choice: C++ and Assembly
Location: Scotland
Contact:

Re: SDL Tutorials

Post by kilgariff »

Daxtorax wrote:I've tried to follow lazyfoo's tutorials, but I come up with one of two errors depending on how I change the include heading.
When the include is, #include "SDL.h" I get the following error:
fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
I get this error even after I add the SDL.dll to my project folder. I then saw on there that you can instead change the include to #include "SDL.h", I try this, but then I get the error:
fatal error C1189: #error : You should copy include/SDL_config.h.default to include/SDL_config.h
I looked in the include folder in SDL and found the SDL_config.h but don't understand how to add the default to the SDL_config.h?
I'm sorry if I'm asking a newbish question, I just don't know how to solve it, I've tried searching google, any help is greatly appreciated.
In case you didn't get this figured out, I think you may need to include "SDL/SDL.h", if your include directory has an SDL subdirectory.
Carmack: "The most important thing is to try and learn things deeply. Don't try for a superficial knowledge of a lot of things. I've gotten where I am from knowing everything deeply, down to the lowest level."
User avatar
Bakkon
Chaos Rift Junior
Chaos Rift Junior
Posts: 384
Joined: Wed May 20, 2009 2:38 pm
Programming Language of Choice: C++
Location: Indiana

Re: SDL Tutorials

Post by Bakkon »

I wrote an article for SDLTutorials.com on pixel perfect collision detection. Some of you would probably enjoy it.

http://www.sdltutorials.com/sdl-per-pixel-collision/
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: SDL Tutorials

Post by MrDeathNote »

Bakkon wrote:I wrote an article for SDLTutorials.com on pixel perfect collision detection. Some of you would probably enjoy it.

http://www.sdltutorials.com/sdl-per-pixel-collision/
Nice article, i've bookmarked it in case i need to steal it in the future lol, thanks for the post
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
User avatar
Nohbdy
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 19
Joined: Sun Apr 15, 2012 5:39 am
Current Project: Learning C++
Favorite Gaming Platforms: Anything capable of expanding the mind.
Programming Language of Choice: C++
Location: Tempe, Arizona (United States of America)

Re: MGWB: Making Games With Ben

Post by Nohbdy »

https://www.youtube.com/watch?v=FxCC9Ce ... PghnSMiOAW

NOTE: Type everything alongside the videos. Though IDE troubles might be the most problematic(it was for me, then again I stuck with Code::Blocks.)
Uses SDL2, OpenGL, GLEW, and just about everything is from scratch other than a copy-paste of picoPNG. Later on is Box2D and CEGUI(haven't reached).
  • #1-3 are installs.
  • By #6 you've got your first Triangle. #9 You begin GLSL shaders.
  • #20 You separate engine from game and got yourself your own library.
  • #30-33 is a top-down zombie shooter(I got stuck here due to a bug, but will easily start over from scratch).
So, I'm probably going to recommend this one out the wazoo each time it fits a request... but AYE!
I skipped the first tutorial playlist and jumped to "Advanced C++/Graphics Programming". I truly do believe this is one of the best I've found.
He got a job working on something for Guild Wars 2, so they stop at video 58, but pshh... just getting to the 30th was mind-blowingly educational beyond all I've seen to date, and at that point you have created a library and are working on a top-down zombie shooter.

Look into his own game "Seeds of Andromeda" for some confirmation of skills. Confidence in understanding gained from his explanations during the tutorials especially.
--- Knowledge is knowing a tomato is a fruit. Wisdom is knowing not to put it in fruit salad. ---
Post Reply