Skip to content

Archieeeeee/smoothcam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Smooth 2D Game Camera

This is an attempt at implementing a smooth camera movement algorithm for 2D games. It was inspired by this amazing demonstration of "Insanely Twisted Shadow Planet": http://www.youtube.com/watch?v=aAKwZt3aXQM

Implemented Features

  • Camera looking ahead based on the movement of the player
  • Moving focus to Points of Interest with inner and outer area of influence
  • Bounding Box to keep the player on screen
  • Repulsive Points to push the camera away
  • Zooming
  • Integration with Universal Tween Engine (http://www.aurelienribon.com/blog/projects/universal-tween-engine/)

Possible Future Features

  • Player aiming (as seen in ITSP)
  • Overlapping Points of Interest
  • Camera Snapping to one axis (maybe needed for platformers?)

libGDX Demo

See it in action: http://youtu.be/kemOSApi9WU

A demo application and debug renderer for the libGDX framework are included. It uses Box2D to handle collision detection and player movement. Learn more about libGDX here: http://libgdx.badlogicgames.com/

About

Smooth Camera for 2D Games (libGDX Demo included)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published