Skip to content

sylee212/Fiery-Dragons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File structure

All code logic is created inside src/main/java/com/fierydragons/game

All code assets and scenes are inside src/main/resources

All the images located inside the ReadMePictures are for the readme

All relevant documents such as the Sprint 3 Reflection and UML can be found in their respective folders inside the Documents folder

Artefacts are inside out\artifacts

Video details

The video will be in mp4 which could be run on any player for example: windows media legacy player

OR

through VLC

Download here

https://www.videolan.org/vlc/

img_18.png

This project was constructed using the following software:

  • IntelliJ

  • OpenJDK 22

    • OpenJDK 17.0.11 with hsdis ( if JDK 22 cannot )
    • OpenJDK 21 for MAC
  • Windows Operating System, Mac Operating System

hardware:

  1. 64 bit architecture

It is detrimental that you use IntelliJ as well

To construct the project artefact using IntelliJ

1) click FILE

img.png

  1. click PROJECT STRUCTURE

img_1.png

  1. click artefacts and press the + button

img_2.png

  1. click JAR and click "From modules ..."

img_3.png

  1. you will see this screen next

img_4.png

  1. click on the folder icon in the text box for the "Main Class:" and click launcher and click OK

img_5.png

  1. build the artefact

img_6.png

  1. click "Build Artifacts..." and click build

img_7.png

  1. You will see this in the out folder

img_8.png

  1. to run the jar file, right click on the "file.jar", click run

img_9.png

Potential issues

If this issue appeared in the terminal

img_10.png

The "red warning" is normal, don't worry about it

HOWEVER, the issue found "Loading hsdis library failed" is a serious issue which is a result of the jdk you are using

Solution for the "Loading hsdis library failed"

img.png

  1. click PROJECT STRUCTURE

img_1.png

  1. click Build, click the drop down for the text field "SDK: ", click "Download JDK... "

img_11.png

  1. select version 17, click Download

img_12.png

  1. after downloading, go to the address

If the download for IntelliJ was using the default directories the jdk can be found here

C:\Users[ your computer user name ].jdk

for example: C:\Users\Bernard.jdks

  1. you may see something like this

img_13.png

  1. click cornetto-17.0.11, click bin, click server

img_14.png

Try to find the hsdis-amd64.dll, as shown in the picture NOTE, this is for a device with IntelliJ x64 installed

If hsdis-amd64,dll does not exist

  1. go to this link

https://chriswhocodes.com/hsdis/

img_15.png

click the blue link for windows for 64 bits if your device is 64 bits and 32 bits if 32 bits architecture

  1. go to the downloads folder / where this file is downloaded

  2. move the file to the folder of this address similar to what you did to check for hsdis-amd64.dll

C:\Users[ your computer user name ].jdk

img_14.png

  1. now try running it again

Trying to use the .jar without IntelliJ ( experimental )

This method of running the .jar file is mentioned to be experimental because, this was tested with the developer's second laptop but it could not run. However, this method could run with the developer's main laptop where this project was created in

Possible causes

  1. jdk version
  2. JRE version

The java in the main developer's laptop, go to this link

https://www.java.com/en/download/manual.jsp

img_16.png

  1. click the Windows download for offline

the file that will download will have this name

img_17.png

  1. run the executable

  2. run the .jar artifact

References

As indicated in the code some portions mainly with displaying UI were adapted from ChatGPT The pictures used in the game were sourced from

https://boardgamegeek.com/boardgame/23658/fiery-dragons.

https://www.rawpixel.com/

https://www.freepik.com/

https://www.cleanpng.com/

All rights are reserved to the respective owners.

About

This project was created throughout my study. It is a simple game utilizing Java with JavaFX. The main emphasis of this project is the utilization of OOP concepts, SOLID principles and JavaFX library for User Interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors