flame-engine / flame_flare Goto Github PK
View Code? Open in Web Editor NEWUse flare animations on a flame game.
License: MIT License
Use flare animations on a flame game.
License: MIT License
Hello, now that version 1.0.0 of flame engine is almost out, it would be nice to have that package fit with the dependencies
// My code
class TurtleComponent extends FlareActorComponent {
final TurtleController turtleController;
TurtleComponent(this.turtleController)
: super(
FlareActorAnimation(
'assets/Turtle.flr',
controller: turtleController,
fit: BoxFit.none,
animation: 'Walk',
width: 400,
height: 400,
)
);
// @override
// void update(double t) {
// super.update(t);
// x+=10*t;
// width=600;
// }
}
class MyGame extends BaseGame with TapDetector {
final double squareSize = 128;
TurtleComponent turtleComponent;
TurtleController turtleController;
bool loaded = false;
MyGame() {
turtleController = TurtleController();
turtleComponent = TurtleComponent(turtleController);
turtleComponent.x = 30;
turtleComponent.y = 70;
add(turtleComponent);
}
@override
void render(Canvas canvas) {
super.render(canvas);
}
@override
void onTap() {
turtleController.Walk();
}
}
and this result:
Hello, few days ago I updated flutter, but then my flutter-flame project stopped working. (I am testing on linux)
I get the following error:
flutter: Another exception was thrown: 'package:flutter/src/rendering/mouse_tracking.dart': Failed assertion: line 311 pos 12: '!_debugDuringDeviceUpdate': is not true.
$ flutter doctor -v
[✓] Flutter (Channel master, 1.25.0-9.0.pre.57, on Linux, locale en_IL.UTF-8)
• Flutter version 1.25.0-9.0.pre.57 at /home/orr/SDK/flutter
• Framework revision f37969638d (32 hours ago), 2020-12-14 22:18:03 -0500
• Engine revision 1749dbcc1b
• Dart version 2.12.0 (build 2.12.0-150.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /home/orr/SDK/Android
• Platform android-30, build-tools 29.0.2
• ANDROID_HOME = /home/orr/SDK/Android
• Java binary at: /home/orr/SDK/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• CHROME_EXECUTABLE = /snap/bin/chromium
[✓] Linux toolchain - develop for Linux desktop
• clang version 7.0.0
• cmake version 3.16.3
• ninja version 1.10.0
• pkg-config version 0.29.1
[✓] Android Studio (version 3.5)
• Android Studio at /home/orr/SDK/android-studio
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] Connected device (2 available)
• Linux (desktop) • linux • linux-x64 • Linux
• Chrome (web) • chrome • web-javascript • Chromium 87.0.4280.88 snap
when I remove the flame widget, it seems to be ok
Is any way to change animation speed?
We have been using underscore on our underlying packages, (flame_svg
, flame_gamepad
, etc).
I think we should keep the pattern, what do you think?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.