This file contains hidden or 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
apply plugin: "java" | |
apply plugin: "application" | |
sourceCompatibility = 1.6 | |
mainClassName = "me.tomski.levelediting.LevelEditor" | |
sourceSets.main.resources.srcDirs = [file("../desktop/assets").getAbsolutePath()] | |
// idea doesn't like relative paths outside of content root... | |
tasks.ideaModule.doFirst { |
This file contains hidden or 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
public TempBodyPool(final World world, final Level level) { | |
toastParticles = new Pool<ToastParticle>() { | |
@Override | |
protected ToastParticle newObject() { | |
return new ToastParticle(world, 1, 1f, 1f, 1, 0.5f, 0.2f); | |
} | |
}; | |
cerealParticles = new Pool<CerealParticle>() { | |
@Override | |
protected CerealParticle newObject() { |
This file contains hidden or 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
project(":gwt") { | |
apply plugin: "gwt" | |
dependencies { | |
compile project(":core") | |
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion" | |
compile "com.badlogicgames.gdx:gdx:$gdxVersion:sources" | |
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources" | |
} |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<title>%APP_NAME%</title> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<style> | |
canvas { | |
cursor: default; | |
outline: none; | |
} |
This file contains hidden or 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
/******************************************************************************* | |
* Copyright 2013 See AUTHORS File | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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
private void addToolTips() { | |
tooltips.registerTooltip(toolbar.grabCursor, "Translate Tool"); | |
tooltips.registerTooltip(toolbar.gravityGlobe, "Gravity Toggle"); | |
tooltips.registerTooltip(toolbar.pinButton, "Joint Pin "); | |
tooltips.registerTooltip(toolbar.lightButton, "Lighting Toggle"); | |
tooltips.registerTooltip(toolbar.normalCursor, "Select Tool"); | |
} |
This file contains hidden or 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
TexturePacker.Settings settings = new TexturePacker.Settings(); | |
settings.maxHeight = 1024; | |
settings.maxWidth = 1024; | |
settings.duplicatePadding = true; | |
settings.edgePadding = true; | |
settings.paddingX = 2; | |
settings.paddingY = 2; | |
settings.bleed = true; | |
settings.alias = true; | |
settings.useIndexes = true; |
This file contains hidden or 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
// called every time gradle gets executed, takes the native dependencies of | |
// the natives configuration, and extracts them to the proper libs/ folders | |
// so they get packed with the APK. | |
task copyAndroidNatives() { | |
file("libs/armeabi/").mkdirs(); | |
file("libs/armeabi-v7a/").mkdirs(); | |
configurations.natives.files.each { jar -> | |
def outputDir = null | |
if (jar.name.endsWith("natives-armeabi-v7a.jar")) outputDir = file("libs/armeabi-v7a") |
This file contains hidden or 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
protected void loadFixtures(TiledMap map, World world) { | |
MapLayer fixturesLayer = map.getLayers().get("fixtures"); | |
Array<PolylineMapObject> fixtures = fixturesLayer.getObjects().getByType(PolylineMapObject.class); | |
BodyDef bd = new BodyDef(); | |
bd.type = BodyType.StaticBody; | |
groundBody = world.createBody(bd); | |
groundBody.setUserData(-1); | |
OlderNewer