Space Shooter – Source Code for Learning Purpose

This is a sample of a vertical shooter 1943 style made using Unity 5. It’s all very basic, but might be useful if you are starting with Unity. The code is commented.

This sample features:

Pooling

Unity UI (Menus, HUD)

Basic enemy behavior

Pause/Resume

Save Best Score

Scrolling Background (Stars/space)

Controls for PC (keyboard)

Download de source code for the Space Shooter Sample Here. It’s free, but you can donate on itch.io if you’re inclined =)

All the assets from Kenney, you can download more (and support his work) on his page.