diff --git a/Games/Angry Bird/index.html b/Games/Angry Bird/index.html new file mode 100644 index 0000000000..abffdb8a4f --- /dev/null +++ b/Games/Angry Bird/index.html @@ -0,0 +1,17 @@ + + + + + + Angry Birds GG Script + + + +

Angry Birds GG Script

+ + + + + + + diff --git a/Games/Angry Bird/manifest.json b/Games/Angry Bird/manifest.json new file mode 100644 index 0000000000..130edbacf6 --- /dev/null +++ b/Games/Angry Bird/manifest.json @@ -0,0 +1,17 @@ +{ + "manifest_version": 2, + "name": "Angry Birds GG Script", + "version": "1.0", + "description": "A script to modify coins, unlock levels, and unlock birds in Angry Birds for educational purposes.", + "icons": { + "48": "icon.png" + }, + "browser_action": { + "default_popup": "index.html", + "default_icon": "icon.png" + }, + "permissions": [ + "activeTab" + ] + } + \ No newline at end of file diff --git a/Games/Angry Bird/script.js b/Games/Angry Bird/script.js new file mode 100644 index 0000000000..65ec81a0cb --- /dev/null +++ b/Games/Angry Bird/script.js @@ -0,0 +1,49 @@ +// Function to modify coins +function modifyCoins() { + let coins = prompt("Enter your current amount of coins:"); + coins = parseInt(coins); + if (isNaN(coins)) { + alert("Invalid number. Please try again."); + return; + } + let newCoins = 999999; + alert(`Coins modified successfully to ${newCoins}!`); + } + + // Function to unlock all levels + function unlockAllLevels() { + alert("All levels unlocked!"); + } + + // Function to unlock all birds + function unlockAllBirds() { + alert("All birds unlocked!"); + } + + // Function to handle button clicks + function handleButtonClick(event) { + const buttonId = event.target.id; + switch (buttonId) { + case "modify-coins": + modifyCoins(); + break; + case "unlock-levels": + unlockAllLevels(); + break; + case "unlock-birds": + unlockAllBirds(); + break; + case "exit": + alert("Exiting script..."); + break; + default: + break; + } + } + + // Add event listeners to buttons + document.getElementById("modify-coins").addEventListener("click", handleButtonClick); + document.getElementById("unlock-levels").addEventListener("click", handleButtonClick); + document.getElementById("unlock-birds").addEventListener("click", handleButtonClick); + document.getElementById("exit").addEventListener("click", handleButtonClick); + \ No newline at end of file diff --git a/Games/Angry Bird/styles.css b/Games/Angry Bird/styles.css new file mode 100644 index 0000000000..ae365627e9 --- /dev/null +++ b/Games/Angry Bird/styles.css @@ -0,0 +1,21 @@ +body { + font-family: Arial, sans-serif; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + height: 100vh; + background-color: #f0f0f0; + } + + button { + margin: 10px; + padding: 10px 20px; + font-size: 16px; + cursor: pointer; + } + + h1 { + margin-bottom: 20px; + } + \ No newline at end of file diff --git a/assets/images/AngryBird.png b/assets/images/AngryBird.png new file mode 100644 index 0000000000..668bb327ab Binary files /dev/null and b/assets/images/AngryBird.png differ