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

J2D: Implement JSystem 2D rendering library, use it display Wind Waker place names #735

Merged
merged 35 commits into from
Dec 17, 2024

Conversation

themikelester
Copy link
Collaborator

Screenshot 2024-12-12 at 4 28 38 PM
  • Added src/Common/JSYSTEM/J2D.ts
  • Added new automatic file type handling, BLO (Binary Layout).
  • Added fopMsgM functionality to framework.ts
  • Implemented place names handing in src/ZeldaWindWaker/d_place_name.ts

BLO files contain layout data for 2D elements. It is made up of a hierarchy of J2DPanes (essentially just a bounding box) and J2Pictures. Child elements inherit the transform from their parents. The entire hierarchy contained in a single root J2DScreen object. I followed the pattern of J3D and split up the loading functions from the runtime objects.

J2D and BLO files can also be used to render message boxes during demos. I'm hoping that others will find uses for them as well.

As for place names: currently, the only ones that will display are Outset Island and The Forsaken Fortress during their intro cutscenes.

These can (hackily) be used to render a super basic pane
This is used by the message system, of which d_place_name is a part. In the future, I'll also use this for message dialogs during demos.
…-left, ours is bottom left.

Place names are now in the correct positions
@themikelester themikelester marked this pull request as ready for review December 12, 2024 15:10
src/Common/JSYSTEM/J2D.ts Outdated Show resolved Hide resolved
src/Common/JSYSTEM/J2D.ts Outdated Show resolved Hide resolved
src/Common/JSYSTEM/J2D.ts Outdated Show resolved Hide resolved
src/Common/JSYSTEM/J2D.ts Outdated Show resolved Hide resolved
src/ZeldaWindWaker/d_place_name.ts Outdated Show resolved Hide resolved
src/Common/JSYSTEM/J2D.ts Outdated Show resolved Hide resolved
src/Common/JSYSTEM/J2Dv1.ts Outdated Show resolved Hide resolved
@magcius magcius merged commit 133b397 into master Dec 17, 2024
2 checks passed
@themikelester themikelester deleted the placename branch December 17, 2024 18:43
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