Created
July 20, 2014 20:01
-
-
Save DanBradbury/b15a99914311fa48ad39 to your computer and use it in GitHub Desktop.
Notes EP1
This file contains hidden or 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
 | |
``` | |
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