Skip to content

Instantly share code, notes, and snippets.

Justin Shapcott MobiDevelop

  • Phoenix, AZ, USA
Block or report user

Report or block MobiDevelop

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MobiDevelop
MobiDevelop / tileset.scm
Last active Jul 18, 2018
GIMP script to add margin adn spacing to a tilsheet
View tileset.scm
(define (script-fu-respace-tiles-addMarginSpacing inImage inLayer tileSize)
(let* (
(margin 1)
(spacing 2)
(duplicatePadding TRUE)
(theWidth (car (gimp-drawable-width inLayer)))
(theHeight (car (gimp-drawable-height inLayer)))
(theMarginX (* 2 margin))
(theMarginY (* 2 margin))
@MobiDevelop
MobiDevelop / Additional Info.txt
Last active Jun 22, 2017
Google Drive Problem
View Additional Info.txt
Additional Info
---------------
Nexus 5
Android 4.4
Using either Android Studio or Eclipse results in the same exception
With Eclipse, added Drive API v2 from the Google Plugin. With Android Studio, included the jars manually.
View EncryptedFileHandle.java
package com.mobidevelop.files;
import java.io.InputStream;
import java.io.OutputStream;
import com.badlogic.gdx.files.FileHandle;
public class EncryptedFileHandle extends FileHandleWrapper {
public EncryptedFileHandle(FileHandle file) {
@MobiDevelop
MobiDevelop / ActionSnippets.java
Created Aug 28, 2013
Scene2D Action Snippets
View ActionSnippets.java
public static SequenceAction getClickActon()
{
SequenceAction action = Actions.sequence(
Actions.scaleTo(1.1f, 0.9f, 0.15f),
Actions.scaleTo(0.92f, 1.08f, 0.15f),
Actions.scaleTo(1.06f, 0.94f, 0.15f),
Actions.scaleTo(0.96f, 1.04f, 0.15f),
Actions.scaleTo(1.0f, 1.0f, 0.15f),
Actions.color(Color.RED, 1.0f),
Actions.fadeOut(2.0f),
@MobiDevelop
MobiDevelop / Snippet.java
Created Aug 12, 2013
An example of downloading a file and displaying progress with the LibGDX Net module.
View Snippet.java
package com.badlogic.gdx.tests.lwjgl;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Net.HttpMethods;
import com.badlogic.gdx.Net.HttpRequest;
View SampleGame.java
package nEx.Games.Samples;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Pixmap;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.Texture.TextureFilter;
@MobiDevelop
MobiDevelop / PagedScrollPane.java
Last active Jan 1, 2020
A LibGDX ScrollPane with page support. It center-locks on pages after scrolling.
View PagedScrollPane.java
package com.badlogic.gdx.tests.examples;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.ui.ScrollPane;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.utils.Array;
import com.esotericsoftware.tablelayout.Cell;
@MobiDevelop
MobiDevelop / PickScrollPane.java
Last active Jul 17, 2017
A ScrollPane that centers on a particular actor.
View PickScrollPane.java
package com.badlogic.gdx.tests.examples;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.ui.ScrollPane;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.utils.Array;
@MobiDevelop
MobiDevelop / ArchiveFileHandle.java
Created May 3, 2013
A ZipFile-based FileHandle implementation for LibGDX.
View ArchiveFileHandle.java
package com.mobidevelop.gdx.examples;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import com.badlogic.gdx.Files.FileType;
import com.badlogic.gdx.files.FileHandle;
@MobiDevelop
MobiDevelop / ResolutionFileResolver.java
Created Apr 7, 2013
Add a pluggable ChooserStrategy to the LibGDX ResolutionFileResolver, to allow the choosing algorithm to be changed by the user.
View ResolutionFileResolver.java
/*******************************************************************************
* Copyright 2011 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
You can’t perform that action at this time.