Menu

Ship Design

Paul Tunison Ben

Rough layout for making the game.

In the game the player controls a ship that can move, shoot, and be modified by adding additional pieces to it. Additional pieces (guns, hulls, and engines) are collected by destroying enemy ships, which are constructed similarly to the player's ship. Pieces also have a certain amount of health, which is lost when pieces are struck by enemy guns. When all the health is gone, the piece is destroyed and pieces connected to it fall off the ship. As the player destroys enemy ships, the enemy considers the player more of a threat and responds with bigger, and more difficult opponents.

Ship component:
either an interface or superclass of anything that can be attached to a ship
Has properties such as: hit points, if other components can be mounted on it/how many, weight
Note: need some way of distinguishing levels of weapons, potentially have a level variable, a visitor pattern that colors pieces depending on stats, or maybe a decorator

"Ship":
a collection of ship components
may have variables that are the sum of ship parts e.g. total weight
will also contain A.I.

Ship Mechanics
The speed of a ship is dependent on the number of firing thrusters and the weight of the ship
TODO

"Life Pod"/ "Cockpit":
the base component of every Ship
if the Life Pod is destroyed the entire ship falls apart and the player/enemy is dead
has a small laser pointing forwards that will fire as long as nothing is attached to the front of the ship
also has an engine poiting backwards and some smaller manuevering thrusters
the engines do not fire if something is attached to them

"Hull":
The Hull allows the player to expand their ship
No functionality, but has mounts to attach other ship components
Hulls may be different sizes and have a different amount of mounts
Potential for special hull pieces that provide some benefit such as autorepair, engine boosters, automated turrets, etc.

"Weapon":
The weapon may end up being a superclass of all fire-able ship components
In the basic form it is a laser that shoots straight ahead with no mounts
Could potentially include missiles, mines, continuous beams, etc.
NOTE: consider case when there is a ship component placed in front of the Weapon

"Thruster":
A Thruster moves the ship in whatever direction it is mounted
A Thruster only fires when it will move the player in the desired direction e.g. a forward facing Thruster would push the ship backwards, so it should not fire when the player wishes to move forward
NOTE: consider case when there is a ship component placed in front of the Thruster


Related

Wiki: Welcome