Are you going to use OpenGL or the SDL 2D API? (Not that it differs much
beyond the technical details, as long as we’re really talking 2D as opposed
to “3D with 2D style camera”.)
The parallax examples are SDL 2D only, whereas the smoothscroll example
supports SDL 2D as well as OpenGL, selectable by command line switch.
(Smoothscroll is actually intended to demonstrate sub-pixel accurate
positioning for ultra-smooth scrolling, but that’s really just a tweak to
“basic” OpenGL scrolling of tiled backgrounds.)On Wednesday 25 November 2009, at 01.59.34, “Tabris” wrote:
Hi
I have been looking around for a good C (not c++, i dont wanna use objects
yet :x) 2d scrolling camera tutorial…but i havent got any luck.
So…does anyone know of any good tutorial or care to explain to me how to
make a scrolling cam for a 2d platformer?
Thanks in advance =)
–
//David Olofson - Developer, Artist, Open Source Advocate