From 1ac46939315084c43b05f391678801ee0a0c5bb2 Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Mon, 5 Jun 2023 19:48:46 +0000 Subject: [PATCH] tween --- breakout.js | 2 ++ startmenu.js | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/breakout.js b/breakout.js index 3b9531c..b7184d7 100644 --- a/breakout.js +++ b/breakout.js @@ -173,6 +173,7 @@ var pause = { unpause() { unregister_gui(pause.gui); + sim_start(); }, input_escape_pressed() { @@ -186,6 +187,7 @@ var gamepawn = { pause() { register_gui(pause.gui); + sim_pause(); }, input_escape_pressed() { diff --git a/startmenu.js b/startmenu.js index c24fd43..4c321fd 100644 --- a/startmenu.js +++ b/startmenu.js @@ -10,12 +10,16 @@ var exitgame = function() quit(); }; +var colorshifter = { + color: Color.green, +}; + +Tween.start(colorshifter.color, Color.green, Color.blue); var options = GUI.column({ items: [ - GUI.text_fn("START", {action: startgame}), + GUI.text_fn("START", {action: startgame, hovered: colorshifter }), GUI.text_fn("EXIT", {action: exitgame}), - GUI.image_fn({path:"ship1.png"}), ], hovered: { color: Color.blue,