bad3dgeme's Introduction
# ShrekOnline This is the readme for ShrekOnline, try to keep it up to date with any information future-you will wish past-you remembered to write down ## Project set up This is a gradle project using JMonkey Engine and other java libraries ## How to run (for development) You'll want a java 11 JDK installed on your machine (Your IDE may do this for you, IntelliJ does) Open this application in your preferred IDE (IntelliJ and Eclipse will support Gradle by default, netbeans will support it with a plugin). The remaining instructions are for IntelliJ but the basic principle will be the same for any IDE) ### Development in IntelliJ - Download the latest version of IntelliJ Community (IntelliJ Ultimate is a paid for version the features of which you may consider useful but are not essential for a JMonkey project) - File > Open > select the top level folder of this project ( i.e. ShrekOnline) > Ok. - The project will open with your project files on the left had side (IntelliJ may need to "think" for a couple of seconds before they appear) - IntelliJ may say "No SDK set up" and prompt you to download one, follow its instructions and allow it to download a java 11 JDK. A JDK is used for compiling java applications, a JRE is used for running them. - You can now add more java source files or assets to the project - To run the project find ShrekOnline.java (which will be in under src/main/java/org/amogustechnologies) and right click > Run 'ShrekOnline' ## How to package the game ### Distribute without a JRE Either: In your IDE execute the gradle task distZip (which you'll find under gradle > distributions > distZip) Or: In the command line open at the root of this project enter the following command: gradlew distZip Then you will find a zip in the build/distributions folder. This zip will contain your game, all the libraries to run it and in the bin folder launch files (for windows and linux). Note that the distribution does not contain a JRE, so java will need to be installed on the machine of anyone you give this distribution to. Alternatively you may wish to bundle a JRE with your game to remove this requirement. ### Distribute with a JRE Distributing with a JRE means you'll need to provide an operating specific bundle for each OS you are targeting (which is a disadvantage) but your end use will not have to have a JRE locally installed (which is an advantage). Either: In your IDE execute the gradle task distZip (which you'll find under gradle > distributions > buildAllDistributions) Or: In the command line open at the root of this project enter the following command: gradlew buildAllDistributions Then you will find a series of zip in the build/distributions folder. These zip will contain your game, all the libraries to run it and an OS specific JRE. (The same files will also be available unzipped in a folder, which may be useful if distributing via steampipe or similar). ## Next Steps You may wish to commit your project to a git repository to keep track of your changes (so you can roll back if anything goes wrong) ## Adding more libraries During the JMonkey Initializer you chose from a small subset of the available java libraries. You can add more by editing the dependencies section in the build.gradle file ## txt vs md This readme is provided as a .txt as that is a common format openable on any machine. However, it would more normally be a .md, this will allow it to be nicely formatted by most git repositories (assuming you commit it to git). Just change the extension from .txt to .md, the syntax is already correct for an md file
bad3dgeme's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.