* 📝 Re-new Chinese README
* 📝 Re-new Chinese README
* 🚀 Bring the group link back
* 🐛 Fix broken links
Co-authored-by: Luan Nico <luanpotter27@gmail.com>
* Update tutorial/2_sprite_animations_gestures/README.md
Removed the premature usage of the TapDetector mixin, which is addressed later in the tutorial.
* Update CHANGELOG.md
Added change to the changelog.
* Non-fullscreen ParallaxComponent
* Updated examples with no size needed
* Formatting
* Add docs for fullscreen parallax
* Fix formatting
* Remove need of nullable size
* Add basic parallax sizing test
* Fix formatting
* Remove unused imports
* Info text for the parallax examples
* Possibility to change component priority
* Fix formatting
* Posibility to change priority
* Docs for priority change
* Priority example
* Add section explaining priority
* Update doc/game.md
Co-authored-by: Erick <erickzanardoo@gmail.com>
* Update examples/lib/stories/components/components.dart
Co-authored-by: Erick <erickzanardoo@gmail.com>
* No null priorities in the super call chain
* Possibility to wait for all children to be loaded
* Test for addChildren
* Introduce parent to Component
* Check whether parent is BaseComponent
Co-authored-by: Erick <erickzanardoo@gmail.com>
* Add onCollisionEnd for HitboxShape and Collidable
* Add tests for collision callbacks
* Detect multiple collsions with same collidable in test
* Remove unused import
* Break out duplicated code
* Fix formatting
* Use correct hash set
* Update examples/lib/stories/collision_detection/multiple_shapes.dart
Co-authored-by: Erick <erickzanardoo@gmail.com>
* Update examples/lib/stories/collision_detection/multiple_shapes.dart
Co-authored-by: Erick <erickzanardoo@gmail.com>
* Use hashValues instead of _combineHashCodes
* hashValues is order dependent so we need to sort the objects first
* Add section about onCollisionEnd
* Fix missed hashValues
* Use xor instead of hashValues
* Update examples/lib/stories/collision_detection/collision_detection.dart
Co-authored-by: Luan Nico <luanpotter27@gmail.com>
Co-authored-by: Erick <erickzanardoo@gmail.com>
Co-authored-by: Luan Nico <luanpotter27@gmail.com>
* Fix collision detection with anchor other than center
* Fix rotation around anchor
* Simplify advanced collision detection example
* Add some tests
* Simplify multiple shapes example more
* Move shapeCenter logic into Shape
* Render center point
* More debugging in MultipleShapes
* Wtf.
* Re-add "possibly" calculation
* Rotate shape around parent center
* Only consider the parent center
* Format multiple shapes example
* Add simple shapes example
* Add caching in polygon
* Fix rendering of polygon shapes
* Remove print
* Add changelog entry
* Fix analyze complaints
* Remove all shapes that contain the pressed point
* Take zoom into consideration in multiple shapes example
* Remove useless import
* map instead of generate
* Fix position component test
* Simpler negative vector2
* "Correct" format
* Add ShapeComponent instead of camera aware shapes
* Fix formatting
* Remove zoom from collision detection example
* No need for gameRef in MultipleShapes example
* Fix naming in only_shapes
* Fix camera projections
* Fix formatting
* Test rendering
* Add another test
* Remove test
* Add test for draggables
* Fix formatting
* Nicer formatting
* Add changelog entry
* Making velocities and deltas have the game and global values
* Re adding code metircs
* Re adding code metircs
* Update packages/flame/lib/src/gestures/events.dart
Co-authored-by: Luan Nico <luanpotter27@gmail.com>
* Renaming example variable
* fixing example
* Linting
Co-authored-by: Luan Nico <luanpotter27@gmail.com>