Skip to content

Latest commit

ย 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒ Save the World

A fast-paced 2D arcade pop game made in Unity.
Pop the falling meteors, dodge the skulls, and grab the green hearts before the world collapses.

Play / Download

Unity 2019.4.15f1 C# Windows Version 1.2

This is the first game I ever developed โ€” a small 2D Unity project kept here in full, source and builds included.


๐ŸŽฎ Play

โ–ถ๏ธ Play or download on itch.io

You can also run one of the prebuilt Windows players straight from this repository โ€” see Prebuilt builds.


๐Ÿ•น๏ธ How to Play

You start with 1 life and a score of 0. Everything falls from the top of the screen; you click things with the mouse.

Object What it does
meteor Meteor Click it โ†’ +1 score. Let it reach the bottom of the screen โ†’ โˆ’1 life.
skull Skull Don't touch it. Clicking it costs you โˆ’1 life. Letting it fall off-screen is harmless.
green heart Green Heart Click it โ†’ +1 life, up to a maximum of 3. Rare, and very fast.
heart Heart (HUD) Not clickable โ€” the hearts in the corner show how many lives you have left.

When your lives hit 0, every object still on screen pops at once, the GAME OVER screen appears, and you can choose PLAY AGAIN or MAIN MENU.

The goal is simple: get the highest score before the world collapses.


๐Ÿš€ Game Modes

Both modes are picked from the main menu.

Normal Mode

The full game โ€” all three objects spawn.

Spawns Meteor every 1 s ยท Skull every 5 s ยท Green heart after 20 s, then every 15 s
Lives Start at 1, maximum 3, shown as hearts in the HUD
Difficulty Everything falls faster in steps: extra downward force is added for every 10 points you score
Twist Past 50 points, green hearts start falling about twice as fast โ€” that +1 life gets much harder to catch

Speed Mode

Pure reflexes. Only meteors spawn โ€” no skulls, no green hearts, and no way to gain a life back.

Spawns Meteor every 1 s
Lives 1, and there is no HUD โ€” a single missed meteor ends the run
Difficulty Speed ramps up every 5 points instead of every 10, so it gets brutal roughly twice as fast

๐Ÿ“ธ Screenshots

Main Menu Normal Mode
Main Menu Normal Mode
Speed Mode Game Over
Speed Mode Game Over

๐Ÿ“ฆ Repository Layout

SaveTheWorld/
โ”œโ”€โ”€ SaveTheWorld/        # The Unity project โ€” open this folder in Unity
โ”‚   โ”œโ”€โ”€ Assets/
โ”‚   โ”‚   โ”œโ”€โ”€ Fonts/       # Arcade / pixel display fonts
โ”‚   โ”‚   โ”œโ”€โ”€ Images/      # Sprites, backgrounds, PSD sources
โ”‚   โ”‚   โ”œโ”€โ”€ Prefabs/     # Meteor, skull, green heart + pop animations
โ”‚   โ”‚   โ”œโ”€โ”€ Scenes/      # ana_sahne (menu), game (normal), speedgame (speed)
โ”‚   โ”‚   โ”œโ”€โ”€ Scripts/     # 17 C# MonoBehaviours
โ”‚   โ”‚   โ””โ”€โ”€ Sounds/      # Music and SFX
โ”‚   โ”œโ”€โ”€ Packages/
โ”‚   โ””โ”€โ”€ ProjectSettings/
โ”œโ”€โ”€ PlayforPC/           # Prebuilt Windows player
โ”œโ”€โ”€ Playformobile/       # Prebuilt Windows player, alternate scene layout
โ””โ”€โ”€ .github/

๐Ÿ–ฅ๏ธ Prebuilt builds

Both folders are ready-to-run Windows (x86) Unity players โ€” download the folder and run Save The World.exe. They ship the same executable and the same compiled game code; only the baked scene layouts differ (Playformobile uses a lighter background setup).

โš ๏ธ Despite its name, Playformobile is not an Android or iOS package โ€” it is a Windows build too. For mobile-friendly play, use the itch.io page.


๐Ÿ› ๏ธ Build from Source

Requirements: Unity 2019.4.15f1 (LTS) โ€” other 2019.4.x versions will very likely work as well.

git clone https://github.com/emirsakal/SaveTheWorld.git
  1. Open Unity Hub โ†’ Add project, and select the inner SaveTheWorld/ folder (the one containing Assets/, Packages/ and ProjectSettings/) โ€” not the repository root.
  2. Open Assets/Scenes/ana_sahne.unity and press โ–ถ Play.
  3. To make your own build: File โ†’ Build Settings โ†’ PC, Mac & Linux Standalone โ†’ Build. All three scenes are already registered in the build list.

๐Ÿงฉ How It Works

The code is small and deliberately straightforward โ€” a good read if you are starting out with Unity 2D. Scripts are named in Turkish (top = ball, kontrol = control, oluลŸturucu = spawner, can = life, puan/patlayan balon = score).

Script Role
oyunKontrol.cs Normal-mode game state: score, lives, heart HUD, game-over sequence
speedKontrol.cs The same for Speed Mode, minus the heart HUD
*olusturucu.cs / speedmavi.cs Spawners โ€” pick a random X at the top of the screen, instantiate an object, and add downward force scaled to the current score
*kontrol*.cs Per-object behaviour โ€” OnMouseDown to pop, plus the off-screen check at y < -5.5
Buton*.cs, digersahne.cs, speedSahne.cs Scene navigation for the menu and game-over buttons

Difficulty scaling in one line: each spawner computes -(score / N) (where N is 10 in Normal Mode and 5 in Speed Mode) and uses it to multiply the extra downward force applied to every new object. Below the first threshold the objects simply fall under gravity; past it, every tier makes the screen noticeably faster.

Technical details

  • Engine: Unity 2019.4.15f1, 2D (URP not used), Mono scripting backend
  • Rendering: Sprite Renderer + Unity UI (uGUI), TextMeshPro available
  • Physics: 2D rigidbodies with AddForce; objects are cleaned up once they pass y = -5.5
  • Input: Legacy input via OnMouseDown (mouse click / touch tap)
  • Product: Save The World v1.2 by EFS

๐Ÿ“„ License

The code in this repository is released under the MIT License.

The assets are not all mine to license. Several sprites, fonts and the background music come from third parties (see Credits) and remain under their own terms. If you want to reuse the art or audio, check the original source first โ€” the MIT License above covers the C# code and project files only.


๐Ÿ™Œ Credits

  • Game, art assembly and code: @emirsakal
  • Music: Cherry Metal by Arthur Vyncke

Made with Unity ๐ŸŽฎ โ€” my first game. Thanks for playing!

About

๐ŸŒ Fast-paced 2D arcade pop game made in Unity โ€” pop the meteors, dodge the skulls, catch the green hearts. Normal and Speed modes, my first game. Full Unity source + Windows builds included.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages