Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Engine set origin for a game object #23

Merged
merged 5 commits into from
Mar 2, 2022
Merged

Conversation

201flaviosilva
Copy link
Owner

Issue: #14

Render GameObjects based in the Origin.

Example of calculating X position in a Rectangle: this._x - this.width * this.origin.x;

Created a getter for the GameObject position to return the position based in the origin

@201flaviosilva 201flaviosilva added V1 1️⃣ Issue from Version 1 Feature 💡 New feature or request for a new functionality Examples Engine ⚙️ Issue for the Engine labels Mar 1, 2022
@201flaviosilva 201flaviosilva linked an issue Mar 1, 2022 that may be closed by this pull request
@201flaviosilva 201flaviosilva self-assigned this Mar 2, 2022
@201flaviosilva 201flaviosilva merged commit c2adc46 into main Mar 2, 2022
@201flaviosilva 201flaviosilva deleted the engine-pivot-object branch March 2, 2022 14:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Engine ⚙️ Issue for the Engine Feature 💡 New feature or request for a new functionality V1 1️⃣ Issue from Version 1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Engine]: Center Rectangle (Pivot Point / Anchor / Origin)
1 participant