Skip to content

ashih42/swingy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swingy

A 2D role-playing game in Java using Swing. (42 Silicon Valley)

Learning Objectives

  • 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)

Prerequisites

You have Maven and Java 9 JDK installed. Docker and MySQL are optional.

(Optional) Set up MySQL Database in Docker

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.

Compiling

mvn clean package

Running

./run.sh (console|gui)

About

A 2D role-playing game in Java using Swing. (42 Silicon Valley)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published