
STL: Slower Than Light
C#
1
8 weeks
‘Build a combat mechanic with a focus around chance to hit and modifiers’
First Year Trimester 1 University Project
Grade awarded: A
Design
Gameplay
A spaceship combat game entirely in the command console based loosely on FTL: Faster Than Light
Player can customise the spaceship in the hangar and equip it with different weapons, engines and hull which each give differnt stats to the player when in a combat scenario.
Hull -> health
Weapons -> damage and accuracy
Engines -> dodge chance
Combat is turn based
Ship customisation
Hangar
Player can switch between the components, current version of selected ship is shown as choices are made.
Current stats of the spaceship are shown in the info panel on the right
UI Panel drawing, static methods, OOP
Behind the scenes
Modular design allows the UI border panels to be drawn across any part of the code
Static class used for the player ship to keep it consistent across the game
Object orientation principles used to keep all UI components in its own class, with scope limited to only parts of the codebase that needs access.
Good naming conventions and tidy organisation facilitates maintainable code