-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Support wrapping ex.Text graphics #2472
Conversation
@RyanGrieb thanks for the PR! I'll have some time to look this over this week sometime👍 |
Closes excaliburjs#2473 This PR fixes an issue where a degenerate 0 sized collision causes issues with the precollision event emit. Previously an erroneous left precollision would be emitted when the minimum translation vector (mtv) was `(-0, -0)` <img width="299" alt="image" src="https://user-images.githubusercontent.com/612071/187574499-96889716-ba1a-418e-995e-b7673ce643e2.png"> ## Changes: - Filters out 0 sized contacts in precollision to guard against a degenerate side calculation
@RyanGrieb the code looks good to my eyes! Exactly what I would have expected There is one failing test, I'm trying to figure out why the text generated is slightly shifted up and to the left. It might be the case that the new changes are more correct, I'm just not sure why it's different quite yet. |
@RyanGrieb Actually! I believe the PR code is more correct the I think this PR is ready, update the failing test, add a new test for the maxWidth, and fix the height issue you spoke about 👍 |
@eonarheim I believe corrected the height issue. I'm not sure how you'd like me to correct the failing test. Should I replace the image? Also, how would I individually run the test 722 and visually look at it. |
Also I haven't tested this w/ |
@RyanGrieb good questions! Yes please do replace the expected test images if you can (you can copy paste the base64 image into a browser and download it to the appropriate spec in You can add an Really appreciate the work on this feature! It'll be a huge value add to Excalibur! |
@RyanGrieb This is looking great! Let me know when you're ready for review
@RyanGrieb I think that's expected with the |
…2410) Closes excaliburjs#2401 This PR implements an arbitrary raycasting api in Excalibur ```typescript const hits = engine.currentScene.physics.rayCast(new ex.Ray(player.pos, ex.Vector.Down), { maxDistance: 100, collisionGroup: blockGroup, searchAllColliders: false }); ``` <img width="797" alt="image" src="https://user-images.githubusercontent.com/612071/178625499-d9f97052-5b18-49fe-9440-89bd93e46ff6.png"> ## Changes: - Fix issue where TileMaps weren't correctly added to the collider data structure - Add physics world with raycasting endpoint
This PR hasn't had any recent activity lately and is being marked as stale automatically. |
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…2534) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…js#2533) Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. - [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases) - [Commits](SamVerschueren/decode-uri-component@v0.2.0...v0.2.2) --- updated-dependencies: - dependency-name: decode-uri-component dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.1.0 to 1.4.2. - [Release notes](https://github.com/webpack/loader-utils/releases) - [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md) - [Commits](webpack/loader-utils@v1.1.0...v1.4.2) --- updated-dependencies: - dependency-name: loader-utils dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Hi @RyanGrieb sorry about the delay on this PR! Life happened to me! Is it okay if I push a few commits to your fork? This is definitely something that would be nice to include in the next release of excalibur! |
…to RyanGrieb-line-wrap2
@eonarheim Go for it. I couldn’t get tests working for some reason on my machine. |
@RyanGrieb Thanks for working on this feature! Sorry about the long delay on the merge! We appreciate the hard work this is great feature! |
===:clipboard: PR Checklist :clipboard:===
==================
Closes #2463
Changes:
maxWidth
TextOption to support word wrappingHi, I think I've progressed enough to post a draft PR.
Currently wrapping works when the
maxWidth
option is provided for the ex.Text class.There is a bug currently where text > 2 lines isn't rendered since I don't update the
ex.Text
height properly when we word wrap.If there is any other outstanding problems in the code/PR please let me know!