Skip to content

Instantly share code, notes, and snippets.

View tarrouye's full-sized avatar
🤧
*achoo*

Théo Arrouye tarrouye

🤧
*achoo*
View GitHub Profile
@tarrouye
tarrouye / Pianotiles.pde
Created December 13, 2017 05:48
Piano Tiles game for Processing
int tileW, tileH;
int[][] tiles = new int[5][4];
color[] colours = { color(0), color(0, 127, 255), color(0, 255, 127), color(255, 10, 10) };
int scrollY;
int scrollSpeed;
int startingSpeed = 5;
int speedIncrease = 0.0075;
@tarrouye
tarrouye / Takuzu.pde
Created December 13, 2017 05:40
Takuzu game for Processing. Created by Théo Arrouye, 2016.
color[] tileColors = { color(85,98,112), color(255,107,107), color(78,205,196), color(199,244,100), color(121,189,154,180) };
int gridSize;
int tileSize;
int[] tileRadiusOptions = { 15, 90 };
int tileRadiusChoice = 1;
boolean menu = true;
Array[] tab;
Array[] wonBoards;
int player;
int winner;
color[] playerCols = { color(255, 0, 0), color(0, 0, 255) };
String[] playerNames = { "x", "o" };
float cw;
@tarrouye
tarrouye / Number Rush.pde
Last active April 3, 2018 16:00
source code for number rush
float limit;
int scoreadd;
int found;
boolean done;
float startTime;
float totalTime;
String totalTimeS;
List<Integer> tab;
@tarrouye
tarrouye / Main.lua
Created June 11, 2015 03:16
Multiplayer Class (and Drawing Example)
function setup()
local connectionMade = function()
output.clear()
parameter.clear()
print("Connected!")
gameSetup()
end
multihandler = Multiplayer(receiveData, connectionMade)
@tarrouye
tarrouye / Ragdoll
Last active August 29, 2015 14:18
Ragdoll physics in Codea
--# Main
-- Ragdoll Physics
function setup()
parameter.watch("1/DeltaTime")
physics.continuous = true
floor = physics.body(EDGE, vec2(0,0), vec2(WIDTH,0))
DebugDraw = PhysicsDebugDraw()
@tarrouye
tarrouye / Smooth Puzzle
Last active April 16, 2019 07:18
GAMEJAM
--# Main
-- Puzzle
-- Game Jam entry (https://codea.io/talk/discussion/6361/game-jam-2015-winners-announced/p1)
-- Copyright 2015 Théo Arrouye
displayMode(FULLSCREEN)
supportedOrientations(PORTRAIT)
function setup()
font("Futura-CondensedMedium") textAlign(CENTER)
@tarrouye
tarrouye / Wrinkle
Last active August 29, 2015 14:17
Codea GAMEJAM 2015 Entry
--# Main
-- Wrinkle
displayMode(FULLSCREEN)
function setup()
makeAssets()
highscore = readLocalData("highscore", 0)
@tarrouye
tarrouye / Juice for Codea
Last active August 29, 2015 14:06
Modified version of Simeon from TLL's Juice library (for game animation in Codea)
--# Main
-- Juice
-- Use this function to perform your initial setup
function setup()
r = juice.rect(WIDTH/2,HEIGHT/2,70)
parameter.integer( "ObjType", 1, 4, 1, objChanged )
parameter.action( "Spin", function() r:spin(2) end )
--# Main
-- Page Controller class for Codea
-- By JakAttak
displayMode(FULLSCREEN)
function setup()
font("HelveticaNeue-UltraLight")
local title = Title("Page Controller")