Skip to content

Instantly share code, notes, and snippets.

Paweł Pastuszak kotcrab

Block or report user

Report or block kotcrab

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
@kotcrab
kotcrab / check_license.py
Created Aug 25, 2014
Tool for checking missing license headers
View check_license.py
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)):
View Box2dTutorial - Code 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 / Box2dTester
Last active Jan 2, 2016
Box2dTutorial - Code 1
View Box2dTester
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;
You can’t perform that action at this time.