Jump to content

I wrote a 2D camera library in TypeScript, where aim/movement and cues have influence.


Lusito
 Share

Recommended Posts

Hello community,

long-time reader, first time poster. I thought I'd start by sharing something I've been working on recently:

PixlCam is a library inspired by the camera from Insanely Twisted Shadow Planet.

There are a couple of different camera types in it, but the most interesting is the influenced camera, which allows you to:

  • Configure a target

    • A target has a a position, zoom and optionally influence vectors.

    • A target influence can, for example, be used to move the camera in the direction the player is moving and/or aiming.

    • You can switch targets to focus on something different, for example a cinematic event or a missile to be controlled for a short time.

  • Set up visual cues in the world, which attract the camera (both in position and zoom)

  • Configure world boundaries.

Check out the online demo to try it yourself.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...