Created
June 7, 2018 20:06
-
-
Save msg555/958f180f64532da87a7f33098533d4a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class script { | |
scene@ g; | |
textfield@ txt; | |
int init_filth; | |
int init_filth_block; | |
int init_enemy; | |
script() { | |
@g = get_scene(); | |
@txt = create_textfield(); | |
g.get_filth_level(init_filth, init_filth_block, init_enemy); | |
} | |
void draw(float subframe) { | |
int now_filth; | |
int now_filth_block; | |
int now_enemy; | |
g.get_filth_remaining(now_filth, now_filth_block, now_enemy); | |
txt.text("Filth: " + now_filth + "/" + init_filth + "\n" + | |
"FilthBlock: " + now_filth_block + "/" + init_filth_block + "\n" + | |
"Enemy: " + now_enemy + "/" + init_enemy + "\n"); | |
txt.align_vertical(-1); | |
txt.align_horizontal(-1); | |
txt.draw_hud(2, 2, -800 + 10, -450 + 10, 1, 1, 0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment