SpriteKit: Should I pan the camera or move the background?

When creating a game using SpriteKit with a platform game (for example, Doodle Jump), is it preferable to move the camera up or down along the background nodes?

What is the standard practice in other frameworks?

+6
source share
2 answers

MOVE THE CAMERA !!!

One of the strangest things about 2D games is that it often takes a series of versions to get a camera.

They must be born with them.

SpriteKit is no different, take the camera forever.

Now that he has one, never think about not using it.

Make your life a million times easier.

I can’t think of any exceptions, but I hope that it turns out to be wrong.

+6
source

Background movement was HOTFIX until appropriate cam support was added.

use cam. its easy and fun. no reason not to.

+3
source

Source: https://habr.com/ru/post/1013234/


All Articles