Skip to content

SolAnna7/asteroids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asteroids

This is a simplified remake of the classic Asteroids game in Unity made for a coding assignment.

One ship, lots of asteroids, go pew pew!

image

Features

  • The classic asteroid game
  • Simple but charming pixel art
  • Locally persisted high score

Implementation

Motivations

  • Separation of game logic and unity api
  • Separation of part by responsibility
  • Performance (not overly optimized but does not wastes resources)
  • Easy to extend
  • Easy to configure
  • Testability

Dependency injection

Custom and easy to use DI system for better flexibility and testability

Wrapped system/unity services

  • System.Random and Unity Time are wrapped as injectable services, to make them easy to replace for testing

Input

Implementation for both the old and the new input system

  • Controller support

Persistance

  • StreamingAssets configuration file
  • Persisted high score values

Test Coverage

image

The important game logic classes and utility services have pretty good code coverage.

Known issues

  • No sound (work in progress)
  • Some UX issues in the menus
  • Some particle effect bugs

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published