Skip to content

Space Rock Shooter Template

Space Rock Shooter Template — arcade asteroid shooter

Space Rock Shooter Template is a complete Blueprint game template for a top-down asteroid shooter. Fly a spaceship inside a bounded play area, destroy rocks for score, pick a cannon loadout, and chase a persistent high score.

The project ships as a standalone Unreal project. All gameplay lives under Content/SpaceShooterTemplate/.

flowchart TB
  subgraph ui [UI]
    WBP_PlayerHUD
    WBP_HitDamage
  end
  GM[BP_SpaceRockGameMode]
  Ship[BP_Spaceship]
  Rock[BP_SpaceRock]
  Proj[BP_Projectile]
  Save[BP_SaveGameManager]
  GM --> WBP_PlayerHUD
  GM --> Ship
  GM --> Rock
  Ship --> Proj
  Rock --> WBP_HitDamage
  Ship --> Save
  GM --> Save
AreaPathPurpose
Demo mapMaps/DemoMapPlayable level — editor and game default map
Game modeBlueprints/BP_SpaceRockGameModeSpawning, boundaries, score, session flow
Player pawnBlueprints/BP_SpaceshipMovement, firing, lives, screen wrap
AsteroidsBlueprints/BP_SpaceRockSize maps, damage, splitting, VFX/SFX
ProjectilesBlueprints/BP_ProjectileMissile actor (Speed 10000, Damage 100)
CannonsBlueprints/SpaceshipCannons/BP_SingleShot, BP_TripleShot (extend BP_BaseCannon)
Save gameBlueprints/SaveGame/Slot SpaceShooterSaveGame, struct ST_SaveGame
HUDBlueprints/Widgets/WBP_PlayerHUD, WBP_HitDamage
MacrosBlueprints/BP_ObjectMacrosScreen wrap, deproject, vector helpers
EnumsBlueprints/Enums/ECannonType, ESpaceRockSize
sequenceDiagram
  participant HUD as WBP_PlayerHUD
  participant GM as BP_SpaceRockGameMode
  participant Ship as BP_Spaceship
  participant Rock as BP_SpaceRock
  HUD->>GM: Start Game (cannon type)
  GM->>Ship: Set Cannon Type + Start Spaceship
  GM->>GM: Start Asteroid Spawn
  loop While Current Asteroids < Max
    GM->>Rock: Spawn at screen edge
  end
  Ship->>Rock: Projectile hit
  Rock->>GM: Add Score
  Ship->>Ship: On Component Hit (lose life)
  GM->>HUD: Game over tab
  1. Start screen — cannon selection (SingleShot / TripleShot), high score, lives.
  2. Start gameStart Spaceship, Start Asteroid Spawn, HUD switches to in-game tab.
  3. Play — thrust/rotate, fire; rocks and ship wrap at play bounds.
  4. Score — rock destruction calls Add Score; WBP_HitDamage shows points.
  5. Lives — default Spaceship Lives = 3; zero lives triggers game over.
  6. RestartRestart Game resets the session; high score saves via BP_SaveGameManager.
SystemKey defaults
SpawningMax Asteroids To Spawn 30; spawn delay Random Time between 1.03.0 s
ShipSpaceship Lives 3; Refire Time 0.2; Acceleration 1000; Turn Rate 250
RocksHealth 100; four sizes with score 1040 (see Blueprint reference)
SaveSlot SpaceShooterSaveGame; High Score in ST_SaveGame
PageDescription
Getting startedOpen the project, controls, content layout
OverviewStep-by-step customization guides
Blueprint referenceProperties, functions, enums