DEV Community


I need an information

・1 min read

Hi guys!
I need an information.
Do you know how to make the screen follow a moving element as in this web game?
I searched the game's programming code, but couldn't figure anything out.

Discussion (1)

avalander profile image

You want to implement a camera system that is centered on the moving element. Check this docs and google a bit how to implement a camera viewport in your language/engine of choice.