devilf 0.0.4 devilf: ^0.0.4 copied to clipboard
(Devil Fighter) A little game engine implemented with flutter
import 'package:example/game_scene.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
main() async {
/// 游戏场景
GameScene gameScene = GameScene();
/// 运行游戏
runApp(MyApp(gameScene));
}
/// 主控件
class MyApp extends StatelessWidget {
GameScene _gameScene;
MyApp(this._gameScene);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Devilf',
theme: ThemeData(
primarySwatch: Colors.deepOrange,
),
home: Scaffold(
body: _gameScene,
),
);
}
}