Lukas Klingsbo
e32dd326f5
chore: Remove publish_to: none where not needed ( #1453 )
2022-03-14 20:59:42 +00:00
Jochum van der Ploeg
eceb82ebc2
docs: Widget overlay documentation is out of date ( #1450 )
2022-03-14 16:42:55 +00:00
Lukas Klingsbo
6fb060a755
docs: Fix anchor links in collision detection docs ( #1449 )
2022-03-14 14:16:45 +01:00
Lukas Klingsbo
30395d52a2
docs: Add backgroundColor docs ( #1448 )
2022-03-13 21:32:26 +01:00
Erick
62c2fd19c2
docs: fixing draggrable doc ( #1447 )
2022-03-13 18:37:45 +01:00
Erick
6a32dc341d
chore(release): publish packages ( #1446 )
...
- flame@1.1.0-releasecandidate.5
- flame_forge2d@0.9.0-releasecandidate.5
- flame_svg@1.1.0-releasecandidate.4
- flame_test@1.2.0-releasecandidate.5
- flame_rive@1.1.0-releasecandidate.5
- flame_tiled@1.3.0-releasecandidate.5
- flame_bloc@1.2.0-releasecandidate.5
2022-03-13 14:37:45 +00:00
Lukas Klingsbo
342846860a
feat: Add setter to priority ( #1444 )
2022-03-13 14:18:18 +00:00
Lukas Klingsbo
7fe8b6deb1
feat: BodyComponent can properly have normal Flame component children ( #1442 )
2022-03-13 15:04:54 +01:00
Munsterlander
e01b4b1ac3
fix: @mustCallSuper missing on components ( #1443 )
2022-03-13 14:50:19 +01:00
Erick
0ac748e158
chore(release): publish packages ( #1440 )
...
- flame@1.1.0-releasecandidate.4
- flame_forge2d@0.9.0-releasecandidate.4
- flame_svg@1.1.0-releasecandidate.3
- flame_test@1.2.0-releasecandidate.4
- flame_rive@1.1.0-releasecandidate.4
- flame_tiled@1.3.0-releasecandidate.4
- flame_bloc@1.2.0-releasecandidate.4
2022-03-11 14:37:46 -03:00
Lukas Klingsbo
33b725e837
fix: Don't use debug rendering by default in BodyComponent ( #1439 )
2022-03-11 13:35:37 +01:00
Pasha Stetsenko
694102bd03
fix: Setting images.prefix to empty string ( #1437 )
2022-03-10 20:44:06 +01:00
Erick
6016330a68
chore(release): publish packages ( #1436 )
...
- flame@1.1.0-releasecandidate.3
- flame_bloc@1.2.0-releasecandidate.3
- flame_svg@1.1.0-releasecandidate.2
- flame_test@1.2.0-releasecandidate.3
- flame_rive@1.1.0-releasecandidate.3
- flame_forge2d@0.9.0-releasecandidate.3
- flame_tiled@1.3.0-releasecandidate.3
2022-03-10 14:21:30 +00:00
Erick
de4d941654
feat: allowing changing of the images prefix and allowing empty prefixes ( #1433 )
...
* feat: allowing changing of the images prefix and allowing empty prefixes
* feat: pr suggestions
2022-03-10 10:57:40 -03:00
Pasha Stetsenko
f3cf85b638
fix: viewfinders behavior under zoom ( #1432 )
2022-03-10 12:37:10 +00:00
Pasha Stetsenko
0e174fe8e5
fix: change strokeWidth in Component ( #1431 )
2022-03-10 13:24:54 +01:00
chirag729
59368c5897
chore: update flutter_svg version in flame_svg ( #1430 )
2022-03-09 20:32:46 +01:00
Pasha Stetsenko
8b9fa3521c
refactor: Parent change and component removal logic ( #1385 )
...
* ProcessQueues() method
* Added deadQueue in LifecycleManager
* refactor removeFromParent()
* make shouldRemove non-overridable
* Added lifecycle state "removing"
* prevent double-removal
* shouldRemove can only be set to true
* eliminate _shouldRemove
* rename _dead -> _dying
* added adoption queue
* removed nextParent
* deprecate ComponentSet.clear and .removeAll
* ComponentSet no longer handles removal
* remove usages of shouldRemove
* doc-comments
* onRemove refactor
* cleanup
* remove obsolete paragraph in docs
* rename queue dying -> removals
* feat: update examples dashbook (#1398 )
* docs: Added tutorial for creating a bare Flame project (#1376 )
* feat: Add missing optional priority to SpriteBodyComponent (#1404 )
* Add missing optional priority to SpriteBodyComponent
Gives you the option to set the priority directly when creating the component.
* Add optional parameter priority
Adds priority as an optional parameter
* removed wrong trailing comma
Added a comma at the wrong position.
* feat: Added getImageLayer to flame_tiled (#1405 )
* feat: Create sphinx extension for integrating Flutter apps into the documentation site (#1393 )
* feat: adding FlameBloc mixin to allow its usage with enhanced FlameGame classes (#1399 )
* feat: adding FlameBloc mixin to allow its usage with enhanced FlameGame classes
* fixing tests
* Apply suggestions from code review
Co-authored-by: Lukas Klingsbo <me@lukas.fyi >
Co-authored-by: Pasha Stetsenko <stpasha@google.com >
Co-authored-by: Luan Nico <luanpotter27@gmail.com >
Co-authored-by: Lukas Klingsbo <me@lukas.fyi >
Co-authored-by: Pasha Stetsenko <stpasha@google.com >
Co-authored-by: Luan Nico <luanpotter27@gmail.com >
* refactor: Organize tests in the game/ folder (#1403 )
* position_type_test
* detectors_test
* reformat projections_test
* Reorganize tests in projector_test
* review flame_game_test
* move some cameratests
* created viewport_test file
* reformat camera tests
* feat: Add missing optional priority to SpriteBodyComponent (#1404 )
* Add missing optional priority to SpriteBodyComponent
Gives you the option to set the priority directly when creating the component.
* Add optional parameter priority
Adds priority as an optional parameter
* removed wrong trailing comma
Added a comma at the wrong position.
* feat: Added getImageLayer to flame_tiled (#1405 )
* feat: Create sphinx extension for integrating Flutter apps into the documentation site (#1393 )
Co-authored-by: KurtLa <KurtLa@users.noreply.github.com >
Co-authored-by: Munsterlander <munsterlander@users.noreply.github.com >
Co-authored-by: Erick <erickzanardoo@gmail.com >
* feat: improving generics on position body component (#1397 )
* chore(release): publish packages (#1407 )
- flame@1.1.0-releasecandidate.1
- flame_bloc@1.2.0-releasecandidate.1
- flame_rive@1.1.0-releasecandidate.1
- flame_test@1.2.0-releasecandidate.1
- flame_tiled@1.3.0-releasecandidate.1
* chore: fixing pub deps to allow publish (#1408 )
* chore(release): publish packages
- flame@1.1.0-releasecandidate.1
- flame_bloc@1.2.0-releasecandidate.1
- flame_rive@1.1.0-releasecandidate.1
- flame_test@1.2.0-releasecandidate.1
- flame_tiled@1.3.0-releasecandidate.1
* chore: fixing deps to enable pub publish
* fixing vector math version
* chore(flame_forge2d): export all files in barrel file (#1409 )
* chore(release): publish packages (#1410 )
- flame_forge2d@0.9.0-releasecandidate.1
* chore: commented out PR template sections (#1412 )
* feat: Make ContactCallback begin end methods optional overrides (#1415 )
* feat: made begin and end optional overrides
* chore: removed unecessary end override
* feat: Camera as a component (#1355 )
* feat(collision detection)!: Use a broadphase to make collision detection more efficient (#1252 )
* fix: PositionBodyComponent had an async onMount, without needing (#1424 )
* fix: Fix collision detection comments and typo (#1422 )
* Fix collision detection comments and typo
* Update packages/flame/lib/src/collisions/collision_callbacks.dart
Co-authored-by: Pasha Stetsenko <stpasha@google.com >
* Update doc/flame/collision_detection.md
Co-authored-by: Pasha Stetsenko <stpasha@google.com >
Co-authored-by: Pasha Stetsenko <stpasha@google.com >
* feat: adding has mounted to component (#1418 )
* feat: adding has mounted to component
* feat: pr suggestions
* feat: improving hasMounted
* feat: renaming hasMounted to mounted
* feat: pr suggestion
* chore(release): publish packages (#1427 )
- flame_svg@1.1.0-releasecandidate.1
- flame@1.1.0-releasecandidate.2
- flame_bloc@1.2.0-releasecandidate.2
- flame_forge2d@0.9.0-releasecandidate.2
- flame_rive@1.1.0-releasecandidate.2
- flame_test@1.2.0-releasecandidate.2
- flame_tiled@1.3.0-releasecandidate.2
* fix a test
* fix broken merge
* rename parent->owner in LifecycleManager
* update doc-comment
Co-authored-by: Erick <erickzanardoo@gmail.com >
Co-authored-by: KurtLa <KurtLa@users.noreply.github.com >
Co-authored-by: Munsterlander <munsterlander@users.noreply.github.com >
Co-authored-by: Lukas Klingsbo <me@lukas.fyi >
Co-authored-by: Luan Nico <luanpotter27@gmail.com >
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com >
Co-authored-by: Alejandro Santiago <dev@alestiago.com >
2022-03-09 12:52:22 +01:00
Erick
e30bf520e6
chore(release): publish packages ( #1427 )
...
- flame_svg@1.1.0-releasecandidate.1
- flame@1.1.0-releasecandidate.2
- flame_bloc@1.2.0-releasecandidate.2
- flame_forge2d@0.9.0-releasecandidate.2
- flame_rive@1.1.0-releasecandidate.2
- flame_test@1.2.0-releasecandidate.2
- flame_tiled@1.3.0-releasecandidate.2
2022-03-08 17:35:26 -03:00
Erick
f8f9e04513
feat: adding has mounted to component ( #1418 )
...
* feat: adding has mounted to component
* feat: pr suggestions
* feat: improving hasMounted
* feat: renaming hasMounted to mounted
* feat: pr suggestion
2022-03-08 14:17:11 -03:00
Lukas Klingsbo
dfeafdd6f3
fix: Fix collision detection comments and typo ( #1422 )
...
* Fix collision detection comments and typo
* Update packages/flame/lib/src/collisions/collision_callbacks.dart
Co-authored-by: Pasha Stetsenko <stpasha@google.com >
* Update doc/flame/collision_detection.md
Co-authored-by: Pasha Stetsenko <stpasha@google.com >
Co-authored-by: Pasha Stetsenko <stpasha@google.com >
2022-03-08 14:38:21 +01:00
Erick
7b0fd20a2c
fix: PositionBodyComponent had an async onMount, without needing ( #1424 )
2022-03-08 07:38:13 +01:00
Lukas Klingsbo
29dd09ca92
feat(collision detection)!: Use a broadphase to make collision detection more efficient ( #1252 )
2022-03-07 09:08:32 +01:00
Pasha Stetsenko
c61a1c18b5
feat: Camera as a component ( #1355 )
2022-03-07 08:12:17 +01:00
Alejandro Santiago
29dd1891b6
feat: Make ContactCallback begin end methods optional overrides ( #1415 )
...
* feat: made begin and end optional overrides
* chore: removed unecessary end override
2022-03-03 19:13:50 +01:00
Alejandro Santiago
ada5740d05
chore: commented out PR template sections ( #1412 )
2022-03-02 10:14:19 +00:00
Erick
4dc65f1253
chore(release): publish packages ( #1410 )
...
- flame_forge2d@0.9.0-releasecandidate.1
2022-02-28 18:36:29 -03:00
Allison Ryan
f2e1b8af4b
chore(flame_forge2d): export all files in barrel file ( #1409 )
2022-02-28 20:51:11 +00:00
Erick
4c543ab49f
chore: fixing pub deps to allow publish ( #1408 )
...
* chore(release): publish packages
- flame@1.1.0-releasecandidate.1
- flame_bloc@1.2.0-releasecandidate.1
- flame_rive@1.1.0-releasecandidate.1
- flame_test@1.2.0-releasecandidate.1
- flame_tiled@1.3.0-releasecandidate.1
* chore: fixing deps to enable pub publish
* fixing vector math version
2022-02-28 17:29:40 -03:00
Erick
aedb30be8e
chore(release): publish packages ( #1407 )
...
- flame@1.1.0-releasecandidate.1
- flame_bloc@1.2.0-releasecandidate.1
- flame_rive@1.1.0-releasecandidate.1
- flame_test@1.2.0-releasecandidate.1
- flame_tiled@1.3.0-releasecandidate.1
2022-02-28 15:09:17 -03:00
Erick
7edbb29985
feat: improving generics on position body component ( #1397 )
2022-02-28 10:31:07 -03:00
Pasha Stetsenko
102a27cc75
refactor: Organize tests in the game/ folder ( #1403 )
...
* position_type_test
* detectors_test
* reformat projections_test
* Reorganize tests in projector_test
* review flame_game_test
* move some cameratests
* created viewport_test file
* reformat camera tests
* feat: Add missing optional priority to SpriteBodyComponent (#1404 )
* Add missing optional priority to SpriteBodyComponent
Gives you the option to set the priority directly when creating the component.
* Add optional parameter priority
Adds priority as an optional parameter
* removed wrong trailing comma
Added a comma at the wrong position.
* feat: Added getImageLayer to flame_tiled (#1405 )
* feat: Create sphinx extension for integrating Flutter apps into the documentation site (#1393 )
Co-authored-by: KurtLa <KurtLa@users.noreply.github.com >
Co-authored-by: Munsterlander <munsterlander@users.noreply.github.com >
Co-authored-by: Erick <erickzanardoo@gmail.com >
2022-02-28 13:16:27 +00:00
Erick
78aab42694
feat: adding FlameBloc mixin to allow its usage with enhanced FlameGame classes ( #1399 )
...
* feat: adding FlameBloc mixin to allow its usage with enhanced FlameGame classes
* fixing tests
* Apply suggestions from code review
Co-authored-by: Lukas Klingsbo <me@lukas.fyi >
Co-authored-by: Pasha Stetsenko <stpasha@google.com >
Co-authored-by: Luan Nico <luanpotter27@gmail.com >
Co-authored-by: Lukas Klingsbo <me@lukas.fyi >
Co-authored-by: Pasha Stetsenko <stpasha@google.com >
Co-authored-by: Luan Nico <luanpotter27@gmail.com >
2022-02-28 09:43:23 -03:00
Pasha Stetsenko
2935a6a55d
feat: Create sphinx extension for integrating Flutter apps into the documentation site ( #1393 )
2022-02-27 21:25:33 +00:00
Munsterlander
a037ada5ea
feat: Added getImageLayer to flame_tiled ( #1405 )
2022-02-27 16:53:44 +00:00
KurtLa
a000eb1172
feat: Add missing optional priority to SpriteBodyComponent ( #1404 )
...
* Add missing optional priority to SpriteBodyComponent
Gives you the option to set the priority directly when creating the component.
* Add optional parameter priority
Adds priority as an optional parameter
* removed wrong trailing comma
Added a comma at the wrong position.
2022-02-26 14:41:10 +00:00
Pasha Stetsenko
5b58f87662
docs: Added tutorial for creating a bare Flame project ( #1376 )
2022-02-24 21:45:41 +01:00
Erick
f8fb2c1133
feat: update examples dashbook ( #1398 )
2022-02-24 15:59:20 -03:00
Pasha Stetsenko
e50003ed60
refactor: Clean up of top-level tests ( #1386 )
2022-02-21 21:16:34 +01:00
Pasha Stetsenko
08e8eac173
fix: Step time in SpriteAnimation must be positive ( #1387 )
2022-02-21 19:16:46 +00:00
Jochum van der Ploeg
1818be4176
feat: Added transform to Rect ( #1360 )
2022-02-21 19:01:07 +00:00
Erick
bce2417330
fix: flame svg perfomance ( #1373 )
...
* fix: flame svg perfomance
* PR suggestions and some tests
* linting
* addressing comments
2022-02-21 11:59:07 -03:00
Pasha Stetsenko
491889cef9
test: Add testWithFlameGame and testWithGame helper functions ( #1358 )
...
* Added withFlameGame() and withUserGame()
* format
* added tests
* switch to flameGameTest()
* fix pubspec
* switch to testFlameGame
* rename file
* fix pubspec
* fix dependencies
* rename testFlameGame -> testWithFlameGame
* fix a test for testWithFlameGame
2022-02-18 14:29:28 -03:00
Erick
5a8946c071
doc: adding vgv to sponsor list ( #1374 )
...
* doc: adding vgv to sponsor list
* smaller image
* smaller image
* smaller image
* Update README.md
2022-02-16 13:03:14 -03:00
Pasha Stetsenko
c753fc4636
feat: Components are now always added in the correct order ( #1337 )
...
* wip o lifecycle
* Component.add() is no longer async
* fix a test
* game.ready
* fix analyze issues
* FcsRoot
* fix tests
* fix game-in-game example
* Merge _addImpl with add()
* Move some of the functionality from prepare() into add()
* Moved FcsRoot into component.dart and renamed
* more doc-comments
* dartdocs
* Remove addLater in ComponentSet
* format
* temporarily switch to path dependency in flame_test
* restore a test
* format
* get rid of prepare() in Collidable
* eliminate prepare() in Draggable
* eradicate prepare() in Hoverable
* remove prepare() from Tappable
* remove prepare() method and isPrepared flag
* remove prepareComponent() from HasCollidables
* remove prepareComponent
* make flame_bloc depend on latest flame
* try to solve flame_bloc dependency graph
* fix game resize issue
* fix gameresize for zoomed game
* do not allow zero size in onGameResize
* move onMount() call into add()
* use loadingBuilder when size is 0
* ComponentTreeRoot is now in its own file
* addToParent()
* switch to mount queue
* rename isReadyToMount -> isPrepared
* make isMounted and isPrepared readonly
* minor
* print error stacktrace
* Component.add() is now async
* fix tests
* unused import
;
* undo irrelevant changes in Component
* update tests
* tests cleanup
* format
* expand doc for ComponentTreeRoot
* fix analysis error
* added tests
* update docs
* resolve version conflict in pubspec
* Apply suggestions from code review
Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com >
* late final
* remount() function
* remove mountQueue
* simplify ready()
* run mount during children queue processing
* simplify mounting
* rename childrenQueue->childreQueues
* merge tryMounting() with remount()
* avoid statics in components lifecycle
* remove ComponentTreeRoot
* remove dead code
* added a todo
* added docs for SingleGameInstance
* Added tests for SingleGameInstance
* added SingleGameInstance to the main doc site
* Added test for multi-widget games
* cleanup
* use state variable in Component
* remove test as dependency
* upgrade mocktail version
* upgrade dartdoc version
* fix analyzer warnings
* mark staticgameinstance as internal
* remove ComponentSet.addChild
* use log() from dart:developer
* undo changes in flame_bloc/pubspec.yaml
* redo changes in flame_bloc/pubspec.yaml
* fix dependency in flame_test
* remove test dependencies
* update pubspec files
* remove dart_code_metrics from pubspec
* fix a test
* Added GameTester.makeReady
* omit type on class variable when it can be inferred
Co-authored-by: Erick <erickzanardoo@gmail.com >
Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com >
Co-authored-by: Erick <erickzanardoo@gmail.com >
2022-02-14 23:22:44 +01:00
Pasha Stetsenko
19802c37b3
fix: menu dropdown in the docs ( #1369 )
2022-02-13 19:33:09 +00:00
Pasha Stetsenko
12cf8f7096
docs: Upgrade documentation site ( #1365 )
2022-02-13 07:50:13 +01:00
Erick
3e0589730c
feat: exporting cache classes ( #1368 )
...
* feat: exporting cache classes
* PR suggestion
2022-02-12 14:31:57 -03:00
Pasha Stetsenko
0ddf6d094a
remove "test" dependency ( #1367 )
2022-02-12 08:05:51 -03:00
Christian
9890e9caad
feat: Allow to pass a camera to Forge2D Game ( #1364 )
2022-02-11 15:23:42 +01:00