Skip to content

Instantly share code, notes, and snippets.

@kotcrab
kotcrab / Box2dTester
Last active January 2, 2016 20:59
Box2dTutorial - Code 1
package pl.kotcrab.libgdxtests;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Box2DDebugRenderer;
import com.badlogic.gdx.physics.box2d.World;
@kotcrab
kotcrab / Box2dTutorial - Code 2
Created January 10, 2014 19:29
Box2dTester 2
package pl.kotcrab.libgdxtests;
import pl.kotcrab.core.Touch;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Buttons;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.math.Vector2;
@kotcrab
kotcrab / check_license.py
Created August 25, 2014 21:53
Tool for checking missing license headers
import fnmatch
import os
#config
main_dir = os.path.dirname(os.getcwd())
src_dir = os.path.join(main_dir, 'src', 'pl', 'kotcrab', 'arget')
header = os.path.join(main_dir, 'src', 'data', 'header.txt')
def contains(small, big):
if(len(small) > len(big)):