Hi, I have a question. What do I need to know to crearte a sidescroller in c++ and sdl?
Thanks.
Sdl sidescroller
Moderator: Coders of Rage
- Indie Tom
- 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
Code::Blocks and Coke.
- lalacomun
- 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
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!!
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!!
- dandymcgee
- 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
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!
- OmenFelix
- 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
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. :3Indie Tom wrote:Hi, I have a question. What do I need to know to crearte a sidescroller in c++ and sdl?
Thanks.
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
Or my 2D RPG at: https://www.facebook.com/pages/Arcadian ... 6873806531
- thejahooli
- Chaos Rift Junior
- Posts: 265
- Joined: Fri Feb 20, 2009 7:45 pm
- Location: London, England
- OmenFelix
- 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
Hah! Forgot about that. My bad. :Pthejahooli wrote:9.81ms^-2OmenFelix wrote:9.81ms^2
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
Or my 2D RPG at: https://www.facebook.com/pages/Arcadian ... 6873806531
- dandymcgee
- 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
More often written as 9.81 m/s^2thejahooli wrote:9.81ms^-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!