A Java Swing application emulating the classic Space Trader game using Java Swing. A single player is able to buy and sell items, travel to planets, and interact with NPCs. The end culminates in the player dying, losing fuel and money, or immensed enough wealth to buy the whole Universe.
CS 2340 - Fall 2019 - Team 78
Authors: Brock Smith,
Chris Kim,
and Faris Durrani.
Implemented: Aug - Dec 2019
Original repo: https://github.com/brockwsmith225/2340Project
Current repo: https://github.com/farisdurrani/SpaceTraderGame
This game is built with the OOD principles SOLID and GRASP in mind in line
with best practices in software development for readability, maintainability,
and flexibility. A more thorough explanation with examples included can be
found in Milestone 7 OOD Principles.pdf
.
- Install Java 14+
- Navigate to
out\production\SpaceTraderGame
- Run the command
java spacetrader.ui.SpaceTrader
Alternatively, run on IntelliJ with the main class being
src\spacetrader\ui\SpaceTrader.java
- Upon running the program, the below welcome screen emerges:
- After setting up the game, this is the main screen of the game where players may choose to buy/sell at the Market, look at the Inventory of current items, and Travel to other planets
The main goal of this game is to accrue enough money to buy the Universe item costing $1000 at a certain planet, while not losing all money from excessive spending, dying from battles, or losing all fuel.