Skip to content

Instantly share code, notes, and snippets.

View Bolloxim's full-sized avatar

Andi Smithers Bolloxim

View GitHub Profile
@Bolloxim
Bolloxim / index.html
Created July 22, 2014 19:45
A Pen by Andi Smithers.
<body>
<canvas id="texteffect"></canvas>
</body>
@Bolloxim
Bolloxim / Zylon-Fighter,-Fake-3d.markdown
Created July 22, 2014 19:44
A Pen by Andi Smithers.

Zylon Fighter, Fake 3d

using angles we can fake sorting order of our zylon fighter. Using ellipse rendering for the cockpit we can get a very nice 3d effect. Wings are made of simple hexagons with some line rendering. Its modular.

render a few hundred in a bizarre sin/cos pattern field.

step 3. fragment the ship as though destroyed .. fun stuff

A Pen by Andi Smithers on CodePen.

Particle system .. step 1

step 1 in creating a nice particle system for exploding spaceships and plasma balls.

firs stage. get tons of transforms running second create groups third build effect emitters

forth.. err fix bugs. somethings seriously wrong with the photon torp emitter.

Starfield old school style

The illusion of movement without moving (although I move the stars if cameraTrick==0, basically we wrap the starfield around without ever changing the dataset).

versions

0.6 added WARP speed on the left click

0.5 added sparcity, focalpoint, fixed sort bug