Closed increpare closed 9 years ago
Gfx.linethickness Music.volume Music.musicloop
["Game.title","(title)"], ["Game.homepage","(url)"], ["Game.background","(color)"], ["Game.foreground","(color)"], ["Gfx.clearscreeneachframe","(Bool)"],
three parts DONE 1 - implement code DONE 2 - check code DONE 3 - update docs DONE 4 - check docs DONE 5 - update examples 6 - check examples 7 - initglobal should init all game. stuff!
oops, I accidentally pushed half-completed stuff to head. some examples will be broken (but easily fixable). sorry!
Think this is good now. Be vigilant for horrible things, though!
following dom's misunderstanding of occasional
http://haxe.org/manual/class-field-property.html
Random.occasional() -> Random.occasional Gfx.linethickness(3) -> Gfx.linethickness = 3 Text.changesize(4) -> Text.size = 4 Music.setmusicvol(0.3) -> Music.musicvol = 0.3
ditto for
["Mouse.leftclick","()"], ["Mouse.leftheld","()"], ["Mouse.leftreleased","()"], ["Mouse.middleclick","()"], ["Mouse.middleheld","()"], ["Mouse.middlereleased","()"], ["Mouse.rightclick","()"], ["Mouse.rightheld","()"], ["Mouse.rightreleased","()"], ["Game.title","(title)"], ["Game.homepage","(url)"], ["Game.background","(color)"], ["Game.foreground","(color)"], ["Game.editor","():Bool"],
["Gfx.clearscreeneachframe","(Bool)"],
(you already have it for mousewheel)
not sure about the following, because they feel like dynamic things, and it'd be weird if they returned different values every time?
["Random.string","(length):String"], ["Random.bool","():Bool"], ["Random.occasional","():Bool"], ["Random.rare","():Bool"],
which is the case that brought all this up :P so i dunno!