eternal-space/objects/obj_level/Step_0.gml

19 lines
361 B
Plaintext
Raw Normal View History

2021-08-02 13:17:58 -04:00
/// @description Insert description here
// You can write your code in this editor
2021-08-10 00:07:54 -04:00
if((room == rm_level_1)&& lives <= 0){
2021-08-02 13:17:58 -04:00
room_goto(rm_gameover);
};
2021-08-10 00:07:54 -04:00
if((room == rm_gameover || room == rm_title)){
2021-08-02 13:17:58 -04:00
lives = 3;
score = 0;
2021-08-10 00:07:54 -04:00
if(keyboard_check_pressed(vk_enter)){
2021-08-02 13:17:58 -04:00
room_goto(rm_level_1);
2021-08-10 00:07:54 -04:00
};
2021-08-02 13:17:58 -04:00
};
if (score >= highscore){
highscore = score;
2021-08-10 00:07:54 -04:00
};