Commit Graph

3302 Commits

Author SHA1 Message Date
Lukas Klingsbo
90fe03dc32 Debug mode to be variable on BaseGame (#608)
* Debug mode to be variable on BaseGame

* Update debug mode docs

* Fix typo

Co-authored-by: Erick <erickzanardoo@gmail.com>
2021-01-05 20:20:52 -03:00
Erick
5517c25034 Creating a shortcut for Sprite and SpriteAnimation load (#609)
* Creating a shortcut for Sprite and SpriteAnimation load

* Adding changelod

* Lint

* PR suggestions
2021-01-05 20:17:34 -03:00
Christopher Casey
24433c18a0 Ensure non-repeating Timer callback fires (#610) 2021-01-05 20:12:39 -03:00
Luan Nico
6e98b07884 Fix aseprite constructor bug (#604) 2021-01-04 02:12:11 -05:00
Lukas Klingsbo
9921617fd5 Add test for removal of component children (#605)
* Add test for removal of component children

* Fix formatting
2021-01-03 23:43:39 +01:00
Jami Couch
95f2847f06 [fix-remove-children-issue] BaseComponent removes children marked as shouldRemove during update (#600)
Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>
2021-01-03 22:48:29 +01:00
Serge Matveenko
b824655e06 🚨 Make scripts/lint.sh work recursively in examples as intended (#602) 2021-01-03 18:30:10 +01:00
Luan Nico
b1a6b68c19 Improve error handling for onLoad (#601) 2021-01-02 14:10:07 -05:00
Luan Nico
a48e2f2579 Bump version for rc5 2020-12-30 14:51:42 -05:00
Erick
089438c6c8 Improvements on the overlay API (#592)
* 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>
2020-12-30 16:37:41 -03:00
Luan Nico
3bd75c8599 Add a badge with our current RC as well alongside the current stable version (#598) 2020-12-29 17:26:56 -05:00
Luan Nico
a310271036 Add a funding file with our patreon (#597) 2020-12-29 13:51:01 -05:00
Lukas Klingsbo
480990265b BaseComponent should return immutable chlidren iterable (#594)
* Add changelog entry

* Change to Iterator to minimize performance hit

* Revert "Change to Iterator to minimize performance hit"

This reverts commit e7260aa507d4a57441e798ee0ba40cd09a776417.

* Return UnmodifiableListView for children

* Update changelog

* Add generics

* Links in comment for children getter
2020-12-29 16:32:19 +01:00
Lukas Klingsbo
92b1f81d35 Remove develop branches from test (#596)
* Remove develop branches from test

* Add changlog entry
2020-12-29 00:04:00 +01:00
Jami Couch
a6eb12202a Fix issue in BaseComponent where addChild results in a TypeError (#593)
* [fix-add-child-issue] Fix issue in BaseComponent where addChild results in a TypeError

* [fix-add-child-issue] Change to using internal children set throughout BaseComponent
2020-12-28 20:22:39 +01:00
Lukas Klingsbo
46c025d60c Retreive -> Retrieve (#591)
* Retreive -> Retrieve

* Add changelog entry
2020-12-24 18:07:56 +01:00
Erick Zanardo
f692823af2 Reading for next dev iteration 2020-12-22 12:09:37 -03:00
Erick Zanardo
fea1198281 bumping version 2020-12-22 12:08:30 -03:00
Lukas Klingsbo
18d04c13c0 Remove Resizable mixin (#589)
* Remove Resizable mixin

* Update examples and changelog

* Fixed formatting

* Remove unused import
2020-12-22 15:55:29 +01:00
Lukas Klingsbo
dfb3a71c4f Use config defaults for TextBoxComponent (#588) 2020-12-22 15:50:10 +01:00
Erick
98482b4255 Fixing Game Render Box for flutter >= 1.25 (#587) 2020-12-22 11:38:59 -03:00
Erick
16057aae40 Adding canvas extensions for Vector2 (#580)
* Adding canvas extensions for Vector2

* Adding changelog

* Adding export
2020-12-21 15:14:56 -03:00
Erick
490141e8f7 Updating flame docs regarding web platform (#572)
* Updating flame docs regarding web platform

* Fixing PR comments
2020-12-21 14:49:34 -03:00
Lukas Klingsbo
4a265b8b36 Explicitly set what the effect modifies (#585)
* Explicitly set what the effect modifies

* Add changelog entry
2020-12-21 18:46:29 +01:00
Lukas Klingsbo
692213d5a4 Properly propagate onMount and onRemove to children (#579)
* 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
2020-12-21 12:42:45 +01:00
Lukas Klingsbo
fdb12f3265 Effect shouldn't affect non-used properties (#583)
* Effect shouldn't affect non-used properties

* Add changelog entry

* Check proper size variables
2020-12-20 21:28:18 +01:00
Lukas Klingsbo
7a81b029cb Fix rendering of children (#578)
* Fix rendering of children

* Game loop handles other restore
2020-12-20 21:23:58 +01:00
Luan Nico
c784047ce5 Rename the layer folder to layers to be consistent with other similar packages (#576)
Co-authored-by: Erick <erickzanardoo@gmail.com>
2020-12-20 14:15:48 -03:00
Erick
19064ad49a Removing Position from docs (#581) 2020-12-20 14:12:04 -03:00
Lukas Klingsbo
bd8257402b Rename Dragable -> Draggable (#575)
* Rename Dragable -> Draggable

* Hide ambigious class

* Add changelog entry

* Update docs
2020-12-19 01:10:17 +01:00
Yun Huang
ef213dc2e2 Passing SpriteAnimationData.loop out when constructing SpriteAnimationComponent (#577)
* Fix loop issue when creating SpriteAnimationComponent from SpriteAnimationData

* Update CHANGELOG

* Fixed linting issue

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>
2020-12-18 12:32:45 +01:00
Erick Zanardo
e70bb90924 Reading changelog for next dev iteration 2020-12-15 11:04:07 -03:00
Erick
1b440c0195 Merge pull request #574 from flame-engine/develop
Flame 1.0.0-rc3
2020-12-15 11:00:56 -03:00
Erick Zanardo
ef8dcaac9d Bumping version 2020-12-15 10:56:32 -03:00
Lukas Klingsbo
9d85e2e488 Fix ConcurrentModificationException on add in onMount (#573)
* Fix ConcurrentModificationException on add in onMount

* Fix ConcurrentModificationException for effects onComplete

* Wrap addLater block with isNotEmpty check

* Clear the addLater effects after adding them
2020-12-15 08:44:14 +01:00
Lukas Klingsbo
f42f775c97 Update PositionComponent docs (#571)
* Update PositionComponent docs

* Add changelog entry

* Add paragraph about toRect

* Comment about omitting super.render
2020-12-14 14:43:01 +01:00
Erick
c3edc23450 Merge pull request #567 from flame-engine/erick.game-size
Moving size from BaseGame to Game
2020-12-14 10:35:14 -03:00
Erick
615a8a1836 Merge branch 'develop' into erick.game-size 2020-12-14 10:31:54 -03:00
Erick
19b313b5e2 Merge pull request #554 from flame-engine/erick.load-comps
Adding Component#onLoad
2020-12-14 10:28:22 -03:00
Erick
02040971d7 Merge branch 'develop' into erick.load-comps 2020-12-14 10:24:39 -03:00
Lukas Klingsbo
5b5ba9fed4 Update SVG documentation (#570)
* Update the SVG docs

* Add changelog entry
2020-12-13 11:32:22 +01:00
Erick Zanardo
9eb84bdd03 Fixing game on stable 2020-12-12 16:23:48 -03:00
Erick Zanardo
58cdb2b77d PR suggestion 2020-12-12 16:08:18 -03:00
Erick Zanardo
317bc7d800 Fixing tests 2020-12-12 16:01:54 -03:00
Erick Zanardo
8f32df490d Formating 2020-12-12 15:53:33 -03:00
Erick Zanardo
6e56c23930 Some more linting 2020-12-12 15:42:42 -03:00
Erick Zanardo
c020383887 Linting 2020-12-12 18:28:00 +00:00
Erick Zanardo
bde8656510 Adding some fixes from PR comments 2020-12-12 18:28:00 +00:00
Erick Zanardo
11628b1edb Adding tests and handling composed components 2020-12-12 18:28:00 +00:00
Erick Zanardo
48f3dee9a9 Adding immediate inclusion components 2020-12-12 18:26:52 +00:00