Galaxy Shooter - Android Game
A space shooter game for Android built with Kotlin and Canvas API.
Features
How to Build
Requirements
Steps
1. Open Android Studio 2. Select "Open an existing Android Studio project" 3. Navigate to the GalaxyShooterAndroid folder 4. Wait for Gradle sync to complete 5. Connect your Android device or start an emulator 6. Click the Run button (βΆ) or press Shift+F10
Build APK
# Debug APK
./gradlew assembleDebug
# Release APK (requires signing) ./gradlew assembleRelease
The APK will be in app/build/outputs/apk/
Controls
Game Structure
app/src/main/java/com/galaxyshooter/
βββ GameActivity.kt # Main activity βββ GameView.kt # SurfaceView for rendering βββ game/ β βββ GameEngine.kt # Main game logic β βββ AssetManager.kt # Asset loading βββ entities/ βββ Player.kt # Player ship βββ Enemy.kt # Enemy types βββ Bullet.kt # Projectiles βββ PowerUp.kt # Power-ups βββ Particle.kt # Visual effects βββ Explosion.kt # Explosion effects βββ Star.kt # Background stars
Customization
Change Difficulty
Edit GameEngine.kt:
spawnInterval - Enemy spawn ratehealth, speed valuesshootInterval - Enemy fire rateAdd New Enemy Types
1. Add new type to EnemyType enum 2. Add configuration in Enemy.init 3. Add drawing method
Change Colors
Edit color values in entity classes or use colors.xml
License
MIT License - Feel free to use and modify!
A space shooter game for Android built with Kotlin and Canvas API.