devilf_engine 0.0.9 copy "devilf_engine: ^0.0.9" to clipboard
devilf_engine: ^0.0.9 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,
      ),
    );
  }
}
3
likes
120
pub points
10%
popularity

Publisher

verified publisherymbok.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