This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array[] tab; | |
Array[] wonBoards; | |
int player; | |
int winner; | |
color[] playerCols = { color(255, 0, 0), color(0, 0, 255) }; | |
String[] playerNames = { "x", "o" }; | |
float cw; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float limit; | |
int scoreadd; | |
int found; | |
boolean done; | |
float startTime; | |
float totalTime; | |
String totalTimeS; | |
List<Integer> tab; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() | |
local connectionMade = function() | |
output.clear() | |
parameter.clear() | |
print("Connected!") | |
gameSetup() | |
end | |
multihandler = Multiplayer(receiveData, connectionMade) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Main | |
-- Ragdoll Physics | |
function setup() | |
parameter.watch("1/DeltaTime") | |
physics.continuous = true | |
floor = physics.body(EDGE, vec2(0,0), vec2(WIDTH,0)) | |
DebugDraw = PhysicsDebugDraw() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Main | |
-- Wrinkle | |
displayMode(FULLSCREEN) | |
function setup() | |
makeAssets() | |
highscore = readLocalData("highscore", 0) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# 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 ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Main | |
-- Page Controller class for Codea | |
-- By JakAttak | |
displayMode(FULLSCREEN) | |
function setup() | |
font("HelveticaNeue-UltraLight") | |
local title = Title("Page Controller") |