https://github.com/carldea/jfxgen
A simple JavaFX game engine.
https://github.com/carldea/jfxgen
Last synced: about 1 year ago
JSON representation
A simple JavaFX game engine.
- Host: GitHub
- URL: https://github.com/carldea/jfxgen
- Owner: carldea
- Created: 2012-04-22T21:49:40.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2019-01-13T04:12:27.000Z (over 7 years ago)
- Last Synced: 2025-03-24T05:43:47.074Z (over 1 year ago)
- Language: Java
- Size: 195 KB
- Stars: 28
- Watchers: 3
- Forks: 20
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
JFXGen
======
A simple JavaFX game engine.
---------------------------------------------------------------
JFXGen - JavaFX Game Engine
Welcome to a simple JavaFX game engine. This project consists of the core project called jfxgenproj and sub modules or demos. This document will help you show you how to setup your environment and build executables.
Software Requirements:
- Java 7 SDK or later
- JavaFX 2.1 SDK or later
- Gradle Gradle 1.0-rc-1
- Git
When setting your environment make sure you have 'JAVA_HOME', 'JAVAFX_HOME', and 'GRADLE_HOME'. Please refer to install instructions for your platform (iOS, unix, linux, Windows).
Building the game engine and the demos as Java Webstart applictions.
--------------------------------------------------------------------
mkdir JFXGen
cd JFXGen
git clone git@github.com:carldea/JFXGen.git
gradle -DhostUrl=http://yourhost/path_of_jnlp
Creating a project for IntelliJ IDE:
------------------------------------
cd JFXGen/jfxgenproj
gradle idea
cd JFXGen/demos/atomsmasher
gradle idea
Launch IntelliJ
File -> Open Project
Navigate (Browse) to the jfxgenproj folder then click 'OK'.
Example:
C:\projects\jfxgen\jfxgenproj
File -> New Module
Import existing module (select radio button)
Select the browse button '...' to locate *.iml file.
Example:
C:\projects\jfxgen\demos\atomsmasher\atomsmasher.iml
Click 'OK'
Click 'Finish'
To run the examples:
--------------------
You can double click the jar file in your file explorer. (On Windows it works)
Provided that you have built the executables you can upload them to your Web server. Make sure that the JNLP file's jnlp XML element having the 'href' attribute contains your location of the jar file (using the -D system property to set the host URL). Another way to run examples in IntelliJ is to Ctrl-Shift-F10 or right click ('Run') the file GameLoopPart2.