flame_ldtk 0.3.0 copy "flame_ldtk: ^0.3.0" to clipboard
flame_ldtk: ^0.3.0 copied to clipboard

LDtk support for flame-engine. Integrate LDtk levels into Flame Engine games.

example/lib/main.dart

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(),
        ),
      ),
    );
  }
}
0
likes
160
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

LDtk support for flame-engine. Integrate LDtk levels into Flame Engine games.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

csv, flame, flutter

More

Packages that depend on flame_ldtk