u/4rticat

Is this an efficient/ beginner way to move a charater around an eviroment that streches behond the camera?

So for my first big project(well first project for that matter i haven't touched C++ since 2 weeks ago) for an assignment I'm creating a basic 2d physics engine with a movable character. And i wonder to be able to have a 2d environment that stretches beyond the screen while still being able to to move the player thought the entire environment can I have one world grid that is stationary and detached from the camera while having a second grid that always locks its origin to the player. Then for moving the camera i can tell it to lock to either the player or the origin of the ‘player grid’. Or is there a wildly more efficient way to do this.

reddit.com
u/4rticat — 1 day ago