Skip to content

Instantly share code, notes, and snippets.

View jkwok91's full-sized avatar

JESSICA jkwok91

View GitHub Profile
@jkwok91
jkwok91 / adventureGameWorkshop.md
Last active March 17, 2016 23:07
first draft of a soon to be unmanageable workshop.

Adventure Workshop

Welcome to a workshop in which you will write a text adventure game purely in HTML. That's right! All you need is HTML. And a desire to tell a story that blazes with the ferocity of a thousand suns. Let's get started!

Live Demo here: here

Set-up

Go to Cloud9 and log in. Then, create a new directory for this workshop, naming it text_adventure. Then, create a new file, naming it index.html. This is where you will introduce the player to your adventure game.

@jkwok91
jkwok91 / 20170106.js
Created January 7, 2017 00:45
im so fuckin' _dangerously defensive_. bite me.
// ulam spiral leggo
var start;
var N;
var sideLen;
function setup() {
createCanvas(500,500);
background(0);
sideLen = 20;
@jkwok91
jkwok91 / background.js
Last active April 28, 2017 02:12
chrome extension because i felt like it
var dagensOrd;
chrome.tabs.onCreated.addListener(function(tab) {
if (!dagensOrd) {
checkIfOrdSet();
}
getOrd();
});
function checkIfOrdSet() {
@jkwok91
jkwok91 / fractal1.js
Last active April 5, 2017 00:50
waaaazzzzaaaaa
// inspired by coding challenge #2
function setup() {
createCanvas(400, 400);
background(0);
noLoop();
}
function draw() {
var b = new Box(50, 50, 300, 1);
var polygons = [];
var unitSlider, unit;
function setup() {
createCanvas(500, 500);
unitSlider = createSlider(10, 100, 50);
unit = 0;
}
function draw() {
@jkwok91
jkwok91 / 20170408.js
Created April 9, 2017 05:02
cuz she's so highhhhhhh / high above me / she's so lovely / she's so high / like cleopatra, joan of arc, or aphrodiiiiiiiite
// do i remember anything from three.js?????
// the answer is no
// kool weird jagged landscape that is totally not correct
var camera, scene, renderer;
init();
animate();
@jkwok91
jkwok91 / flappyLand.js
Last active April 9, 2017 18:41
flap
// based on dan shiffman's coding challenge #11
// draw terrain as triangle_strips
// then manipulate vertices of the triangle_strips
var points;
var cols, rows;
var unit;
var minZ, maxZ;