Files
flame/doc/examples
Lukas Klingsbo 0593e35766 Add hitbox to PositionComponent (#618)
* 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
2021-01-20 23:39:01 +01:00
..
2020-12-09 10:10:12 +00:00
2020-12-09 10:10:12 +00:00
2020-08-06 16:59:12 +01:00

examples folder

This folder contains a collection of more specific examples using flame, specially to showcase some more advanced functionality.

In order to simplify the understanding of each examples, they are all missing the following folders (git ignored):

android, ios, web, macos, test

So that we can focus on the lib and (if applicable) assets folder. Please add that to the gitignore of your new example.

So, to run an example after cloning, first run flutter create . inside the desired example folder to generate the necessary files, as per instructed by the other flutter commands.

After that, run flutter pub get to get all dependencies as defined in the pubspec.yml file.

Finally, you should be able to flutter run just fine.