Note: This repository contains the source code of one of my early projects, originally developed in 2019. This documentation was added recently to provide a clear overview of the project structure and mechanics.
Asteroid Combat is a classic 2D space shooter game developed with the Unity game engine. Players control a spaceship, dodging and destroying incoming asteroids while progressing through increasingly difficult levels.
- Ship Control & Combat: Fluid touch-based controls to maneuver the spaceship and use laser missiles to destroy asteroids.
- Dynamic Obstacles: Randomly generated, moving asteroids that destroy the ship upon impact.
- Level Progression: A structured level system where difficulty ramps up as the player survives longer.
- In-Game Economy & Store: A fully functional shop system where players can spend earned points/currency to purchase upgrades or new ships. (Includes UI adaptations for local currency displays).
- AdMob Integration: Monetization is integrated using Google AdMob:
- Banner Ads
- Interstitial Ads
- Rewarded Video Ads
The core C# scripts are located in the Assets/Kodlar directory. Key components include:
OyunKontrol.cs: Core game loop, score management, and state handling.PlayerKontrol.cs: Handles player movement physics and collision detection.atesEt.cs: Projectile instantiation and firing mechanics.AsteroidHareket.cs&TemaslaYokOl.cs: Asteroid movement patterns and destruction logic.marketSatinAlma.cs&marketKontrol.cs: Manages the in-game store economy and persistent player data.*Reklam.cs: Integrates Google Mobile Ads SDK logic.
- Unity (with Android Build Support)
- Google Play Services (integrated via PlayServicesResolver)
- Google Mobile Ads Unity Plugin
- Clone this repository and open the project via Unity Hub.
- Navigate to
Assets/Sahneler(Scenes) and open the startup scene (Main Menu or Level 1). - Press "Play" in the Unity Editor to test, or compile for Android via "Build Settings".
HAKStudio