This commit is contained in:
John Alanbrook 2023-06-01 20:58:48 +00:00
parent 3ff4151fbd
commit 93f944affe

View file

@ -1,11 +1,20 @@
function startmenu() { function startmenu() {
GUI.column([ GUI.text_fn("SUPER BREAKOUT", {font_size:6, anchor: [0.5,0.5]}).draw(Window.dimensions.scale([0.5,0.9]));
GUI.text.bind(this,"Press ENTER start"), var options = GUI.column({
GUI.image.bind(this,"bigball.png"), items: [
GUI.text.bind(this,"Press ESCAPE to exit"), GUI.text_fn("Press ENTER start"),
], Window.dimensions.scale(0.5)); GUI.text_fn("Press ESCAPE to exit"),
GUI.text_fn("Press H for help"),
GUI.image_fn({path:"bigball.png"}),
GUI.image_fn({path:"arrow.png"}),
],
anchor: [0.5,0],
font_size: 2,
});
GUI.image("bigball.png", [300,300]); options.draw(Window.dimensions.scale([0.5,0.5]));
GUI.image_fn({path:"arrow.png", anchor: [0,0]}).draw([options.items[0].bb.l, options.items[0].bb.t]);
} }
register_gui(startmenu); register_gui(startmenu);