Skip to content

Instantly share code, notes, and snippets.

View jimgong92's full-sized avatar

Jimmy Gong jimgong92

  • San Francisco, CA
View GitHub Profile
@jimgong92
jimgong92 / AnimatedSprite
Created June 18, 2014 14:04
Aerial View Game - In Development
package com.jimgong.rain.graphics;
public class AnimatedSprite extends Sprite {
private int animate_step = 0;
private int animate_speed = 32;
private int frame_length = animate_speed >> 2;
private boolean animate = false;
//direction = column (N - 0, E - 1, S - 2, W - 3)
//animation step = row