Skip to main content

fynkel_flutter 0.1.1 copy "fynkel_flutter: ^0.1.1" to clipboard
fynkel_flutter: ^0.1.1 copied to clipboard

Shows a Fynkel 3D game in a Flutter app. The FynkelApp, FynkelGame and FynkelView widgets, on macOS, iOS and Android.

example/example.md

import 'package:flutter/widgets.dart' show runApp;
import 'package:fynkel/fynkel.dart';
import 'package:fynkel_flutter/fynkel_flutter.dart';

void main() => runApp(FynkelApp(Hello.new));

class Hello extends GameObject {
  @override
  void onLoad() {
    super.onLoad();
    add(GameObject(transform: Transform.lookAt(Vec3(0, 1.5, 4), Vec3.zero), components: [Camera()]));
    add(GameObject(components: [Light.sun(direction: Vec3(-0.4, -1, -0.3))]));
    add(Cube());
  }
}

class Cube extends GameObject {
  Cube() : super(components: [MeshRenderer(Mesh.cube(), Material(color: Color(0xFFE0613A)))]);

  @override
  void onUpdate() {
    super.onUpdate();
    rotate(Vec3.up, time.delta);
  }
}
0
likes
150
points
--
downloads

Documentation

API reference

Publisher

verified publisherfynkel.com

Weekly Downloads

Shows a Fynkel 3D game in a Flutter app. The FynkelApp, FynkelGame and FynkelView widgets, on macOS, iOS and Android.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#game #game-engine #graphics

License

MIT (license)

Dependencies

flutter, flutter_test, fynkel

More

Packages that depend on fynkel_flutter

Packages that implement fynkel_flutter