* Standardize on dt in update methods
* Update changelog entry
* Update CHANGELOG.md
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* Move out collision detection methods
* Add possibility to define a hull for PositionComponents
* Add example of how to use hull with tapable
* Update contains point comment
* Fix contains point
* Hull should be based on center position
* Remove collision detection parts
* Use percentage of size instead of absolute size
* Separate hull from PositionComponent
* Clarify hull example
* Fix formatting
* Change to relative import
* Use mixin for hitbox
* Update changelog
* Rename HasHitbox to Hitbox
* Clarified names
* Add spaces within braces
* Removed extra spaces in the braces
* Moved point rotation to Vector2 extension
* Render hitbox within extension
* Added collision detection
* Add tests
* Separate classes into files
* Fix formatting
* Move geometry files into geometry directory
* Use relative import for mixin
* Begin intersections between different shapes
* Add shape class
* Align with rebase
* Fix CHANGELOG
* Fix children positioning
* New polygon intersection algorithm
* No anchor for shape in PoC
* Remove unused imports
* Smarter bounding rectangle comparisons
* Formatting
* Add Circle to Circle collision
* Circle-polygon intersections
* Explanation of circle-circle intersections
* Properly render circle circle collisions
* Fix formatting
* Better example
* Update docs for collision detection
* Fix formatting
* Add polygon definition example
* Update documentation about the shapes
* Moved premature rc6 changelog line
* Added a cache system for shape calculations
* Fix formatting
* Fix formatting
* Fix imports
* Add collidable polygon to example
* Use anchorPosition for PositionComponent containsPoint
* Fix angle problem for Rectangle
* collisionCallback -> onCollision
* Fixed Erick's comments
* Improve collision detection example
* Fix#662, zero size doesn't contain any points
* Fix formatting
* Can't contain point if x or y is 0
* Fix formatting
* Fix test
* Remove unnecessary collidable example part
* Align with Draggable overhaul
* Updated collision detection docs
* Fix PR comments
* Have more sensible Circle constructor
* Clarify shape fields
* Need ensureInitialized
* Update docs to conform with switched constructors
* Fix new definitions
* Fix formatting
* Update documentation
* Fix formatting
* Fix formatting
* Exclude metrics check for test files
* Add another simpler example of collision detection
* Updated according to comments
* Fix comments
* Fix more comments
* Fix more comments
* Fix relative import
* Fix comments
* Moved export of geometry
* Fix comments
* Remove unused import
* Fix assert for shape.component
* Fix comments
* Expect instead of assert in test
* Enabling direct import of Sprite and SpriteAnimation
* Renan follow up
* Fixing spritesheet exmaple
Co-authored-by: Erick Zanardo <erickzanardoo@gmail.com>
* Adapating ParallaxComponent constructors to other components
* Removing wrongly commited folder
* Update doc/components.md
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* Update doc/components.md
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* Move out collision detection methods
* Add possibility to define a hull for PositionComponents
* Add example of how to use hull with tapable
* Update contains point comment
* Fix contains point
* Hull should be based on center position
* Remove collision detection parts
* Added tests
* Use percentage of size instead of absolute size
* Separate hull from PositionComponent
* Clarify hull example
* Fix formatting
* Override correct method
* Use mixin for hitbox
* Update changelog
* Rename HasHitbox to Hitbox
* Clarified names
* Center to edge is considered as 1.0
* Fix test
* Add spaces within braces
* Removed extra spaces in the braces
* Add hitbox docs
* Fix link
* Moved point rotation to Vector2 extension
* Render hitbox within extension
* Fix rebase
* Fix rebase
* Fix formatting
* 👌 Use `Offset` type directly in `JoystickAction.update` calculations (#631)
* Move files to src and comply with the dart package layout convention
* Fixing widgets example
Co-authored-by: Serge Matveenko <lig@countzero.co>
Co-authored-by: Erick Zanardo <erickzanardoo@gmail.com>
* Simplified loading of ParallaxComponent
* Loading helpers for the different Parallax parts
And refactor how the delta velocity works
* Fix formatting
* Break out Parallax out of ParallaxComponent
* Fix docs
* Add extension for loading different parallax things on game
* Fix formatting
* Add loadParallaxComponent extension
* Fix formatting
* Adding game to overlaybuilder and visible overlays
* Fixing things
* Format
* Adding Renan's suggestions
* Removing wrongly commited integration test files
* Fixing active overlay when it is null
* Update CHANGELOG.md
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* Adding some more changes from suggestions
* Removing unnecessary elvis operator
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
* Fix rendering of children
* Game loop handles other restore
* Properly propagate onMount and onRemove to children
* Use BaseGame on gestures to minimize confusion
* Fix linting
* All children don't need preparation
* Add composability example
* gameRef might not be defined
* Add mustCallSuper
* isMounted on game
* Remove unused gameRef argument
* Made isMounted only modifiable by the component
* Move dartdoc to public isMounted
* Fix formatting
* Add TextBoxConfig options and fix TextBxoComponent bugs
* Add changelog entry
* Fix snackbar deprecation
* All examples to have publish to none
* One argument per line
* No explicit types for local variables
* Cache the width
* Fix formatting