26 lines
528 B
JavaScript
26 lines
528 B
JavaScript
function startmenu() {
|
|
GUI.column([
|
|
GUI.text.bind(this,"Press uyyyyy start"),
|
|
GUI.image.bind(this,"bigball.png"),
|
|
GUI.text.bind(this,"Press ESCAPE to exit"),
|
|
], Window.dimensions.scale(0.5));
|
|
|
|
// GUI.image("bigball.png", [0,0]);
|
|
}
|
|
|
|
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);
|