diff --git a/analysis_options.yaml b/analysis_options.yaml index f9b3034..ba5631f 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1 +1 @@ -include: package:flutter_lints/flutter.yaml +include: package:flame_lint/analysis_options.yaml \ No newline at end of file diff --git a/lib/game/game.dart b/lib/game/game.dart new file mode 100644 index 0000000..a9a3558 --- /dev/null +++ b/lib/game/game.dart @@ -0,0 +1,3 @@ +import 'package:flame/game.dart'; + +class HoldLabsGame extends FlameGame {} diff --git a/lib/main.dart b/lib/main.dart index a725658..799640b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,18 +1,20 @@ +import 'package:flame/game.dart'; import 'package:flutter/material.dart'; +import 'package:hold_labs/game/game.dart'; void main() { - runApp(const MainApp()); + runApp(const HoldLabsApp()); } -class MainApp extends StatelessWidget { - const MainApp({super.key}); +class HoldLabsApp extends StatelessWidget { + const HoldLabsApp({super.key}); @override Widget build(BuildContext context) { return const MaterialApp( home: Scaffold( - body: Center( - child: Text('Hello World!'), + body: GameWidget.controlled( + gameFactory: HoldLabsGame.new, ), ), ); diff --git a/pubspec.lock b/pubspec.lock index cadd8f8..0618ef8 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -49,32 +49,32 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.1" - flutter: + flame: dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: + description: + name: flame + sha256: "8703abbdb3aec264f91823f8af3de4f1a14656326aff0f344d90484be97ee8e7" + url: "https://pub.dev" + source: hosted + version: "1.12.0" + flame_lint: dependency: "direct dev" description: - name: flutter_lints - sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7 + name: flame_lint + sha256: "7dad67385e72cc8441cf39d2dfe16d69cc1687f56d91d5b27d7734f410d4edab" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "1.1.2" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" flutter_test: dependency: "direct dev" description: flutter source: sdk version: "0.0.0" - lints: - dependency: transitive - description: - name: lints - sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 - url: "https://pub.dev" - source: hosted - version: "3.0.0" matcher: dependency: transitive description: @@ -99,6 +99,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.10.0" + ordered_set: + dependency: transitive + description: + name: ordered_set + sha256: "3858c7d84619edfab87c3e367584648020903187edb70b52697646f4b2a93022" + url: "https://pub.dev" + source: hosted + version: "5.0.2" path: dependency: transitive description: @@ -178,3 +186,4 @@ packages: version: "0.3.0" sdks: dart: ">=3.2.3 <4.0.0" + flutter: ">=3.13.0" diff --git a/pubspec.yaml b/pubspec.yaml index 42b8461..f7e2b66 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,19 +1,20 @@ name: hold_labs description: "A game about temprature science" -publish_to: 'none' +publish_to: "none" version: 0.1.0 environment: - sdk: '>=3.2.3 <4.0.0' + sdk: ">=3.2.3 <4.0.0" dependencies: + flame: 1.12.0 flutter: sdk: flutter dev_dependencies: + flame_lint: 1.1.2 flutter_test: sdk: flutter - flutter_lints: ^3.0.1 flutter: uses-material-design: true