Skip to content

Instantly share code, notes, and snippets.

View twyatt's full-sized avatar

Travis Wyatt twyatt

View GitHub Profile
@twyatt
twyatt / proguard.cfg
Created July 25, 2012 03:47
An Android ProGuard configuration that works with libGDX.
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable
package com.traviswyatt.example.models;
public class Heightmap {
public final int width;
public final int height;
public final float[] elevations;
public final boolean flipY;
@twyatt
twyatt / HeightmapUtils.java
Created July 14, 2012 09:29
Simple utility class for reading libGDX's Pixmaps for use as heightmaps.
package com.traviswyatt.example.helpers.terrain;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Pixmap;
import com.traviswyatt.example.models.Heightmap;
public class HeightmapUtils {
public static Heightmap load(FileHandle file) {