My first simple 2D game, with dedication to my friend Kasia, who was inspiration for this project
π» All resolutions support
π Sounds and music
Arrows left/right
: flame shotSpace
: bomb shotWSAD
: sprite control
If there is a problem with running, try to open it by console with command:
java -jar ValentinesGame.jar
- Linux
java -jar ValentinesGame.jar
If you will see errors about not having error like this:
java.lang.NoClassDefFoundError: javafx/application/Application
it means that you don't have javafx libraries and you need to follow this steps:
- Download javaFx libraries for linux javafx-oracle.com
- Unpack files into your java library destination, for example:
/usr/lib/jvm/java-14-oracle
- Run script made by myself for you:
-d
or--default
flag: open with default java installation folder-p=JAVA_PATH
or--path=JAVA_PATH
flag: open with custom java installation folder by JAVA_PATH
Examples:
./runGame.sh --default
./runGame.sh -d
./runGame.sh -p=/usr/lib/jvm/java-14-oracle
./runGame.sh --path=/usr/lib/jvm/java-14-oracle
Used Designs Patterns:
β
Builder
β
Strategy
Code overview:
βοΈ 48 classes (including enums and interfaces)
βοΈ over 3600 lines of code
Created by
gajerski.lukasz@gmail.com - feel free to contact me! β