/CMPT276

2D GAME demo

Primary LanguageJava

Demon tower is a 2 dimensional computer game where the player character is a adventure who runs away from demon and avoid trap, collect the key with treasure and escape from tower. The main character can move up, down left, and right, treasure can give player a bonus point, and Key can help player go to next level. Player have to leave the level in certain times. There is some medkit on the map, which can heal Player by 1, if Player touch any enemy or trap, they will lose one Hp. Once player pass the who level, player will win.

How to build the game:

  1. Clone project from the https://csil-git1.cs.surrey.sfu.ca/cmpt276s22_group24/project.git master branch
  2. Open project demontower in the IDE with maven structure.
  3. Open terminal of the IDE
  4. Type: "mvn compile" to run the game
  5. Game has been build.

How to run the game:

  1. Clone project from the https://csil-git1.cs.surrey.sfu.ca/cmpt276s22_group24/project.git master branch
  2. Open project demontower in the IDE with maven structure.
  3. Open terminal of the IDE
  4. Type: "mvn run" to run the game
  5. enjoy the game

How to run the test:

  1. Clone project from the https://csil-git1.cs.surrey.sfu.ca/cmpt276s22_group24/project.git master branch
  2. Open project demontower in the IDE with maven structure.
  3. Open terminal of the IDE
  4. Type: "mvn test" to run the game
  5. See the test result on terminal

How to create a JAR file of our game:

  1. Clone project from the https://csil-git1.cs.surrey.sfu.ca/cmpt276s22_group24/project.git master branch
  2. Open project demontower in the IDE with maven structure.
  3. Open terminal of the IDE
  4. Type: "mvn install" to create JAR file
  5. Check for JAR file in the "target" folder

How to create Javadocs:

  1. Clone project from the https://csil-git1.cs.surrey.sfu.ca/cmpt276s22_group24/project.git master branch
  2. Open project demontower in the IDE with maven structure.
  3. Open terminal of the IDE
  4. Type: "mvn site" to create Javadocs
  5. Find "project-reports" in the working directory + "target/site/" folder
  6. Run "project-reports.html" on any browser of your choice to see the Java documentation