2023-05-29 10:47:47 -05:00
|
|
|
function startmenu() {
|
2023-05-30 13:07:27 -05:00
|
|
|
GUI.column([
|
|
|
|
GUI.text.bind(this,"Press ENTER to start"),
|
|
|
|
GUI.text.bind(this,"Press ESCAPE to exit"),
|
|
|
|
]);
|
2023-05-29 10:47:47 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
register_gui(startmenu);
|
|
|
|
|
|
|
|
var startcontroller = {
|
|
|
|
input_enter_pressed() {
|
|
|
|
run("breakout.js");
|
|
|
|
Player.players[0].uncontrol(startcontroller);
|
|
|
|
unregister_gui(startmenu);
|
|
|
|
},
|
|
|
|
|
|
|
|
input_escape_pressed() {
|
|
|
|
quit();
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
Player.players[0].control(startcontroller);
|