# PixlCam
(opens new window) (opens new window) (opens new window) (opens new window) (opens new window)
A set of 2D cameras for games written in TypeScript:
- A basic camera (opens new window) you can use for simple stuff
- A screen camera (opens new window) for drawing in screen-space coordinates
- A camera that follows (opens new window) your player smoothly
- An influenced camera (opens new window) 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.
# Fair Warning
The compile target of this library is es2015, so if you want to support older browsers, you'll have to ensure that this module is being transpiled to an older es version during your build-process.
# Get started
- Read the documentation (opens new window)
- Look at the example (
example/*.ts
). - Ask questions if the above doesn't clarify something good enough.
# Report issues
Something not working quite as expected? Do you need a feature that has not been implemented yet? Check the issue tracker (opens new window) and add a new one if your problem is not already listed. Please try to provide a detailed description of your problem, including the steps to reproduce it.
# Contribute
Awesome! If you would like to contribute with a new feature or submit a bugfix, fork this repo and send a pull request. Please, make sure all the unit tests are passing before submitting and add new ones in case you introduced new features.
# License
PixlCam is licensed under the zlib/libpng (opens new window), meaning you can use it free of charge, without strings attached in commercial and non-commercial projects. Credits are appreciated but not mandatory.
Exports →