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
| /****************************************************************************** | |
| * Spine Runtimes Software License | |
| * Version 2 | |
| * | |
| * Copyright (c) 2013, Esoteric Software | |
| * All rights reserved. | |
| * | |
| * You are granted a perpetual, non-exclusive, non-sublicensable and | |
| * non-transferable license to install, execute and perform the Spine Runtimes | |
| * Software (the "Software") solely for internal use. Without the written |
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
| AtlasAttachmentLoader atlasLoader = new AtlasAttachmentLoader(atlas) { | |
| public RegionAttachment newRegionAttachment (Skin skin, String name, String path) { | |
| Box2dAttachment attachment = new Box2dAttachment(name); | |
| AtlasRegion region = atlas.findRegion(attachment.getName()); | |
| if (region == null) throw new RuntimeException("Region not found in atlas: " + attachment); | |
| attachment.setRegion(region); | |
| return attachment; | |
| } | |
| }; | |
| SkeletonJson json = new SkeletonJson(atlasLoader); |
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); | |
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
| 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
| 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
| /******************************************************************************* | |
| * 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
| <!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
| 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" | |
| } |