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

Add linewidth 1 + no sub pixel rendering. #91

Conversation

bouveng
Copy link
Collaborator

@bouveng bouveng commented Jun 11, 2020

Make bounding box lines 1px and remove sub pixel rendering.
In order for collision layer to be useful it needs to be exact.

Screenshot 2020-06-11 at 02 44 58

@bouveng bouveng requested a review from pomle June 11, 2020 00:46
@bouveng bouveng added the fix label Jun 11, 2020
Copy link
Contributor

@pomle pomle left a comment

Choose a reason for hiding this comment

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

Remove the lineWidth assign and we can merge it. We know about the caveats.

@@ -1,13 +1,14 @@
function createEntityLayer(entities) {
return function drawBoundingBox(context, camera) {
context.strokeStyle = 'red';
context.lineWidht = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is spelled wrong. Don't think it is needed.

@bouveng bouveng force-pushed the fix-boundingbox-collision-layer branch 27 times, most recently from 91faafb to fc4f006 Compare June 19, 2020 00:20
@bouveng bouveng force-pushed the fix-boundingbox-collision-layer branch 17 times, most recently from 6e956b3 to c330c3d Compare June 19, 2020 00:34
@bouveng bouveng force-pushed the fix-boundingbox-collision-layer branch from c330c3d to a24a4a4 Compare June 19, 2020 00:35
@bouveng
Copy link
Collaborator Author

bouveng commented Jun 19, 2020

Created new PR #123 , could not get out of git hell after 44 force pushes.

@bouveng bouveng closed this Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants