Public Group

# Can someone link me to some tutorials?

This topic is 1976 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I have a ton of things I want in my SDL game, But I can't find any tutorials on specifically what I want. If someone could link me to a tutorial of anything on the following list. That would be great.

Screen follows player,

Inventory,

Attack/Defense System,

Animations and

And NPC's.

Thanks!

##### Share on other sites

Lazyfoo

http://www.lazyfoo.net/SDL_tutorials/

Best place for SDL by far. 12-12-2012 was the last update so you'll be good. That is where I started when I was learning SDL. I didn't get very far as at the time I was already into Allegro. GL with lazyfoo there is a lot of information there that wasn't 5 years ago when I was learning off lazyfoo.

Edited by 0Circle0

##### Share on other sites
Lazyfoo

http://www.lazyfoo.net/SDL_tutorials/

Best place for SDL by far. 12-12-2012 was the last update so you'll be good. That is where I started when I was learning SDL. I didn't get very far as at the time I was already into Allegro. GL with lazyfoo there is a lot of information there that wasn't 5 years ago when I was learning off lazyfoo.

Thanks. But I can imagine my file becoming very large with everything I want. Do you know of a way to make different files work together in 1 game?

##### Share on other sites

EDIT: Sounds like you want to work with DLL files. Which is not SDL specific but C specific when it comes to programming in SDL.

I always seperated my functions, variables, and DATA files into separate files and put them into *.h headers.

Then in my main.c I'd just do this

#include "data.h"
#include "Variables.h"
#include "Functions.h"

And if you're making a game it is going to be very large to begin with. It is all how you code and how much you are going to put into it. In (WOW)Wrath of the Lich King, there were approximately 5.5 million lines of code in the game, not including database entries and what not. I don't understand what you mean by your game will get big.

Edited by 0Circle0

##### Share on other sites

Ugh. Those tutorials won't work for me. I need a tutorial where you don't have to do ALL the lessons to get to that lesson.

##### Share on other sites
I always seperated my functions, variables, and DATA files into separate files and put them into *.h headers.

Then in my main.c I'd just do this

#include "data.h"
#include "Variables.h"
#include "Functions.h"

And if you're making a game it is going to be very large to begin with. It is all how you code and how much you are going to put into it. In (WOW)Wrath of the Lich King, there were approximately 5.5 million lines of code in the game, not including database entries and what not. I don't understand what you mean by your game will get big.

Thanks. This helps alot.

##### Share on other sites
Lazyfoo

http://www.lazyfoo.net/SDL_tutorials/

Best place for SDL by far. 12-12-2012 was the last update so you'll be good. That is where I started when I was learning SDL. I didn't get very far as at the time I was already into Allegro. GL with lazyfoo there is a lot of information there that wasn't 5 years ago when I was learning off lazyfoo.

Thanks. But I can imagine my file becoming very large with everything I want. Do you know of a way to make different files work together in 1 game?

First learn the language. If you don't know how to use the header files, it means that you don't know the language.

##### Share on other sites

Like this? http://www.mediafire.com/?r0c53brcp8nh6ht Sorry that it is in Allegro, and many years old, but you'll see the source.

##### Share on other sites
Ugh. Those tutorials won't work for me. I need a tutorial where you don't have to do ALL the lessons to get to that lesson.

I am unfamiliar with a way of learning where you don't need any information about how it works or how it can be applied without investigation of what you're working with.

That would be like building a spaceship right now with only what you know at this exact moment.

Or writing a game in SDL right now with only what you know at this exact moment. Wouldn't be possible.

Edited by 0Circle0

##### Share on other sites
Ugh. Those tutorials won't work for me. I need a tutorial where you don't have to do ALL the lessons to get to that lesson.

I am unfamiliar with a way of learning where you don't need any information about how it works or how it can be applied with out investigation of what you're working with.

That would be like building a spaceship right now with only what you know at this exact moment.

I do want to know how it works, But I don't want to do 19 other lessons just to finally get my animations done.

1. 1
2. 2
3. 3
4. 4
Rutin
18
5. 5

• 11
• 22
• 12
• 12
• 11
• ### Forum Statistics

• Total Topics
631406
• Total Posts
2999905
×