Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rtasalem/collectors-item-game

Collector's Item is a text-based murder mystery game made using Java. The Swing library was used to implement GUI (graphical user interface) components including JFrame, JPanel, JTextArea, JLabel, JButton.
https://github.com/rtasalem/collectors-item-game

gui java swing text-based-game

Last synced: about 2 months ago
JSON representation

Collector's Item is a text-based murder mystery game made using Java. The Swing library was used to implement GUI (graphical user interface) components including JFrame, JPanel, JTextArea, JLabel, JButton.

Awesome Lists containing this project

README

        

# Collector's Item: A Text-based Murder Mystery
### Acknowledgements
Credit and thanks to [RyiSnow on YouTube](https://www.youtube.com/@RyiSnow) for their tutorial on [_How to Make a Text Adventure Game with GUI in Java_](https://www.youtube.com/playlist?list=PL_QPQmz5C6WUMB0xEMZosWbyQo_Kil0Fb). This tutorial was used as the main reference for building _Collector's Item_.
## Background
This is the first game I ever built: a text-based murdery mystery.

**Synopsis:**

You are D.S. Thomas Doyle. After arriving home late one night, your phone begins to ring.
Multiple homicides, all having taken place within the last 2 hours, all with the same M.O.
As D.S., you must attend each crime scene and search for clues that might expose the killer.
You are constantly faced with different choices, which shape how the killer is revealed.
Will the truth come out?
## Libraries & Technologies
**Swing:**
- This project utilises the Swing library (javax.swing) to make use of GUI (graphical user interface) components including JFrame, JPanel, JLabel, JButton, and JTextArea.
## Documentation
The documentation applied to this project is comments that can be found in the Game.java file. These comments explain how the game plot is developed through giving the player two choices to make throughout each of the chapters.
## Learning Milestones
- From this project I learned how to use GUI components in Java to create a text-based game in its own dedicated window.
- A core feature of the game is that the player is presented with multiple choices which cause small changes in the game's progression (e.g. in the plot and dialogue). This was achieved using switch cases and setting action commands on the different choices that the player is presented with during gameplay.
## Getting Started
After cloning the repository, run the Game.java file to begin playing _Collector's Item_.