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 city map boundary #41

Open
2 of 3 tasks
timothymtorres opened this issue Nov 2, 2018 · 2 comments
Open
2 of 3 tasks

Add city map boundary #41

timothymtorres opened this issue Nov 2, 2018 · 2 comments
Labels
👀 UI User Interactions with the game 💡 feature New feature or request

Comments

@timothymtorres
Copy link
Owner

timothymtorres commented Nov 2, 2018

  • Add panning restriction to movement when near the edge of the map
  • Make city map center around player's x/y position
  • Add background image/sprite to display on map edges
@timothymtorres timothymtorres added 👀 UI User Interactions with the game 💡 feature New feature or request Priority: Medium labels Nov 2, 2018
@timothymtorres timothymtorres added this to the Version 0.11.0 milestone Nov 7, 2018
@timothymtorres
Copy link
Owner Author

Managed to get the boundaries working for each side: left, right, top, bottom. I ran into a nasty bug where any of the corner boundaries (NE, NW, SW, SE) causes a glitch in the panning code causing it to teleport half the screen away. It’s really annoying and I can’t really figure out a good fix to get it resolved. The boundary code was already hack-ish so I’m going to try and add more duct tape to it and pray that it works.

@timothymtorres
Copy link
Owner Author

Meh, after trying for a while now I still wasn’t able to pinpoint where stuff was happening. It seems I can have zooming or panning enables but not both at the same time. I thought if I switched the map to staggered it would make it easier to set the boundary code, but I’m still getting scaling problems. Might have to rebuild this from scratch in order to get it working. That could take anywhere from a few days to a few weeks...

@timothymtorres timothymtorres removed this from the Version 0.11.0 milestone Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 UI User Interactions with the game 💡 feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant