Sdl sidescroller

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

Post Reply
User avatar
Indie Tom
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 8
Joined: Tue Apr 03, 2012 1:05 pm
Current Project: Stealthy game.
Favorite Gaming Platforms: nes, DOS etc.
Programming Language of Choice: c++, java, html.
Location: Torp

Sdl sidescroller

Post by Indie Tom »

Hi, I have a question. What do I need to know to crearte a sidescroller in c++ and sdl?

Thanks.
Code::Blocks and Coke.
User avatar
lalacomun
VS Setup Wizard
VS Setup Wizard
Posts: 114
Joined: Wed Dec 28, 2011 10:18 pm
Favorite Gaming Platforms: psx, nintendo ds, gameboy advance, xbox 360, ps2
Programming Language of Choice: C++
Location: Argentina
Contact:

Re: Sdl sidescroller

Post by lalacomun »

Well as your question sais you need a good knowledge of C++ and SDL, but if you are asking specially what you need to know i think with this will be enought:
C++:
-Pointers
-Arrays
-Inheritance
-Funtions
-Subrutines
-References
-Data Structures

SDL:

-Loading/Render images
-Events handling
-Text rendering (SDL_ttf)
-Effects/Music load & play (SDL_mixer)

AND THE MOST IMPORTANT THING:

-Good understanding of game logic!! ;)
Image
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Sdl sidescroller

Post by dandymcgee »

Start making one. When you get stuck ask yourself what you don't understand that is holding you up. Go learn that, continue work, rinse and repeat.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
OmenFelix
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 59
Joined: Fri May 04, 2012 1:42 pm
Current Project: Arcadian Descent(C++, SDL, KOS)
Favorite Gaming Platforms: PS2, PC, XBOX, NDS
Programming Language of Choice: C/C++

Re: Sdl sidescroller

Post by OmenFelix »

Indie Tom wrote:Hi, I have a question. What do I need to know to crearte a sidescroller in c++ and sdl?

Thanks.
By sidescroller do you mean a platformer? As in one that would require gravity? If so, then you're going to be needing the necessary statistics and calculations for such a thing in order to implement a gravity algorithm. :) Like the gravitational-acceleration constant is 9.81m/s^-2 etc. :3

I'm not going to add anything else as the other reps seem to have pretty much covered it.
Last edited by OmenFelix on Thu May 10, 2012 5:57 pm, edited 2 times in total.
Why not check out my game-development forum at: http://f1rel0ck.netai.net
Or my 2D RPG at: https://www.facebook.com/pages/Arcadian ... 6873806531
Image
Image
Image
User avatar
thejahooli
Chaos Rift Junior
Chaos Rift Junior
Posts: 265
Joined: Fri Feb 20, 2009 7:45 pm
Location: London, England

Re: Sdl sidescroller

Post by thejahooli »

OmenFelix wrote:9.81ms^2
9.81ms^-2
I'll make your software hardware.
User avatar
OmenFelix
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 59
Joined: Fri May 04, 2012 1:42 pm
Current Project: Arcadian Descent(C++, SDL, KOS)
Favorite Gaming Platforms: PS2, PC, XBOX, NDS
Programming Language of Choice: C/C++

Re: Sdl sidescroller

Post by OmenFelix »

thejahooli wrote:
OmenFelix wrote:9.81ms^2
9.81ms^-2
Hah! Forgot about that. My bad. :P
Why not check out my game-development forum at: http://f1rel0ck.netai.net
Or my 2D RPG at: https://www.facebook.com/pages/Arcadian ... 6873806531
Image
Image
Image
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Sdl sidescroller

Post by dandymcgee »

thejahooli wrote:9.81ms^-2
More often written as 9.81 m/s^2

Regardless, these numbers are not useful for a general platformer game. Acceleration in a game is in pixels / frames not meters per second. You can define some arbitrary conversion factor from meters to pixels, but that's generally overkill unless you're trying to create an extremely accurate physics simulation which generates usable experimental data.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
Post Reply