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 / Main.lua
Created July 16, 2013 00:26
Bumper Balls AutoInstall
--Bumper Balls Single Install
--Installer created by @Briarfox
--- This will pull the Bumper Balls project into Codea for you
-- Instructions:
-- * Create a new project in Codea named Bumper Balls If you chose another name please change the variable Below
--This is case sensitive
ProjectName = "Bumper Balls"
-- * Paste this into the Main (not from the raw view, as iSafari will escape special characters)
-- * Make sure there is a single tab in the project
@tarrouye
tarrouye / Main.lua
Created October 6, 2013 22:55
Comic Book AutoInstall
--# Main
--Comic Book Single Install
--Installer created by @Briarfox
--- This will pull the Comic Book project into Codea for you
-- Instructions:
-- * Create a new project in Codea named Comic Book If you chose another name please change the variable Below
--This is case sensitive
ProjectName = "Comic Book"
-- * Paste this into the Main (not from the raw view, as iSafari will escape special characters)
@tarrouye
tarrouye / Ladderman
Last active August 29, 2015 14:04
Ladderman Gist
--# Main
-- Ladderman
displayMode(FULLSCREEN)
supportedOrientations(PORTRAIT)
function setup()
LOADINGIMGS, PLAYING, LOST = 1, 2, 3
imgLoader = Loader()
--# Main
-- Page Controller class for Codea
-- By JakAttak
displayMode(FULLSCREEN)
function setup()
font("HelveticaNeue-UltraLight")
local title = Title("Page Controller")
@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 )
@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 / 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 / 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 / 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 / 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;