Skip to content

Commit

Permalink
Merge pull request #39 from squidistaken/esc-and-r
Browse files Browse the repository at this point in the history
added esc that resets game and r that resets the room
  • Loading branch information
squidistaken authored Jan 21, 2023
2 parents ec45fc3 + 346d56f commit d79db12
Show file tree
Hide file tree
Showing 248 changed files with 679 additions and 34 deletions.
11 changes: 9 additions & 2 deletions Y1B2 Game.yyp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions objects/obj_button_Esc/Step_0.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
if (keyboard_check(vk_escape)){
image_speed = 28;
if(image_index >= 55){
room_goto(rm_title);
}
}
else{
image_speed = 0;
image_index = 0;
}

36 changes: 36 additions & 0 deletions objects/obj_button_Esc/obj_button_Esc.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions objects/obj_button_R/Step_0.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
if (keyboard_check(ord("R"))){
image_speed = 28;
if(image_index >= 55){
room_restart();
}
}
else{
image_speed = 0;
image_index = 0;
}

36 changes: 36 additions & 0 deletions objects/obj_button_R/obj_button_R.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d79db12

Please sign in to comment.