Skip to content

Instantly share code, notes, and snippets.

@DanBradbury
Created July 20, 2014 20:02
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 DanBradbury/81de7492b5e120a30767 to your computer and use it in GitHub Desktop.
Save DanBradbury/81de7492b5e120a30767 to your computer and use it in GitHub Desktop.
ep1

CURRENT_COLOR = c_red;

COLORS[0] = c_aqua;
COLORS[1] = c_fuchsia;
COLORS[2] = c_red;
COLORS[3] = c_lime;

RATIO = 1;

if(mouse_check_button_pressed(mb_left)) {
    index = random_range(0,4);
    CURRENT_COLOR = COLORS[index]
}else if(keyboard_check_pressed(vk_up)) {
    RATIO *= 1.1;
}else if(keyboard_check_pressed(vk_down)) {
    RATIO *= 0.9;
}

draw_set_color(CURRENT_COLOR);
draw_text_transformed(x,y,"Hello World", RATIO, RATIO, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment