Dragon Engine

Introduction

Features

2nd Opponent Strums Custom Field Lua Function Notetype Prefix HTML5 Version

Extras

Draconis Mods

Lua Set Function:

setWindowDarkMode()(1.5.7+)

set window border to darkmode.

setWindowLightMode()(1.5.7+)

set window border to lightmode.

setWindowX(value:Int, duration:Float = 0.0, ease:String)(1.5.8+)(Deprecated)

set window X property.
value: any int number for x window position.
duration: duration for transition.
ease: The tweening method used, example: 'linear', 'circInOut'. All Tween Method.

setWindowY(value:Int, duration:Float = 0.0, ease:String)(1.5.8+)(Deprecated)

set window Y property.
value: any int number for y window position.
duration: duration for transition.
ease: The tweening method used, example: 'linear', 'circInOut'. All Tween Method.

setWindowWidth(value:Int, duration:Float = 0.0, ease:String)(1.5.8+)(Deprecated)

set window Width property.
value: any int number for width window.
duration: duration for transition.
ease: The tweening method used, example: 'linear', 'circInOut'. All Tween Method.

setWindowHeight(value:Int, duration:Float = 0.0, ease:String)(1.5.8+)(Deprecated)

set window Height property.
value: any int number for height window.
duration: duration for transition.
ease: The tweening method used, example: 'linear', 'circInOut'. All Tween Method

setWindowProperty(x:Null<Int>, y:Null<Int>, width:Null<Float>, height:Null<Float>, duration:Float = 0, ease:String, scale:Bool = false)(1.5.9.5+)

set window property.
x: window x position(leave empty to ignore).
y: window y position(leave empty to ignore).
width: window width(leave empty to ignore).
height: window height(leave empty to ignore).
duration: duration for transition.
ease: The tweening method used, example: 'linear', 'circInOut'. All Tween Method.
scale: if checked it will use mutliple screen resolution(0 to 1(max)).

resetWindow()

reset window to last window property before load song.

setSecondOpponent(value:Bool, trasition:Bool, trasition2:Bool)(1.6.0+)

set between 2nd strums or not.
value:toggle of wnd strums or normal
trasition: should add strums transition for player.
trasition2: should add strums transition for opponent.

changeGamemode(name:String = 'none', transition:Bool = true)(1.5.9.2+)

set gamemode.
name: name of gamemode.
transition: Transition notes.

changeSongSpeed(value:Float, duration:Float = 0, ease:String)(1.6.1.8+)

set song scroll speed.
value: number the scroll speed.
duration: duration of transition change scroll speed.
ease: The tweening method used, example: 'linear', 'circInOut'. All Tween Method.



Lua Object Function:

createCustomStrum(tag:String, data:Int = 4, camera:String = 'hud', scroilX:Float = 0, scrollY:Float = 0, downscroll:Null<Bool>)

tag: tag of for custom field.
data: how much strum to spawn.
camera: camera target to custom field(selection: 'game', 'hud', 'other').
scrollX : scroll speed of x.
scrollY : scroll speed of y.
downscroll: should up scroll?(if not set it use setting use)

removeStrum(tag:String)

remove custom field.
tag: name of custom field to remove.

addCamera(name:String = '', x:int, y:int, width:Float, height:Float, zoom:Float = 1)

add custom camera.
name: name custom camera('camera:name' if want access to setProperty() or getProperty()).
x: camera x position.
y: camera y position.
width: camera width.
height: camera height.
zoom: camera zoom.
Warning the last cameras always use by pause screen

removeCamera(name:String = '')

remove custom camera.
name: name custom camera.



Lua Get Function:

getResolutionWidth()(1.5.8+)

returning monitor width resolution. Shortcut of `getPropertyFromClass('openfl.Lib', 'application.application.window.display.bounds.width')`

getResolutionHeight()(1.5.8+)

returning monitor height resolution. Shortcut of `getPropertyFromClass('openfl.Lib', 'application.application.window.display.bounds.height')`



Lua Callback Function:

opponentNoteMiss(id:Int, noteData:Int, noteType:String, isSustainNote:Bool)(1.5.7+)

same as noteMiss(id:Int, noteData:Int, noteType:String, isSustainNote:Bool) but for opponent and most use for bothside and opponent gamemode.

opponentNoteMissPress(noteData:Int)(1.5.7+)

same as noteMiss(noteData:Int) but for opponent and most use for opponent gamemode.

opponentNoteMissPress(noteData:Int)(1.5.7+)

same as noteMiss(noteData:Int) but for opponent and most use for opponent gamemode.

onChangeGamemode(name:String, transition:Bool)(1.6.0.6+)

function when change gamemode(from changeGamemode())
name: returning the gamemode name after change.
transition(1.6.1.2+):return bool after change gamemode transition.

onChangeOpponent(dualstrum:Bool, transition:Bool, transition2:Bool)(1.6.0.6+)

function when change 2nd strums(from setSecondOpponent()).
dualstrum:returning bool of 2nd strums mode after change.
transition(1.6.1.2+): returning bool of transition after change.
transition2(1.6.1.2+): returning bool off transition2 after change.

Lua Variable Function:

gamemode(1.5.9+)

name of currently gamemode use.

extraui(1.6.0.7+)

variable of "extra ui" setting.

darkmode(1.6.1.10+)

variable of "Dark Mode" setting.

startPause(1.6.1.10+)

variable of "Start Pause" setting.

defaultGfStrumX0(1.6.0.9+)

default strums x 0 of gfStrums.(Only if)

defaultGfStrumX1(1.6.0.9+)

default strums x 1 of gfStrums.(Only if)

defaultGfStrumX2(1.6.0.9+)

default strums x 2 of gfStrums.(Only if)

defaultGfStrumX3(1.6.0.9+)

default strums x 3 of gfStrums.(Only if)

defaultGfStrumY0(1.6.0.9+)

default strums y 0 of gfStrums.(Only if)

defaultGfStrumY1(1.6.0.9+)

default strums y 1 of gfStrums.(Only if)

defaultGfStrumY2(1.6.0.9+)

default strums y 2 of gfStrums.(Only if)

defaultGfStrumY3(1.6.0.9+)

default strums y 3 of gfStrums.(Only if)