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

Implement canvas-based bus system #487

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

ElementalAlchemist
Copy link
Collaborator

@ElementalAlchemist ElementalAlchemist commented Nov 13, 2024

This should do everything we talked about, I think. It includes a text field on the screen for adjusting the scaling.

@ElementalAlchemist ElementalAlchemist force-pushed the bus-progress-ui branch 4 times, most recently from 95e9b7f to 79e6e72 Compare November 13, 2024 06:27
The existing code tried to avoid infinite loops due to floating point math. It turns out the +1 was overzealous and caused bus stop signs to disappear before expected at high scale numbers.
Adds a new mode that makes the full width be exactly one point, and the bus drives across the canvas.

This also resizes the canvas to the requested size (1580x62).
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.

1 participant