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

Added examples/core_2d_camera_platformer and core_2d_camera.c #33

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

IRooc
Copy link

@IRooc IRooc commented Feb 17, 2024

Basic setup works But the zoom feature didn't work.

If you want I can remove the nob.c changes because I build on windows I had to change it, just let me know.

Because every draw call now has to go through the Camera2D check this touches a lot of calls in a small way.

@IRooc IRooc marked this pull request as ready for review February 17, 2024 23:09
@IRooc IRooc changed the title Added Example/2d platformer from raylib library Added Example/core_2d_camera_platformer from raylib library Feb 18, 2024
@IRooc IRooc changed the title Added Example/core_2d_camera_platformer from raylib library Added Examples/core_2d_camera_platformer from raylib library Feb 18, 2024
@IRooc IRooc changed the title Added Examples/core_2d_camera_platformer from raylib library Added examples/core_2d_camera_platformer and core_2d_camera.c Feb 18, 2024
raylib.js Outdated Show resolved Hide resolved
const color = getColorFromMemory(buffer, color_ptr);
[startX, startY] = this.applyCameraOffset(startX, startY);
[endX, endY] = this.applyCameraOffset(endX, endY);
this.ctx.beginPath();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work on the camera offset. I've implemented a few of these basic shape drawing functions in #53 .

Co-authored-by: Rob Loach <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants