Create games and apps with Dart.
- Precondition
- Dart is only supported in HTML5 platfoms exclusively with WebAssembly (wasmoon), it cannot be build with
--fengari
flag.
Applications made in Dart with gly engine API can be used on HTML5 platforms like WebOS and Tizen.
- Tutorial
- Todo
- Explain aboit Dart in gly engine
- Template
import 'dart:js_interop';
import 'dart:js_interop_unsafe';
import 'package:web/web.dart' as web;
import 'package:gly_std/gly_std.dart';
@JSExport()
class Game {
void init(GlyStd std) {
}
void loop(GlyStd std) {
}
void draw(GlyStd std) {
}
}
}
void main() {
web.window.setProperty('game_code'.toJS, createJSInteropWrapper(Game()));
}