Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// @description entrée dans menu de transition = next niveau
- // si la touche F12 est push = plein ecran
- if (keyboard_check_pressed(vk_f12)) {
- if window_get_fullscreen() {
- window_set_fullscreen(false);
- } else {
- window_set_fullscreen(true);
- }
- }
- // CLAVIER
- if keyboard_check_pressed(vk_enter){
- keyboard_clear(vk_enter);
- if (room == rm_start0) {
- room_goto(rm_start1);
- }
- else if (room == rm_game0){
- room_goto(rm_letutorial);
- }
- else if (room == rm_letutorial){
- room_goto(rm_debutant1);
- }
- else if (room == rm_letutorial2){
- room_goto(rm_debutant2);
- }
- else if (room == rm_niv1world1){
- room_goto(rm_game1);
- }
- else if (room == rm_niv2world1){
- room_goto(rm_game2);
- }
- else if (room == rm_niv3world1){
- room_goto(rm_game3);
- }
- else if (room == rm_niv4world1){
- room_goto(rm_game4);
- }
- else if (room == rm_niv5world1){
- room_goto(rm_game5);
- }
- else if (room == rm_niv6world1){
- room_goto(rm_game6);
- }
- else if (room == rm_niv7world1){
- room_goto(rm_game7);
- }
- else if (room == rm_niv8world1){
- room_goto(rm_game8);
- }
- else if (room == rm_niv9world1){
- room_goto(rm_game9);
- }
- else if (room == rm_niv10world1){
- room_goto(rm_game10);
- }
- else if (room == rm_world2transition){
- room_goto(rm_world2endof_playtest);
- }
- else if (room == rm_world2endof_playtest){
- room_goto(rm_start0);
- }
- else if (room == rm_gameover){
- game_restart();
- }
- }
- // GAMEPAD
- if gamepad_is_connected(0){
- if gamepad_button_check(0,gp_start){
- if (room == rm_niv1world1){
- room_goto(rm_game1);
- }
- else if (room == rm_niv2world1){
- room_goto(rm_game2);
- }
- else if (room == rm_niv3world1){
- room_goto(rm_game3);
- }
- else if (room == rm_niv4world1){
- room_goto(rm_game4);
- }
- else if (room == rm_niv5world1){
- room_goto(rm_game5);
- }
- else if (room == rm_niv6world1){
- room_goto(rm_game6);
- }
- else if (room == rm_niv7world1){
- room_goto(rm_game7);
- }
- else if (room == rm_niv8world1){
- room_goto(rm_game8);
- }
- else if (room == rm_niv9world1){
- room_goto(rm_game9);
- }
- else if (room == rm_niv10world1){
- room_goto(rm_game10);
- }
- else if (room == rm_world2transition){
- room_goto(rm_world2endof_playtest);
- }
- else if (room == rm_world2endof_playtest){
- room_goto(rm_start0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement