项目作者: Ukasz09

项目描述 :
💝 First game: Fantasy, survivor, shooter (Java, JavaFX)
高级语言: Java
项目地址: git://github.com/Ukasz09/Valentine-s-Day-Game.git
创建时间: 2019-07-04T08:43:11Z
项目社区:https://github.com/Ukasz09/Valentine-s-Day-Game

开源协议:MIT License

下载


💝 Valentine’s Game License Contributions welcome Status

My first simple 2D game, with dedication to my friend Kasia, who was inspiration for this project

💻 All resolutions support

🔉 Sounds and music

Gameplay



Screenshots

alt text
alt text
alt text
alt text

Game controls

  • Arrows left/right: flame shot
  • Space: bomb shot
  • WSAD: sprite control

How to use it

If there is a problem with running, try to open it by console with command:

  1. java -jar ValentinesGame.jar
  • Linux
  1. java -jar ValentinesGame.jar

If you will see errors about not having error like this:

  1. 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:

  1. ./runGame.sh --default
  2. ./runGame.sh -d
  3. ./runGame.sh -p=/usr/lib/jvm/java-14-oracle
  4. ./runGame.sh --path=/usr/lib/jvm/java-14-oracle

Software design stuff

Used Designs Patterns:



✅ Builder

✅ Strategy

Code overview:



✔️ 48 classes (including enums and interfaces)

✔️ over 3600 lines of code


📫 Contact

Created by



gajerski.lukasz@gmail.com - feel free to contact me! ✊