lemon_engine 0.2.6 lemon_engine: ^0.2.6 copied to clipboard
A simple loop and render library
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add lemon_engine
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
lemon_engine: ^0.2.6
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:lemon_engine/classes/vector2.dart';
import 'package:lemon_engine/functions/disable_right_click_context_menu.dart';
import 'package:lemon_engine/functions/fullscreen_enter.dart';
import 'package:lemon_engine/functions/fullscreen_exit.dart';
import 'package:lemon_engine/functions/key_pressed.dart';
import 'package:lemon_engine/functions/load_image.dart';
import 'package:lemon_engine/functions/register_on_mouse_scroll.dart';
import 'package:lemon_engine/functions/screen_to_world.dart';
import 'package:lemon_engine/functions/toggle_fullscreen.dart';
import 'package:lemon_engine/game.dart';
import 'package:lemon_engine/properties/fullscreen_active.dart';
import 'package:lemon_engine/properties/mouse_world.dart';
import 'package:lemon_engine/queries/on_screen.dart';
import 'package:lemon_engine/render/draw_atlas.dart';
import 'package:lemon_engine/render/draw_circle.dart';
import 'package:lemon_engine/render/draw_image.dart';
import 'package:lemon_engine/render/draw_image_rect.dart';
import 'package:lemon_engine/render/draw_text.dart';
import 'package:lemon_engine/state/build_context.dart';
import 'package:lemon_engine/state/camera.dart';
import 'package:lemon_engine/state/canvas.dart';
import 'package:lemon_engine/state/cursor.dart';
import 'package:lemon_engine/state/initialized.dart';
import 'package:lemon_engine/state/mouseDragging.dart';
import 'package:lemon_engine/state/onMouseScroll.dart';
import 'package:lemon_engine/state/paint.dart';
import 'package:lemon_engine/state/screen.dart';
import 'package:lemon_engine/state/textPainter.dart';
import 'package:lemon_engine/state/textStyle.dart';
import 'package:lemon_engine/state/zoom.dart';
import 'package:lemon_engine/typedefs/DrawCanvas.dart';