Releases: Dysnomia-Studio/canvas2d-wrapper
Releases · Dysnomia-Studio/canvas2d-wrapper
1.7.1
1.7.0
- Update dependencies
- Fix collideElement() when multiple elements could match
Full Changelog: 1.6.2...1.7.0
1.6.2
Fix usage when multiple canvas are used at the same time
Full Changelog: 1.6.1...1.6.2
1.6.1
Fix onRightClick Event
Full Changelog: 1.6.0...1.6.1
1.6.0
Changes
-
Breaking Change: Transfer elements responsability to onFrame() method
You should now return elements list in onFrame() method instead of giving it as a prop.
It will help to improve performance by preventing some react hook rerender on gameplay side. -
Give x/y mouse positions to onHover callback()
onHover
now returns {x, y} as a second parameters -
Update some dependencies
Full Changelog: 1.5.1...1.6.0
1.5.1
Add new helper hooks:
- useGamepad()
- useKeyboard()
- useMousePosition()
- useWindowDimensions()
Full Changelog: 1.5.0...1.5.1
1.5.0
- Setup vsync (e.g: on a 60hz screen, animation will always try to get to 60 FPS)
- Add onFrame callback, if needed or gameplay purposes
- Various performances improvements using useEffect()
- Clean code
- Update various (dev and non-dev) dependencies
- Setup dependabot
- Setup CI & tests for node 16/18/20/21
- Setup sonarqube analysis
Full Changelog: 1.4.0...1.5.0