sarkahn / bevy_ascii_terminal

A simple terminal for rendering ascii in bevy.
MIT License
86 stars 10 forks source link

Camera follow player #7

Closed bayou-brogrammer closed 1 year ago

bayou-brogrammer commented 1 year ago

Hello! What would be a good way to have the tiled camera follow the player?

sarkahn commented 1 year ago

Hi there. The camera is just a normal entity with a transform. You can set the camera's translation xy to match the player's, that will effectively follow the player. You'll have to ensure the position is properly aligned to the pixel grid to avoid rendering artifacts.