This content moved here: https://exploringjs.com/impatient-js/ch_arrays.html#quickref-arrays
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 | |
| function setup() | |
| displayMode(FULLSCREEN) | |
| fontSize(40) | |
| font("Futura-CondensedExtraBold") | |
| clones = {} | |
| bodies = {} | |
| graves = {} | |
| generate() |
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
| --# Intro00 | |
| function setup() | |
| title = "blendMode tutorial" | |
| code = "-------- \n(optimized for LANDSCAPE) \n---------" | |
| info = | |
| [[ | |
| blendMode(...) function can change the way colors are blended on the screen. | |
| This project shows some examples of use of this function. |
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 | |
| -- Markdown Codea | |
| -- by Yojimbo2000 | |
| displayMode(FULLSCREEN) | |
| function setup() | |
| setText() | |
| y,vel = 0,0 | |
| scrollY={} --store deltas for smooth scrolling upon finger release | |
| 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 | |
| -- Disintegration Shader | |
| supportedOrientations(LANDSCAPE_ANY) | |
| function setup() | |
| -- parameter.watch("grav") | |
| -- parameter.watch("gravBack") --for bug-checking the get local point function | |
| print ("tilt to spin the sphere \ntap the screen to explode / unexplode the mesh") | |
| aerial = color(28, 27, 54, 255) | |
| verts = Isosphere(5) |
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
| #import "SharingAddon.h" | |
| #import "StandaloneCodeaViewController.h" | |
| #import "lua.h" | |
| #import "lauxlib.h" | |
| #pragma mark - Lua Functions | |
| static int share(struct lua_State *L); | |
| static int email(struct lua_State *L); |
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
| #import <Foundation/Foundation.h> | |
| #import <MessageUI/MessageUI.h> | |
| #import "CodeaAddon.h" | |
| @interface SharingAddon : CodeaAddon<MFMailComposeViewControllerDelegate> | |
| + (instancetype) sharedInstance; | |
| @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
| --# Notes | |
| --[[ | |
| ROTATION WITH QUATERNIONS AND FLYING | |
| This project demonstrates the use of quaternions to rotate objects and fly them | |
| The Main tab only contains code to help you choose from a number of demo projects. You will not need it in | |
| your own projects. |
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
| -- Missile command type game | |
| -- by West | |
| displayMode(FULLSCREEN) | |
| function setup() | |
| touches={} | |
| tsup={} --tsup contains the supplementary info about the start position of the touch | |
| resetGame() | |
| --starfield setup --credit to Simeon @TLL: http://codea.io/talk/discussion/644/flicker-drawing-large-images-any-advice/p1 | |
| local gradSize = 2 |
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 | |
| -- Cider 7 | |
| -- an interactive interface builder for Codea | |
| -- version 7.1 | |
| -- 2 Jan 2014 | |
| -- Mark Sumner | |
| -- devilstower@gmail.com | |
| displayMode(FULLSCREEN_NO_BUTTONS) |
NewerOlder