Skip to content

Instantly share code, notes, and snippets.

@msg555
Created June 7, 2018 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msg555/958f180f64532da87a7f33098533d4a6 to your computer and use it in GitHub Desktop.
Save msg555/958f180f64532da87a7f33098533d4a6 to your computer and use it in GitHub Desktop.
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