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

Drawing lines doesn't work as expected #104

Open
SentyFunBall opened this issue Aug 26, 2022 · 3 comments
Open

Drawing lines doesn't work as expected #104

SentyFunBall opened this issue Aug 26, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@SentyFunBall
Copy link

SentyFunBall commented Aug 26, 2022

What I expected to happen
Drawing lines should look just like the game, but with pixel ratios being different on different displayed but whatever.

What happened instead
When drawing lines, and the values have decimals, the simulator often shortens the lines, unlike the game.

How do I reproduce this?
Reliable steps that should produce this issue:

  1. do something like screen.drawLine(2,2,5.5,2.5)
    2.The game should show the end of the line being at 5, 3 but i'm on mobile
  2. The simulator floors the values and doesn't show what it looks like in game

Screenshots and Project zip file
image
image
Additional info
I'll update this with a comment once i reopen stormworks soon.

Edit 1: added images

@SentyFunBall SentyFunBall added the bug Something isn't working label Aug 26, 2022
@SentyFunBall
Copy link
Author

Update: This is indeed the case. In my test file i have two lines of code:
screen.drawLine(2,2,5.5,2.5) screen.drawLine(5, 3, 5, 4)
I would expect the simulator to behave like the game, but instead:
image
vs
image

@nameouschangey
Copy link
Owner

Thanks for this, will have a look - hopefully not one of those cases that's caused by GPU model.

@SentyFunBall
Copy link
Author

If it's any help, I've got a GTX 1660

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants