-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9121a63
Showing
14 changed files
with
622 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
## Java | ||
|
||
*.class | ||
*.war | ||
*.ear | ||
hs_err_pid* | ||
|
||
## Robovm | ||
/ios/robovm-build/ | ||
|
||
## GWT | ||
/html/war/ | ||
/html/gwt-unitCache/ | ||
.apt_generated/ | ||
.gwt/ | ||
gwt-unitCache/ | ||
www-test/ | ||
.gwt-tmp/ | ||
|
||
## Android Studio and Intellij and Android in general | ||
/android/libs/armeabi-v7a/ | ||
/android/libs/arm64-v8a/ | ||
/android/libs/x86/ | ||
/android/libs/x86_64/ | ||
/android/gen/ | ||
.idea/ | ||
*.ipr | ||
*.iws | ||
*.iml | ||
/android/out/ | ||
com_crashlytics_export_strings.xml | ||
|
||
## Eclipse | ||
|
||
.classpath | ||
.project | ||
.metadata/ | ||
/android/bin/ | ||
/core/bin/ | ||
/desktop/bin/ | ||
/html/bin/ | ||
/ios/bin/ | ||
*.tmp | ||
*.bak | ||
*.swp | ||
*~.nib | ||
.settings/ | ||
.loadpath | ||
.externalToolBuilders/ | ||
*.launch | ||
|
||
## NetBeans | ||
|
||
/nbproject/private/ | ||
/android/nbproject/private/ | ||
/core/nbproject/private/ | ||
/desktop/nbproject/private/ | ||
/html/nbproject/private/ | ||
/ios/nbproject/private/ | ||
|
||
/build/ | ||
/android/build/ | ||
/core/build/ | ||
/desktop/build/ | ||
/html/build/ | ||
/ios/build/ | ||
|
||
/nbbuild/ | ||
/android/nbbuild/ | ||
/core/nbbuild/ | ||
/desktop/nbbuild/ | ||
/html/nbbuild/ | ||
/ios/nbbuild/ | ||
|
||
/dist/ | ||
/android/dist/ | ||
/core/dist/ | ||
/desktop/dist/ | ||
/html/dist/ | ||
/ios/dist/ | ||
|
||
/nbdist/ | ||
/android/nbdist/ | ||
/core/nbdist/ | ||
/desktop/nbdist/ | ||
/html/nbdist/ | ||
/ios/nbdist/ | ||
|
||
nbactions.xml | ||
nb-configuration.xml | ||
|
||
## Gradle | ||
|
||
/local.properties | ||
.gradle/ | ||
gradle-app.setting | ||
/build/ | ||
/android/build/ | ||
/core/build/ | ||
/desktop/build/ | ||
/html/build/ | ||
/ios/build/ | ||
|
||
## OS Specific | ||
.DS_Store | ||
Thumbs.db | ||
|
||
## iOS | ||
/ios/xcode/*.xcodeproj/* | ||
!/ios/xcode/*.xcodeproj/xcshareddata | ||
!/ios/xcode/*.xcodeproj/project.pbxproj | ||
/ios/xcode/native/ | ||
/ios/IOSLauncher.app | ||
/ios/IOSLauncher.app.dSYM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Lunar-Haze |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
buildscript { | ||
|
||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
gradlePluginPortal() | ||
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } | ||
google() | ||
} | ||
dependencies { | ||
|
||
|
||
} | ||
} | ||
|
||
allprojects { | ||
apply plugin: "eclipse" | ||
|
||
version = '1.0' | ||
ext { | ||
appName = "Lunar Haze" | ||
gdxVersion = '1.11.0' | ||
roboVMVersion = '2.3.16' | ||
box2DLightsVersion = '1.5' | ||
ashleyVersion = '1.7.4' | ||
aiVersion = '1.8.2' | ||
gdxControllersVersion = '2.2.1' | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
google() | ||
gradlePluginPortal() | ||
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } | ||
maven { url "https://oss.sonatype.org/content/repositories/releases/" } | ||
maven { url "https://jitpack.io" } | ||
} | ||
} | ||
|
||
project(":desktop") { | ||
apply plugin: "java-library" | ||
|
||
|
||
dependencies { | ||
implementation project(":core") | ||
api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion" | ||
api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop" | ||
api "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop" | ||
api "com.badlogicgames.gdx-controllers:gdx-controllers-desktop:$gdxControllersVersion" | ||
api "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop" | ||
|
||
} | ||
} | ||
|
||
project(":core") { | ||
apply plugin: "java-library" | ||
|
||
|
||
dependencies { | ||
api "com.badlogicgames.gdx:gdx:$gdxVersion" | ||
api "com.badlogicgames.gdx:gdx-freetype:$gdxVersion" | ||
api "com.badlogicgames.gdx-controllers:gdx-controllers-core:$gdxControllersVersion" | ||
api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion" | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
sourceCompatibility = 1.7 | ||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' | ||
|
||
sourceSets.main.java.srcDirs = [ "src/" ] | ||
|
||
eclipse.project.name = appName + "-core" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package infinityx.lunarhaze; | ||
|
||
import com.badlogic.gdx.ApplicationAdapter; | ||
import com.badlogic.gdx.graphics.Texture; | ||
import com.badlogic.gdx.graphics.g2d.SpriteBatch; | ||
import com.badlogic.gdx.utils.ScreenUtils; | ||
|
||
public class GDXRoot extends ApplicationAdapter { | ||
SpriteBatch batch; | ||
Texture img; | ||
|
||
@Override | ||
public void create () { | ||
batch = new SpriteBatch(); | ||
img = new Texture("badlogic.jpg"); | ||
} | ||
|
||
@Override | ||
public void render () { | ||
ScreenUtils.clear(1, 0, 0, 1); | ||
batch.begin(); | ||
batch.draw(img, 0, 0); | ||
batch.end(); | ||
} | ||
|
||
@Override | ||
public void dispose () { | ||
batch.dispose(); | ||
img.dispose(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
sourceCompatibility = 1.8 | ||
sourceSets.main.java.srcDirs = [ "src/" ] | ||
sourceSets.main.resources.srcDirs = ["../assets"] | ||
|
||
project.ext.mainClassName = "infinityx.lunarhaze.DesktopLauncher" | ||
project.ext.assetsDir = new File("../assets") | ||
|
||
import org.gradle.internal.os.OperatingSystem | ||
|
||
task run(dependsOn: classes, type: JavaExec) { | ||
mainClass = project.mainClassName | ||
classpath = sourceSets.main.runtimeClasspath | ||
standardInput = System.in | ||
workingDir = project.assetsDir | ||
ignoreExitValue = true | ||
|
||
if (OperatingSystem.current() == OperatingSystem.MAC_OS) { | ||
// Required to run on macOS | ||
jvmArgs += "-XstartOnFirstThread" | ||
} | ||
} | ||
|
||
task debug(dependsOn: classes, type: JavaExec) { | ||
mainClass = project.mainClassName | ||
classpath = sourceSets.main.runtimeClasspath | ||
standardInput = System.in | ||
workingDir = project.assetsDir | ||
ignoreExitValue = true | ||
debug = true | ||
} | ||
|
||
task dist(type: Jar) { | ||
duplicatesStrategy(DuplicatesStrategy.EXCLUDE) | ||
manifest { | ||
attributes 'Main-Class': project.mainClassName | ||
} | ||
dependsOn configurations.runtimeClasspath | ||
from { | ||
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } | ||
} | ||
with jar | ||
} | ||
|
||
|
||
dist.dependsOn classes | ||
|
||
eclipse.project.name = appName + "-desktop" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package infinityx.lunarhaze; | ||
|
||
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application; | ||
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration; | ||
import infinityx.lunarhaze.GDXRoot; | ||
|
||
// Please note that on macOS your application needs to be started with the -XstartOnFirstThread JVM argument | ||
public class DesktopLauncher { | ||
public static void main (String[] arg) { | ||
Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration(); | ||
config.setForegroundFPS(60); | ||
config.setTitle("Lunar Haze"); | ||
new Lwjgl3Application(new GDXRoot(), config); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
org.gradle.daemon=true | ||
org.gradle.jvmargs=-Xms128m -Xmx1500m | ||
org.gradle.configureondemand=false |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.