Skip to main content
Tweeted twitter.com/#!/StackGameDev/status/31943744114659328
edited tags
Link
Ray Dey
  • 6.9k
  • 3
  • 38
  • 45
Source Link
Mr.Gando
  • 575
  • 7
  • 16

Implementing camera for 2d side scroller game ?

I'm implementing a 2D side scroller for iOS (using C/C++ with OpenGL) (beat'em up style like double dragon/final fight ).

My scenes are composed of one cyclical background image ( the end of the image connects perfectly with the beginning ). This is to produce a cyclical scroll effect.

I was wondering how could I implement a camera that follows my player movement ?

( Resources / Links are greatly appreciated with explanations :) )