-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
window_set_fullscreen(true); | ||
window_set_fullscreen(!window_get_fullscreen()); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
exit; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
red_arrow_dmg = 0; | ||
blue_arrow_dmg = 0; | ||
red_spike_dmg = 0; | ||
blue_spike_dmg = 0; | ||
bleed_dmg = 0; | ||
curse_dmg = 0; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,41 @@ | ||
var c1 = #010101; | ||
var c2 = #62E448; | ||
var x2 = (o_player.hp/global.init_hp) * 69; | ||
draw_rectangle_color(GUI_W/2 - 29, GUI_H/2 + 36 + (225*o_camera.offset), GUI_W/2 + 36,GUI_H/2 + 44 + (225*o_camera.offset),c1,c1,c1,c1,false); | ||
draw_rectangle_color(GUI_W/2 - 30, GUI_H/2 + 37 + (225*o_camera.offset), GUI_W/2 - 30 + x2, GUI_H/2 + 43 + (225*o_camera.offset),c2,c2,c2,c2,false); | ||
var x2 = (o_player.hp/global.init_hp) * 66; | ||
draw_rectangle_color(GUI_W/2 - 30, GUI_H/2 + 33+ (225*o_camera.offset), GUI_W/2 + 36,GUI_H/2 + 41 + (225*o_camera.offset),c1,c1,c1,c1,false); | ||
draw_rectangle_color(GUI_W/2 - 29, GUI_H/2 + 34 + (225*o_camera.offset), GUI_W/2 - 30 + x2, GUI_H/2 + 40 + (225*o_camera.offset),c2,c2,c2,c2,false); | ||
|
||
draw_set_halign(fa_left); | ||
draw_set_valign(fa_top); | ||
|
||
draw_text_ext_transformed(10,10,"score: "+string(o_patience.frames),1,1000,.5,.5,0); | ||
var c = c_white; | ||
if o_patience.frames > 1800 c = c_lime; | ||
|
||
draw_text_ext_transformed_color(10,10,"score: "+string(o_patience.frames),1,1000,.5,.5,0,c,c,c,c,1); | ||
draw_text_ext_transformed(10,40,"fps: "+string(fps),1,1000,.5,.5,0); | ||
|
||
|
||
|
||
if global.game_end { | ||
var c1 = $000000; | ||
draw_set_alpha(0.8); | ||
draw_rectangle_color(GUI_W/2 - 300, GUI_H/2 - 400, GUI_W/2 + 300, GUI_H/2 + 400, c1,c1,c1,c1,false); | ||
draw_set_alpha(1); | ||
|
||
draw_sprite_ext(s_arrow_red,0,GUI_W/2 - 250, GUI_H/2 - 300,3,3,0,c_white,1); | ||
draw_text_ext_transformed(GUI_W/2 - 200, GUI_H/2 - 310, string(red_arrow_dmg),1,1000,.5,.5,0); | ||
|
||
draw_sprite_ext(s_arrow_blue,0,GUI_W/2 - 250, GUI_H/2 - 200,3,3,0,c_white,1); | ||
draw_text_ext_transformed(GUI_W/2 - 200, GUI_H/2 - 210, string(blue_arrow_dmg),1,1000,.5,.5,0); | ||
|
||
draw_sprite_ext(s_spike_red,0,GUI_W/2 - 250, GUI_H/2 - 100,3,3,0,c_white,1); | ||
draw_text_ext_transformed(GUI_W/2 - 200, GUI_H/2 - 110, string(red_spike_dmg),1,1000,.5,.5,0); | ||
|
||
draw_sprite_ext(s_spike_blue,0,GUI_W/2 - 250, GUI_H/2 - 0,3,3,0,c_white,1); | ||
draw_text_ext_transformed(GUI_W/2 - 200, GUI_H/2 - 10, string(blue_spike_dmg),1,1000,.5,.5,0); | ||
|
||
draw_text_ext_transformed(GUI_W/2 - 250, GUI_H/2 + 100, "bleed: " + string(bleed_dmg),1,1000,.5,.5,0); | ||
|
||
draw_text_ext_transformed(GUI_W/2 - 250, GUI_H/2 + 200, "curse (amplified): " +string(curse_dmg),1,1000,.5,.5,0); | ||
|
||
draw_text_ext_transformed(GUI_W/2 - 200, GUI_H/2 + 300, "Click anywhere to restart",1,1000,.5,.5,0); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
view_enabled = false; | ||
view_visible[0] = false; | ||
|
||
surface_resize(application_surface, 1288, 1008); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,6 @@ if reset_delay == 0 { | |
|
||
shoot_delay -= 1; | ||
reset_delay -= 1; | ||
frames += 1; | ||
if !global.game_end { | ||
frames += 1; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hp = clamp(hp, -1, infinity); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if global.game_end { | ||
if mouse_check_button(mb_any) { | ||
room_goto(menu); | ||
global.game_end = false; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
if has_hit exit; | ||
if o_player.hp < 0 exit; | ||
if global.game_end exit; | ||
if instance_place(x,y,o_player).do_hit == false exit; | ||
has_hit = true; | ||
if condition = CONDITIONS.PIERCE { | ||
o_player.hp -= damage + max(1,(1.25*sign(o_player.curse))); | ||
o_gui.blue_spike_dmg += damage; | ||
o_gui.curse_dmg += .25*sign(o_player.curse)*damage; | ||
} else { | ||
o_player.hp -= max(damage - o_player.def, damage / 10) * max(1,(1.25*sign(o_player.curse))); | ||
o_player.hp -= max(damage - o_player.def, damage / 10) * max(1,(1.25*sign(o_player.curse))); | ||
o_gui.red_spike_dmg += max(damage - o_player.def, damage / 10); | ||
o_gui.curse_dmg += .25*sign(o_player.curse)*max(damage - o_player.def, damage / 10); | ||
o_player.curse = 180; | ||
} | ||
|
||
|
||
o_player.flash = 4; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.