diff --git a/assets/css/upgrades.css b/assets/css/upgrades.css index 33bac9e..c25fb93 100644 --- a/assets/css/upgrades.css +++ b/assets/css/upgrades.css @@ -27,9 +27,12 @@ opacity: 0; transform: rotate(0deg); } - 100% { - left: 100%; + 50% { opacity: 1; + } + 100% { + left: 90%; + opacity: 0; transform: rotate(360deg); } } diff --git a/assets/img/upgrades/emojis2.png b/assets/img/upgrades/emojis2.png new file mode 100644 index 0000000..bafea86 Binary files /dev/null and b/assets/img/upgrades/emojis2.png differ diff --git a/js/game.js b/js/game.js index f0913c8..46e9c4f 100644 --- a/js/game.js +++ b/js/game.js @@ -161,14 +161,13 @@ function onResetProgressClick() { // emojis function enableEmojis() { + const emojis = ['😎', '😆', '😛', '😏', '😔', '🥲', '😔', '😒', '😍', '😃', '🤓', '😊', '😁', '😄']; const upgEmojis = document.getElementById('upg-emojis'); upgEmojis.style.display = 'block'; - const emojis = ['😎', '😆', '😛', '😏', '😔', '🥲', '😔', '😒', '😍', '😃', '🤓', '😊', '😁', '😄']; - var randomEmoji = emojis[Math.floor(Math.random() * emojis.length)]; - setInterval(() => { mood += 200; + const randomEmoji = emojis[Math.floor(Math.random() * emojis.length)]; upgEmojis.innerText = randomEmoji; updateMoodCounter(); }, 5000); @@ -253,7 +252,7 @@ let upgrades = [ { id: 'emojis', name: 'Emoji Thruster', - description: 'Let the emotions flyyyyyyy +200mood/5s', + description: 'Flying emoji +200mood/5s', image: '../assets/img/upgrades/emojis.png', cost: 500, onPurchase: enableEmojis, @@ -282,6 +281,14 @@ let upgrades = [ cost: 3000, onPurchase: enableMixer, }, + { + id: 'emojis2', + name: 'More Emoji Thrusters', + description: 'Let the emojis flyyyyyyy +200mood/5s', + image: '../assets/img/upgrades/emojis2.png', + cost: 4000, + onPurchase: enableEmojis, + }, { id: 'cuteface', name: 'Cuteface',