* Add keyboard with focus node implementation
* a
* format and make it stabel compatible
* Add mixin to game
* fixes
* add tests
* format
* docs
* more docs
* Update doc/keyboard-input.md
Co-authored-by: Erick <erickzanardoo@gmail.com>
* rename test
* Apply suggestions from code review
Co-authored-by: Luan Nico <luanpotter27@gmail.com>
* fix test
* Update tutorials/2_sprite_animations_gestures/README.md
Co-authored-by: Luan Nico <luanpotter27@gmail.com>
* docs
* Apply suggestions from code review
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* yo
Co-authored-by: Erick <erickzanardoo@gmail.com>
Co-authored-by: Luan Nico <luanpotter27@gmail.com>
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* Draft of PositionComponent.scale
* Use matrix transformations
* Update tests to take matrix transform into consideration
* Add tests for collision detection with scale
* Rename ScaleEffect to SizeEffect
* Use transform matrix to prepare canvas
* Fix scaledSizeCache
* Add changelog entries and docs
* Dartdoc on public access methods
* Update packages/flame/CHANGELOG.md
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* Move cache classes to own directory
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* Initial implementation of paint effects
* Improving HasPaint
* Adding color effect
* Adding exaustive tests for the HasPaint mixin
* Adding tests for the effects
* some adjustments
* Fixing some imports
* Adding docs
* Adding types to the has paint mixin
* Fixing constructor name for the opacity effect
* Apply suggestions from code review
Co-authored-by: Luan Nico <luanpotter27@gmail.com>
* Luan's suggestion
* Luan's comments
* formatting issues
* dartcodemetrics don't help me :(
* Adding assert
Co-authored-by: Luan Nico <luanpotter27@gmail.com>
* Fix parallax fullscreen bug when game is resized
* Test
Signed-off-by: Lukas Klingsbo <me@lukas.fyi>
* Fix imports
* Remove accidental line
* Re-add mustCallSuper on onGameResize
* Add
* Adding SpriteWidgetBuilder
* Adding SpriteButtonBuilder
* Add NineTileBoxBuilder
* a few adjustments on the docs
* Adding error and loading builders to the widgets
* Improving APIs for the widget review
Co-authored-by: Luan Nico <luanpotter27@gmail.com>
* Use matrix transformations in FixedResolutionViewport
* Update viewport tests
* Moved transformations to resize
* Use getters for scaledSize and resizeOffset
* Added a FixedResolutionViewport example
* Make game.size take zoom into consideration
* Fix formatting
* Fix formatting
* Apply suggestions from code review
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* Move _sizeBuffer
* Apply suggestions from code review
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* Update list from wolfenrains suggestion
* Fix formatting
* Update CHANGELOG.md
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* 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
* 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>
* No setter for position and size
* Use setter for position and size
* Add onPositionUpdate and snapTo to Camera
* Fix formatting
* Fix size in test
* Update packages/flame/CHANGELOG.md
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* Update packages/flame/CHANGELOG.md
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* Better naming for internal position state
* Anchor and angle defaults on effect test utils
* No setter for position and size
* Fix scale effect
* Fix formatting
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
Co-authored-by: Erick Zanardo <erickzanardoo@gmail.com>
* Transforming PaletteEntry#paint into a full method
* Fixing some errors that went unoticed
* Update packages/flame/CHANGELOG.md
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* Update packages/flame/CHANGELOG.md
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* followup
* format
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>