refactor: Game is now a class, not a mixin (#1751)

This simple refactor allows us to write class MyGame extends Game, instead of a more awkward class MyGame with Game. However, using ... with Game still continues to work, so no changes necessary for the users.
This commit is contained in:
Pasha Stetsenko
2022-06-25 14:32:32 -07:00
committed by GitHub
parent 20f169cadb
commit 5225a4ebd5
20 changed files with 54 additions and 57 deletions

View File

@ -2,7 +2,7 @@ import 'package:flame/extensions.dart';
import 'package:flame/game.dart';
import 'package:flame/parallax.dart';
class NoFCSParallaxExample with Game {
class NoFCSParallaxExample extends Game {
static const String description = '''
This examples serves to test the Parallax feature outside of the Flame
Component System (FCS), use the other files in this folder for examples on