Skip to content

Instantly share code, notes, and snippets.

View JoseRivas1998's full-sized avatar
💭
Why does github have this?

Jose Rodriguez Rivas JoseRivas1998

💭
Why does github have this?
View GitHub Profile
@JoseRivas1998
JoseRivas1998 / GameState.java
Created August 26, 2015 04:26
Space Invaders Blog Post
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.tcg.spaceinvaders.managers.GameStateManager;
public abstract class GameState {
protected GameStateManager gsm;
public GameState(GameStateManager gsm) {
this.gsm = gsm;
@JoseRivas1998
JoseRivas1998 / Game.java
Last active July 19, 2017 17:22
Tiled Programming Tutorial
package com.sshsgd.tiled;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType;
@JoseRivas1998
JoseRivas1998 / Ground
Created January 2, 2015 23:08
This is the Ground class from Terry the Cave Explorer
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.maps.MapLayer;
import com.badlogic.gdx.maps.MapObject;
import com.badlogic.gdx.maps.objects.EllipseMapObject;
import com.badlogic.gdx.maps.tiled.TiledMap;
import com.badlogic.gdx.maps.tiled.TiledMapTileLayer;
import com.badlogic.gdx.maps.tiled.TiledMapTileLayer.Cell;
import com.badlogic.gdx.maps.tiled.TmxMapLoader;
import com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer;