hello_dart library

Classes

Actor
Superclass for all Actors.
BitmapZ
Extends Bitmap to have a z-order.
Box
Boxes can be pushed by the player if there is nothing behind them.
Direction
The direction of an actor. [...]
DisplayObjectZ
Extends DisplayObject to have a z-order.
Field
A background field.
FlipBookZ
Extends FlipBook to have a z-order.
Messages
MessagesDe
Player
This is the superclass for all Players. [...]
Scenario
A Scenario contains information about the positions of the actors in the world. [...]
SpriteZ
Extends Sprite to have a z-order.
Star
A star can be put and removed by the player.
Tree
A tree is a barrier for the player. The player can neither move through nor push trees.
World
This class creates a world for the player and manages all other actors.

Properties

backgroundColorBottom String
The bottom color for the background gradient.
read / write
backgroundColorTop String
The top color for the background gradient.
read / write
character String
The player image. [...]
read / write
field String
The field image. [...]
read / write
messages Messages
The translated messages. [...]
read / write

Functions

createWorld(String scenarioFile, Player player, [num speed = 1]) → void
Initializes the world with the specified scenarioFile and shows it. [...]

Typedefs

PlayerAction = Animatable Function(double duration)
The type for a Player action function. [...]

Exceptions / Errors

FileNotFoundException
Exception for errors when trying to load a file.
HelloDartException
Superclass for all Hello Dart exceptions.
OverflowException
Exception that is thrown when the user created a start()-method that does not terminate in a reasonable time. [...]
PlayerException
Exception for errors created by the user who implemented the start()-method.
ScenarioException
Exception for errors when parsing the scenario.
StopException
Exception used to stop the execution inside the start()-method.