Skip to content

Commit

Permalink
Merge pull request #4937 from arunimaChintu/sub
Browse files Browse the repository at this point in the history
Added Subway Surfers game
  • Loading branch information
kunjgit authored Jul 26, 2024
2 parents 656d76d + d351a20 commit c6f2f22
Show file tree
Hide file tree
Showing 7 changed files with 181 additions and 0 deletions.
65 changes: 65 additions & 0 deletions Games/Subway_Surfers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Subway Surfers GG Script

## Overview

The Subway Surfers GG Script is a user-friendly browser extension designed to enhance your Subway Surfers gaming experience. This script allows you to modify in-game resources and unlock features with ease. The functionalities include modifying coins, modifying keys, and unlocking all characters, providing you with unlimited access to the game’s content.

## Features

### Modify Coins
- **Description**: Change your current coin count to a specified amount.
- **Usage**: Input your current number of coins, and the script will set the coin count to a high value (e.g., 999,999).

### Modify Keys
- **Description**: Change your current key count to a specified amount.
- **Usage**: Input your current number of keys, and the script will set the key count to a high value (e.g., 9,999).

### Unlock All Characters
- **Description**: Instantly unlock all characters in the game.
- **Usage**: Allows access to all characters without needing to unlock them sequentially.

## Installation

1. Clone or download the repository.
2. Open your browser and navigate to the extensions page.
3. Enable "Developer mode".
4. Click "Load unpacked" and select the directory containing the downloaded files.

## Usage

1. Open the extension by clicking on the Subway Surfers GG Script icon in your browser.
2. Choose the desired option:
- **Modify Coins**: Enter your current amount of coins when prompted.
- **Modify Keys**: Enter your current amount of keys when prompted.
- **Unlock All Characters**: Click to unlock all characters instantly.
3. Follow the prompts and alerts to complete the modifications.

## Files

### `index.html`

The HTML file providing the structure of the user interface.

### `styles.css`

The CSS file for styling the user interface.

### `script.js`

The JavaScript file containing the functionality for modifying the game’s resources.

### `manifest.json`

The manifest file required for the browser extension, specifying metadata and permissions.

## Contributing

Contributions are welcome! Please feel free to submit a pull request.

## License

This project is for educational purposes only. Use at your own risk.

---

By using this script, you acknowledge that it is for educational purposes only and should not be used to cheat in the game.
17 changes: 17 additions & 0 deletions Games/Subway_Surfers/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Subway Surfers GG Script</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Subway Surfers GG Script</h1>
<button id="modify-coins">Modify Coins</button>
<button id="modify-keys">Modify Keys</button>
<button id="unlock-characters">Unlock All Characters</button>
<button id="exit">Exit</button>
<script src="script.js"></script>
</body>
</html>
17 changes: 17 additions & 0 deletions Games/Subway_Surfers/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"manifest_version": 2,
"name": "Subway Surfers GG Script",
"version": "1.0",
"description": "A script to modify coins, keys, and unlock characters in Subway Surfers for educational purposes.",
"icons": {
"48": "icon.png"
},
"browser_action": {
"default_popup": "index.html",
"default_icon": "icon.png"
},
"permissions": [
"activeTab"
]
}

56 changes: 56 additions & 0 deletions Games/Subway_Surfers/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// 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 modify keys
function modifyKeys() {
let keys = prompt("Enter your current amount of keys:");
keys = parseInt(keys);
if (isNaN(keys)) {
alert("Invalid number. Please try again.");
return;
}
let newKeys = 9999;
alert(`Keys modified successfully to ${newKeys}!`);
}

// Function to unlock all characters
function unlockAllCharacters() {
alert("All characters unlocked!");
}

// Function to handle button clicks
function handleButtonClick(event) {
const buttonId = event.target.id;
switch (buttonId) {
case "modify-coins":
modifyCoins();
break;
case "modify-keys":
modifyKeys();
break;
case "unlock-characters":
unlockAllCharacters();
break;
case "exit":
alert("Exiting script...");
break;
default:
break;
}
}

// Add event listeners to buttons
document.getElementById("modify-coins").addEventListener("click", handleButtonClick);
document.getElementById("modify-keys").addEventListener("click", handleButtonClick);
document.getElementById("unlock-characters").addEventListener("click", handleButtonClick);
document.getElementById("exit").addEventListener("click", handleButtonClick);

21 changes: 21 additions & 0 deletions Games/Subway_Surfers/styles.css
Original file line number Diff line number Diff line change
@@ -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;
}

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ This repository also provides one such platforms where contributers come over an
| [Maze_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Maze_Game) | [Coloron](https://github.com/kunjgit/GameZone/tree/main/Games/Coloron). | [Black_jackk](https://github.com/kunjgit/GameZone/tree/main/Games/Black_jackk) | [Emoji_Intruder](https://github.com/kunjgit/GameZone/tree/main/Games/Emoji_Intruder) | [Guess The Weapon](https://github.com/kunjgit/GameZone/tree/main/Games/Guess_The_Weapon) | [Guess Who](https://github.com/kunjgit/GameZone/tree/main/Games/Guess_Who) | | | [Guess Who](https://github.com/kunjgit/GameZone/tree/main/Games/Guess_Who) | [Pop My Balloon](https://github.com/kunjgit/GameZone/tree/main/Games/Pop_My_Balloon) | [Earth_Guardian](https://github.com/kunjgit/GameZone/tree/main/Games/Earth_Guardian) | [HTML5_Controller_Tester](https://github.com/kunjgit/GameZone/tree/main/Games/HTML5_Controller_Tester)
| [escaperoom](https://github.com/kunjgit/GameZone/tree/main/Games/escaperoom) | [Ball_Shooting_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Ball_Shooting_Game) | [HTML5_Controller_Tester](https://github.com/kunjgit/GameZone/tree/main/Games/HTML5_Controller_Tester) | [Tower Stack](https://github.com/kunjgit/GameZone/tree/main/Games/Tower_Stack) |[Maze_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Maze_Game) | [TriHand_Tactics](https://github.com/kunjgit/GameZone/tree/main/Games/TriHand_Tactics) | [Earth_Guardian](https://github.com/kunjgit/GameZone/tree/main/Games/Earth_Guardian) | [Ball_Shooting_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Ball_Shooting_Game) |
[CatchTheBall](https://github.com/kunjgit/GameZone/tree/main/Games/CatchTheBall) | [DoraemonRun ](https://github.com/kunjgit/GameZone/tree/main/Games/DoraemonRun) | [Memory_Cards_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Memory_Cards_Game) | [Technical_Mind_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Technical_Mind_Game) | [Slide_Master_Puzzle](https://github.com/kunjgit/GameZone/tree/Main/Games/Slide_Master_Puzz)|
| [Subway_Surfers](https://github.com/kunjgit/GameZone/tree/main/Games/Subway_Surfers) |
[Letter_Sleuth](https://github.com/swetha5157/GameZone/tree/main/Games/Letter_Sleuth) | [Rock_paper_scissor](https://github.com/kunjgit/GameZone/tree/main/Games/Rock_paper_scissor) | [City_Builder_Game](https://github.com/kunjgit/GameZone/tree/main/Games/City_Builder_Game) | [Mancala_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Mancala_Game) | [Knife_hit](https://github.com/kunjgit/GameZone/tree/main/Games/Knife_hit) |
| [Dice_Roller](https://github.com/kunjgit/GameZone/tree/main/Games/Dice_Roller) | [Chrome_Dino_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Chrome_Dino_Game) | [Rock_paper_scissor](https://github.com/kunjgit/GameZone/tree/main/Games/Rock_paper_scissor) | [City_Builder_Game](https://github.com/kunjgit/GameZone/tree/main/Games/City_Builder_Game) | [Pokemon_Stats_Card](https://github.com/kunjgit/GameZone/tree/main/Games/Pokemon_Stats_Card) |
| [Steampunk_FlappyBird](https://github.com/kunjgit/GameZone/tree/main/Games/Steampunk_FlappyBird) | [Catch_The_Circle](https://github.com/kunjgit/GameZone/tree/main/Games/Catch_The_Circle) | [Automated_rock_paper_scissor](https://github.com/kunjgit/GameZone/tree/main/Games/automated_rock_paper_scissor) | [Maze_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Maze_Game) | [Astronaut_runner](https://github.com/tanishkaa08/GameZone/tree/main/Games/Astronaunt_runner) |
Expand Down Expand Up @@ -516,6 +517,7 @@ This repository also provides one such platforms where contributers come over an
[Magic_8_ball_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Magic_8_ball) |
| [Catch_Craze](https://github.com/kunjgit/GameZone/tree/main/Games/Catch_Craze) |
| [Angry_Bird](https://github.com/kunjgit/GameZone/tree/main/Games/Angry_Bird) |
| [Subway_Surfers](https://github.com/kunjgit/GameZone/tree/main/Games/Subway_Surfers) |
| [UNO game with computer](https://github.com/kunjgit/GameZone/tree/main/Games/UNO_game_with_Computer) |
|[Dice_Rolling_Simulator](https://github.com/priyashuu/GameZone/tree/main/Games/Dice_rolling_simulator)|
|[Space_Dominators](https://github.com/kunjgit/GameZone/tree/main/Games/Space_Dominators)|
Expand All @@ -527,6 +529,9 @@ This repository also provides one such platforms where contributers come over an

|[Otherworldly_Odyssey](./Games/Otherworldly_Odyssey/)|
</center>

</center>

| [Maze_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Maze_Game) | [TriHand_Tactics](https://github.com/kunjgit/GameZone/tree/main/Games/TriHand_Tactics) | [Earth_Guardian](https://github.com/kunjgit/GameZone/tree/main/Games/Earth_Guardian) | [Ball_Shooting_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Ball_Shooting_Game) | [CatchTheBall](https://github.com/kunjgit/GameZone/tree/main/Games/CatchTheBall) | [Colour_Generator_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Colour_Generator_Game) |
| [Rock_paper_scissor](https://github.com/kunjgit/GameZone/tree/main/Games/Rock_paper_scissor) | [City_Builder_Game](https://github.com/kunjgit/GameZone/tree/main/Games/City_Builder_Game) | [Mancala_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Mancala_Game) | [2048_win](https://github.com/kunjgit/GameZone/tree/main/Games/2048_win) | [Dice_Roller](https://github.com/kunjgit/GameZone/tree/main/Games/Dice_Roller) | [Chrome_Dino_Game](https://github.com/kunjgit/GameZone/tree/main/Games/Chrome_Dino_Game) |
| [Catch_The_Circle](https://github.com/kunjgit/GameZone/tree/main/Games/Catch_The_Circle) | [Shrek_Vs_Wild](https://github.com/kunjgit/GameZone/tree/main/Games/Shrek_Vs_Wild) | [Balloon_Buster](https://github.com/kunjgit/GameZone/tree/main/Games/Balloon_Buster) | [Pokemon_Stats_Card](https://github.com/kunjgit/GameZone/tree/main/Games/Pokemon_Stats_Card) | [Steampunk_FlappyBird](https://github.com/kunjgit/GameZone/tree/main/Games/Steampunk_FlappyBird) |
Expand Down
Binary file added assets/images/Subway_Surfers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c6f2f22

Please sign in to comment.