CP Story is a final project of the Programming Methodology class 2017 at Chulalongkorn University, learning about object-oriented programming. It is a game inspired by MapleStory but was modified to have characters, monsters, scenes, and skills related to Computer Engineering and Chulalongkorn University.
Since this project was initially developed without a package manager, external libraries must be imported manually.
- Download JavaFX SDK 17 and extract the downloaded ZIP file.
- Open Eclipse settings, go to
Java
>Build Path
>User Libraries
and create newJavaFX 17
library - Add all 8 External JARs from the downloaded JavaFX SDK to the
JavaFX 17
user library. - Open the project on Eclipse, right click on the root directory, go to
Build Path
>Add Libraries
, selectUser Library
and selectJavaFX 17
- Open
src/main/Main.java
and click Run. This should not be working yet. - Click dropdown next to the Run button and open Run Configurations, select Arguments tab, type the following to VM arguments text field, and uncheck
Use the -XstartOnFirstThread...
option.
--module-path <JAVAFX_SDK_DIR>/lib --add-modules=javafx.controls,javafx.media
- Click Run again, the game should now be working.
The JAR file is provided in the Releases page on GitHub. Download the latest version before continuing.
Because JavaFX library is not embedded in the JAR file, you still need to download the JavaFX SDK library like in the previous section. After having the JavaFX library downloaded and unzipped, execute this command in the terminal window to start the game.
java --module-path <JAVAFX_SDK_DIR>/lib \
--add-modules=javafx.controls,javafx.media \
-jar cpstory.jar
Thanks all these people to make this project happen!
sunboyy |
npmoewii |
You can find the original code of this project when it was submitted in branch final.