rickbatka / co-op-engine

A prototype engine for our planned co-op game. This is where we will make it work, make it network, and make it feel fun. No AI, level design, etc.
2 stars 0 forks source link

"Soft" follow camera #23

Closed reddenx closed 10 years ago

reddenx commented 10 years ago

We need a better camera than one that just locks on to it's follow target, it should sweep meaning it probably has this functionality:

rickbatka commented 10 years ago

claiming this

rickbatka commented 10 years ago

Looking good. Press L to teleport to the mouse position and watch the camera catch up. Leaving the issue open because of another issue:

rickbatka commented 10 years ago

fixed the jitter by moving to drawing at vector positions and changing the spritebatch draw mode to LinearWrap. Had to implement both changes to get it to work - if you use pointwrap, even with vector position drawing, it still jumps to the nearest exact pixel coordinates.

We can change to Anisotropic if we run into problem with linear. Also, we will probably want to draw the GUI to a different spritebatch using pointWrap, because we want text to look crisp.