PixlCam
2D cameras for games written in TypeScript.
No Dependencies
This library comes with no dependencies, so you it can be used with any framework or just with pure WebGL.
Add Focus to Your Game
With the InfluencedCamera, you can add cues to your game, attracting the camera and thus the attention of the player.
Typesafe
PixlCam makes use of TypeScript to ensure a pleasant and safe development experience!
# What is PixlCam?
A set of 2D cameras for games written in TypeScript:
- A basic camera you can use for simple stuff
- A screen camera for drawing in screen-space coordinates
- A camera that follows your player smoothly
- An influenced camera inspired by the camera from Insanely Twisted Shadow Planet (opens new window).
You'll get a projection and a model-view matrix ready to use, but there are also getters if your setup can't specify a camera matrix.
# Liberal License
Thanks to its zlib/libpng (opens new window) license, users have the freedom to use it, modify it and redistribute as they please. Commercial purposes are perfectly allowed.