devilf_engine 0.1.0
devilf_engine: ^0.1.0 copied to clipboard

A Flutter 2D RPG Game Engine On Web & Android & IOS.

example/lib/main.dart

import 'package:example/scene/game_scene.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

main() async {
  /// 游戏场景
  GameScene gameScene = GameScene();

  /// 运行游戏
  runApp(MainApp(gameScene));
}

/// 主界面
class MainApp extends StatelessWidget {

  /// 游戏场景
  final GameScene _gameScene;

  /// 创建主界面
  MainApp(this._gameScene);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'DevilF',
      theme: ThemeData(
        primarySwatch: Colors.deepOrange,
      ),
      home: Scaffold(
        body: _gameScene,
      ),
    );
  }
}
0
likes
100
pub points
28%
popularity

Publisher

ymbok.com

A Flutter 2D RPG Game Engine On Web & Android & IOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

audioplayers, flutter

More

Packages that depend on devilf_engine