Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Commit

Permalink
Add random congratulation text
Browse files Browse the repository at this point in the history
  • Loading branch information
devkcud committed May 15, 2022
1 parent 1dc3a28 commit bf4ac44
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
12 changes: 12 additions & 0 deletions objects/objControl/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,15 @@ walkTimerFast = 0.15;
walkTimer = walkTimerFast;
onDoubleSpeed = false;

got = 0;
fin = [
"Good job",
"Good",
"Nice work",
"Nice",
"Great work",
"Great",
"Congratulations",
"Amazing",
];

7 changes: 5 additions & 2 deletions objects/objControl/Draw_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ if (gamePoints == gamePointsTotal) {
draw_rectangle(0, 0, room_width, room_height, false);
draw_set_alpha(1);
draw_set_color(c_white);

draw_text_scribble(room_width / 2, room_height / 2, "[fa_center][fntHeader][rainbow][fa_middle]Good job![/]");

randomize();
if (gotFin == 0) gotFin = fin[irandom_range(0, array_length(fin) - 1)];

draw_text_scribble(room_width / 2, room_height / 2, "[fa_center][fntHeader][rainbow][fa_middle]" + gotFin + "![/]");
draw_text_scribble(room_width / 2, room_height / 2 + 48, "[fa_center][fntScore][fa_middle]Press [pulse]Enter[/pulse] to continue.[/]");

if (room == rmTest) {
Expand Down
1 change: 1 addition & 0 deletions scripts/Transitions/Transitions.gml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ function TransitionChangeRoom() {
function TransitionFinished() {
layer_sequence_destroy(self.elementID);
global.midTransition = false;
objControl.gotFin = 0;
}

0 comments on commit bf4ac44

Please sign in to comment.