Skip to content

Commit

Permalink
docs: Clarify coordinate spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Sep 20, 2024
1 parent 1ec8088 commit b3f607a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion site/docs/02-fundamentals/02-conventions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ There are a few things that Excalibur does that are good to know before you star
5. Actor z-index's follow the browser way of doing things.
* Things with larger positive numbers are on top of lower numbers.

6. Things are in "world" space unless specified with a `local` prefix or added as a child actor. World space is the pixel position where Entities and Actors live by default.
6. Coordinate Spaces
* World space is the pixel position where Entities and Actors live by default.
* Screen space is the pixels on the canvas element viewport according to the browser.
* Page space is pixel offset from the top left of browser window
* Local space is relative to a parent Entity or Actor

6. Things are in "world" space unless specified with a `local` prefix or added as a child actor.

7. Bounds are always an axis aligned bounding box, meaning a non-rotated box.

Expand Down

0 comments on commit b3f607a

Please sign in to comment.