mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-30 08:27:36 +08:00
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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user