Orthographic Camera Moving/Panning?

Hi there!

I’m currently trying to implement a simple 2D platform game using oF (and the add-on ofxSpriteSheetRenderer).

Since I want to draw multiple layers (scrolling background, hero, tiles) I’m looking for an easy way to move the camera around.

I’ve done some development in C#/XNA and libgdx before, both platforms provide a few basic classes to setup an Orthographic Camera. I was wondering if oF has similar classes that I could use. I tried to use ofCamera and ofEasyCam but both of them seem to be more oriented towards 3D rather than 2D.

Any pointers?

1 Like