Skip to content

fizzlewiththesizzle/MvH-World-Editor

Repository files navigation

MvH World Editor (v1.0)

Monsters vs. Heroes (MvH) World Editor is a JavaFX GUI application to create, load, and edit world files for the MvH game from Assignment 2

Usage

  • To run the program as a .jar file using JavaFX, first make sure you have the latest version of JavaFX installed
  • Using an IDE such as IntelliJ IDEA, create a run configuration using the .jar file
    • Look for an option called "VM Options" or similar in your .jar file run configuration settings
    • Add the following arguments depending on your JavaFX lib directory
    • --module-path "JavaFX lib folder path here" --add-modules=javafx.controls,javafx.fxml
    • Run the configuration

Program

The program consists of 4 main components:

  • File Menu
    • Load
    • Save
    • Quit
  • Help Menu
    • About
  • Create World
  • Entities
    • Hero
    • Monster
    • Remove
  • World View
  • Stats
  • Select Entity

File Menu

Option Description
Load Load existing World file
Save Save new World file
Quit Exit program

Help Menu

Option Description
About Shows program information

Create World

Option Description
Row Row dimension for new World
Column Column dimension for new World
Create Create new World using given dimensions

Entities

Hero

Option Description
Symbol Symbol for new Hero entity
Health Health stat for new Hero
Weapon Strength Weapon Strength stat for new Hero
Armor Strength Armor Strength stat for new Hero
Row Row index for new Hero
Column Column index for new Hero
Add Hero Add Hero using provided info

Monster

Option Description
Symbol Symbol for new Monster entity
Health Health stat for new Monster
Weapon Weapon Type for new Monster
Row Row index for new Monster
Column Column index for new Monster
Add Monster Add Monster using provided info

Remove

Option Description
Row Row index for entity to be removed
Column Column index for entity to be removed
Remove Remove entity at provided indexes

World View

Display World as a String with:

  • Walls as #
  • Floors as .
  • Heroes as their assigned symbol
  • Monsters as their assigned symbol

Stats and Select Entity

Displays the stats of newly created Hero and Monster entities or entities that whose row and column index have been provided by Select Entity

Author

Faisal Islam

About

CPSC 233 JavaFX Assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages