SublevelObject

Parent : Table

Library : Sublevel.*

Revision : 2016.0720

Overview

The SublevelObject reperesents a single level in the game.

Property

SublevelObject.scene

SublevelObject.view

SublevelObject.stageSpeed

SublevelObject.players

SublevelObject.player

SublevelObject.firstPlayer

SublevelObject.secondPlayer

Method

SublevelObject:isFinish

SublevelObject:insert

SublevelObject.scene

Type : Table

Library : Sublevel.*

Revision : 2016.0720

Overview

The scene in the game.

SublevelObject.view

Type : GroupObject

Library : Sublevel.*

Revision : 2016.0720

Overview

All of the display object must be stored in the group.

SublevelObject.stageSpeed

Type : Number

Library : Sublevel.*

Revision : 2016.0720

Overview

The scrolling speed in the game.

SublevelObject.players

Type : Table

Library : Sublevel.*

Revision : 2016.0720

Overview

The list stored all of the players.

SublevelObject.player

Type : CharacterObject

Library : Sublevel.*

Revision : 2016.0720

Overview

The main character. It the same as using SublevelObject.player.

SublevelObject.firstPlayer

Type : CharacterObject

Library : Sublevel.*

Revision : 2016.0720

Overview

The main character. It the same as using SublevelObject.player and SublevelObject.players[1].

SublevelObject.secondPlayer

Type : CharacterObject

Library : Sublevel.*

Revision : 2016.0720

Overview

The second player,It the same as using SublevelObject.players[2].

SublevelObject:isFinish

Type : Function

Library : Sublevel.*

Return value : Boolean

Revision : 2016.0720

Overview

Override the function to customize the time when level is finished. The function will be called at every frame in the game. Return true if you want finish the level.

SublevelObject:insert

Type : Function

Library : Sublevel.*

Return value : None

Revision : 2016.0720

Overview

The method insert the display object into the view of the game.

Syntax

SublevelObject:insert(obj)
obj (required)

DisplayObject. The display object you want to insert to the game scene.

results matching ""

    No results matching ""