Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2D Camera support? #16

Open
RickyYCheng opened this issue Jan 6, 2022 · 2 comments
Open

2D Camera support? #16

RickyYCheng opened this issue Jan 6, 2022 · 2 comments

Comments

@RickyYCheng
Copy link
Contributor

Is there already a 2D camera implementation?

@ChrisPritchard
Copy link
Owner

No I dont think so? What sort of thing, like a point that the engine would offset everything else by? In the games I've made I've just hand rolled my own as needed.

@RickyYCheng
Copy link
Contributor Author

I think shoule use

spriteBatch.Begin(transformMatrix = yourCameraMatrix)

spriteBatch.Draw(xxx)

spriteBatch.End()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants