System Functions

From Danmakufu Wiki
Jump to: navigation, search

Return to Functions

SetStgFrame

Arguments:
    1) STG space rectangle (left) (real)
    2) STG space rectangle (top) (real)
    3) STG space rectangle (right) (real)
    4) STG space rectangle (bottom) (real)
    5) minimum priority (real)
    6) maximum priority (real)

Sets the STG space frame. Default values are (32, 16, 416, 464, 20, 80).

GetScore

Returns the current score.

AddScore

Arguments:
    1) value

Adds the given value to the score.

GetGraze

Returns the current amount of graze.

AddGraze

Arguments:
    1) value

Adds the given value to the graze count.

GetPoint

Returns the current amount of point items collected (default is the blue "点" item).

AddPoint

Arguments:
    1) value

Adds the given value to the point count.

SetItemRenderPriorityI

Arguments:
    1) render priority (0-100)

Sets the render priority for items (default is 60).

SetShotRenderPriorityI

Arguments:
    1) render priority (0-100)

Sets the render priority for bullets (default is 50).

GetStgFrameRenderPriorityMinI

Returns the lowest render priority for the STG frame (0-100) (default is 20).

GetStgFrameRenderPriorityMaxI

Returns the highest render priority for the STG frame (0-100) (default is 80).

GetItemRenderPriorityI

Returns the render priority for items (0-100) (default is 60).

GetShotRenderPriorityI

Returns the render priority for shots (0-100) (default is 50).

GetPlayerRenderPriorityI

Returns the render priority for the player (0-100) (default is 30).

GetCameraFocusPermitPriorityI

Returns the highest render priority the 2D camera can affect (0-100) (default is 79)

GetStgFrameLeft

Returns the leftmost value of the STG frame.

GetStgFrameTop

Returns the topmost value of the STG frame.

GetStgFrameWidth

Returns the width of the STG frame.

GetStgFrameHeight

Returns the height of the STG frame.

GetScreenWidth

Returns the width of Danmakufu's drawing space.

GetScreenHeight

Returns the Height of Danmakufu's drawing space.

IsReplay

Returns true if a replay is playing, false otherwise.

AddArchiveFile

Arguments:
    1) archive file path
Returns:
    Boolean

Adds the path to use when reading images or sounds from an archive file. Returns true if the archive was successfully read, false otherwise.


Return to Functions