105 Commits

Author SHA1 Message Date
2bc4b7ad9d refactor classes in game.dart to separate files 2020-04-20 21:11:54 +02:00
55a358dc74 static async fromAsset factory method | optional add all values in constructor 2020-04-20 16:44:52 +02:00
dc290df280 add sprite batch api 2020-04-19 08:47:10 +02:00
7af07f4700 overridePaint and adding to SpriteComponent as well 2020-04-02 20:17:19 -03:00
ac36472b36 Linting 2020-04-01 23:07:47 -03:00
2c705ebcee Adding Animation#paint 2020-04-01 21:36:29 -03:00
67d3abe888 Adding Component#onDestroy 2020-03-28 14:30:29 -03:00
0fcccf34aa Merge branch 'develop' into fixing-text-box-start-end 2020-03-23 23:29:25 -04:00
a2b04536ab Fixing line start and line end handling for text box 2020-03-23 23:06:19 -04:00
afb4264107 Support line feed when create a sequenced animation from a single image source 2020-03-20 19:13:16 +08:00
367015ba6c Fixing Tapable position checking on event handling 2020-03-17 23:16:45 -03:00
225a5b0fac Check if the component has been successfully loaded before rendering the component 2020-03-17 20:14:07 +08:00
2a57448051 amend type for width and height property 2020-03-15 12:07:06 +08:00
f5519ddcd6 Update lib/components/component.dart
Co-Authored-By: Luan Nico <luanpotter27@gmail.com>
2020-03-09 14:19:36 -03:00
992e4ff69d Update lib/components/component.dart
Co-Authored-By: Luan Nico <luanpotter27@gmail.com>
2020-03-09 14:19:29 -03:00
d6f2c5e960 Adding Component#onMount 2020-03-05 21:18:02 -03:00
d8ce7421ff Update text_component.dart
Optimized TextComponent so it wouldn't do layout on every frame
2020-03-03 19:02:49 +01:00
b49a4ee08c add a default value for loop 2020-02-15 17:18:56 +08:00
d1e70653c6 add loop for AnimationComponent.sequenced 2020-02-15 15:27:35 +08:00
fde6ac6c7e Expose stepTime paramter from the Animation class to the animation component 2020-02-04 21:45:16 -05:00
200c3da505 Improving FlareComponent API and updating FlareFlutter dependency 2020-01-30 19:07:26 -03:00
ed65d5f326 adding component 2020-01-11 12:43:09 -05:00
8b250bcf7e fixing code formatting 2020-01-09 09:42:37 -05:00
3c55220e7a cleaning up formating and making a single paint var 2020-01-03 19:56:27 -05:00
43ef6ed227 changing the image rendering of text to high quality to ensure sharp edges on rendering 2020-01-03 18:16:53 -05:00
56bc66bc91 Merge branch 'develop' into particles 2019-12-01 17:17:12 +03:00
0f98a8542d chore: format
fix: doc/example/particles/readme, attempt to embed webm preview
fix: doc/example/particles better sample for chaining
refactor: Particle, dropped duration support
2019-11-28 23:02:28 +03:00
ff425afa26 feat: docs, adde particles docs
fix: doc/examples/particles, added web to .gitignore
feat: doc/examples/particles, added more examples,
refactor: Particle does not extend Component
refactor: Particle subclasses in separate folder
refactor: ParticleComponent is now simple container
fix: SingleChildParticle, asserts for child existing
feat: AnimationParticle for Flame Animation
feat: ComponentParticle for Flame Component
feat: SpriteParticle for Flame Sprite
2019-11-28 18:01:31 +03:00
4be300791e PR suggestion 2019-11-27 22:12:20 -03:00
bb5d876cdb Adding TimerComponent class 2019-11-27 22:12:20 -03:00
a49e9b7494 chore: format /components/particles files 2019-11-25 18:18:52 +03:00
38e3685cda feat: particles 2019-11-25 17:58:16 +03:00
f4fc7df28a Fixing FlareAnimation API and FlareComponent renderization 2019-10-29 20:09:57 -03:00
48b9b4fe44 Fixing nits and warnings on the code 2019-10-14 17:16:23 -04:00
1f067f5c25 adding example and only calculating flip if needed 2019-10-07 22:44:44 -03:00
627e12bba2 add invert X or Y axis to position component 2019-10-07 22:44:44 -03:00
a349754428 Rename Tapeable to Tapable 2019-09-24 19:03:36 -03:00
11a479cf24 formatting 2019-09-21 13:04:02 -04:00
e2622cde41 improve mixins & adds HasGameRef & fixes composedComponent 2019-09-21 12:59:32 -04:00
ef7e2303ce Formating 2019-09-10 21:16:45 -03:00
3498723801 Adding tap events 2019-09-10 21:16:45 -03:00
110aa376d8 formatting files 2019-08-10 15:40:38 -03:00
ccc4677663 changing animation to component 2019-08-10 15:40:38 -03:00
51d259038f formatting files 2019-08-10 15:40:38 -03:00
411a39fd72 exposing objects layer from tiled file 2019-08-10 15:40:38 -03:00
3549258f25 bumped versions and fixed warnings 2019-08-03 17:24:13 -03:00
029a392fed refactoring to get all optional parameters as optionals 2019-08-03 15:39:33 -03:00
19b50dd87f Added possibility to see current base offset 2019-08-02 11:29:11 -06:00
806d8d8f2a ParallaxComponent that can move layers in 2D
You can now move the layers in the parallax in the Y-axis, as
well as the X-axis. It has extensive configurability of how the images
should align, fill and repeat on the screen.
2019-08-02 01:37:44 -06:00
965c5758be fix warning 2019-07-15 09:32:01 -03:00