lemon_engine 0.3.28 copy "lemon_engine: ^0.3.28" to clipboard
lemon_engine: ^0.3.28 copied to clipboard

outdated

build canvas games for the web

Getting Started #

// main.dart

import 'package:flutter/material.dart';
import 'package:lemon_engine/lemon_engine.dart';

void main() {
    Engine.run(
        title: "My Amazing Game",
        update: () {
           // game loop logic
        },
        render: (Canvas canvas, Size size){
           // render loop 
        },
        buildUI: (BuildContext context){
            return Stack(
                children: const [
                  Positioned(
                      top: 16,
                      left: 16,
                      child: Text("Hello World")),
                ],
             );
        }
    );
}
6
likes
0
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

build canvas games for the web

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, lemon_math, lemon_watch, shared_preferences, universal_html, url_strategy

More

Packages that depend on lemon_engine