flame_ldtk 0.3.0
flame_ldtk: ^0.3.0 copied to clipboard
LDtk support for flame-engine. Integrate LDtk levels into Flame Engine games.
import 'package:flutter/material.dart';
import 'package:flame/game.dart';
import 'game/simplified_game.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flame LDtk Example',
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: Colors.blue,
useMaterial3: true,
),
home: Scaffold(
body: GameWidget(
game: SimplifiedGame(),
),
),
);
}
}