Skip to content

A graphics engine for creating 2D games. Creating objects based on composition and painting on canvas.

License

Notifications You must be signed in to change notification settings

QiXi/composition_rendering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pub Version

Composition Rendering

A graphics engine for creating 2D games. Composition Rendering is not a game engine. This solution can be used as part of a third-party game engine. The functions of creating game scenes and managing graphic objects in the action scene are at your disposal. Object rendering is optimized to minimize the number of drawing commands calls. Drawing is based on Canvas.drawRawAtlas

Demo video

example scene

Usage

A simple usage example:

import 'package:composition_rendering/core.dart';
import 'package:composition_rendering/scene.dart';

void main() {
  final gameScene = GameScene();
}

class GameScene extends Scene {
  @override
  void init() {
    var texture = systems.textureSystem.getTextureRegion('bg.jpg');
    var background = systems.factorySystem.spawnSprite(texture!, Priority.background);
    add(background);
  }
}

Use with Flame

Plugin for integrating composition rendering into the Flame game engine. Pub Version

Support

You can support the development of libraries for creating multiplatform games in Flutter:

Patreon

History of creation

The source of inspiration was the resource Replica Island

Other projects that may have influenced the development of this work: