wayne-dillon / BonVoyageCharlie

Stripped down Monogame project to start from
0 stars 0 forks source link

Camera controller #5

Closed wayne-dillon closed 11 months ago

wayne-dillon commented 11 months ago

MVP - follow the player character Ideally there'll be a dead zone in the centre (possibly closer to bottom than top) where the character can move without the camera moving. As the character approaches full speed the camera should move to be slightly further in the direction they're moving so they have more time to see obstacles. When idle the camera should recentre on the player sprite.

Some logic already implemented to reposition draw calls for sprites based on camera position, we should just need the logic to move the camera position.

wayne-dillon commented 11 months ago

I've implemented the simple version that just keeps the player centered.

wayne-dillon commented 11 months ago

Camera controller updated to stay within the bounds of the level.