Migrate examples back, change to monorepo (#701)

This commit is contained in:
Luan Nico
2021-03-12 09:24:50 -05:00
committed by GitHub
parent d3e8b87ee6
commit 769bb711c3
334 changed files with 2283 additions and 3279 deletions

View File

@ -0,0 +1,16 @@
import 'package:flame/components.dart';
import 'package:flame/game.dart';
class BasicSpriteGame extends BaseGame {
@override
Future<void> onLoad() async {
final sprite = await loadSprite('flame.png');
add(
SpriteComponent(
sprite: sprite,
position: Vector2.all(100),
size: sprite.srcSize * 2,
),
);
}
}