Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit f04d8ea

Browse files
Changed the play key in level select to enter
This is so you don't instantly jump at the start of a level unless you hit space really fast.
1 parent 476545e commit f04d8ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,7 @@ async fn main() {
20132013
}
20142014
}
20152015

2016-
if rl.is_key_pressed(KeyboardKey::KEY_SPACE) {
2016+
if rl.is_key_pressed(KeyboardKey::KEY_ENTER) {
20172017
parts = main_levels[current_level].data.split(";;;").collect();
20182018
_level_metadata = parts[0];
20192019
_object_string = parts[1];
@@ -2999,7 +2999,7 @@ async fn main() {
29992999
);
30003000

30013001
d.draw_text(
3002-
"Press Space to Play!",
3002+
"Press Enter to Play!",
30033003
20,
30043004
20,
30053005
20,

0 commit comments

Comments
 (0)