Flame class

This class holds static references to some useful objects to use in your game.

You can access shared instances of AudioCache, Images and Util. Most games should need only one instance of each, and should use this class to manage that reference.

Constructors

Flame()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Properties

assets AssetsCache
Access a shard instance of AssetsCache class.
read / write
audio FlameAudio
Access a shared instance of the FlameAudio class.
read / write
bgm Bgm
read-only
bundle AssetBundle
read-only
images Images
Access a shared instance of the Images class.
read / write
util Util
Access a shared instance of the Util class.
read / write

Static Methods

init({AssetBundle bundle, bool fullScreen: true, DeviceOrientation orientation}) → Future<void>
initializeWidget() → void
TODO verify if this is still needed (I don't think so)