Code basic zooming and panning in Phaser HTML5 game library
$10-30 AUD
Closed
Posted over 8 years ago
$10-30 AUD
Paid on delivery
Hello. I am creating a simple game using the Phaser HTML5 game library ([login to view URL]) and I would like you to code zooming and panning functions. Nothing too big - I'm expecting less than 50 lines of code.
The features I'm looking for:
- Zoom with mouse wheel (where the zoom zooms towards the mouse pointer)
- Pinch zoom for touch screen devices
- Be able to set the zoom rate for mouse wheel and pinch zooming
- Panning with mouse click + drag
- Panning with touch + drag
- Still be able to interact with game elements with a click or a touch
- Bonus points for tweening when zooming and easing on pan
As a starting point, this demo has all the basics (no tweening or easing) [login to view URL] It uses another library called box2d (a physics library), but I would like the functions to depend only on Phaser.
The code should be MIT licensed so it can be posted on HTML5 game developer forums and used by others.
Hey!
My name is Tim, I'd love to work with you on this project. It sounds really fun.
I can definitely add in the zoom functions you're requesting.
Will this committed through git(hub)?
Anyways, get back to me if you decide to discuss further details.
Thank you,
Tim D.