A 2D role-playing game in Java using Swing. (42 Silicon Valley)
- Architecture design following Model–View–Controller model
- Dependency management with Maven
- Input validation with Hibernate
- GUI implementation with Swing
- Documentation with UML class diagram
- Data persistence with MySQL
- Docker container for MySQL server (because no permission at school computer)
You have Maven
and Java 9 JDK
installed. Docker
and MySQL
are optional.
These scripts assume you have created a docker-machine named Char
.
# If necessary, create a new docker-machine.
docker-machine create --driver virtualbox Char
# Start docker-machine, download and initialize mysql container.
./setup/docker_init.sh
# WAIT a minute for mysql to finish initialization,
# and then run this script to populate the database.
./setup/mysql_init.sh
The game will still run if it cannot find the MySQL server, but you will not be able to save your progress.
mvn clean package
./run.sh (console|gui)