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

Re: SDL Tutorials

Postby kilgariff on Sun May 31, 2009 12:04 am

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."
kilgariff
Chaos Rift Newbie
Chaos Rift Newbie
 
Posts: 17
Joined: Wed May 07, 2008 9:45 pm
Location: Scotland

Re: SDL Tutorials

Postby Bakkon on Tue Feb 16, 2010 4:47 pm

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
Bakkon
Chaos Rift Maniac
Chaos Rift Maniac
 
Posts: 413
Joined: Wed May 20, 2009 3:38 pm
Location: Indiana

Re: SDL Tutorials

Postby MrDeathNote on Tue Mar 16, 2010 6:30 pm

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

Saving the world, one line of code at a time.

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
MrDeathNote
ES Beta Backer
ES Beta Backer
 
Posts: 628
Joined: Sun Oct 11, 2009 10:57 am
Location: Belfast, Ireland

Re: MGWB: Making Games With Ben

Postby Nohbdy on Wed Apr 26, 2017 3:23 pm

https://www.youtube.com/watch?v=FxCC9Ces1Yg&list=PLSPw4ASQYyymu3PfG9gxywSPghnSMiOAW

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. ---
User avatar
Nohbdy
Chaos Rift Newbie
Chaos Rift Newbie
 
Posts: 19
Joined: Sun Apr 15, 2012 6:39 am
Location: Tempe, Arizona (United States of America)

Previous

Return to Programming Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron