Tag Archives: tinycode

Dissecting A Dweet: Mini Black Hole

Today we will be examining my most popular dweet, a miniature black hole simulation! It’s one of my easiest dweets to explain and the code is fairly straightforward. Read on for a full analysis… for(i=0;i<2e3;x.fillRect(i?960+i*S(F=260*(t+9)/i+S(i*i)):0,i?500+.2*(2*i*C(F)+2e4/i):0,K=i++?S(i)*9:2e3,K))x.fillStyle=R(99*i,2*i,i,i?1:.4)

Posted in Javascript | Tagged , , | Leave a comment

Dissecting A Dweet: Spirograph Design Generator

Today we will be examining this crazy small javascript program that generates an array of endless random spirograph designs. Read on for a full explanation of how it works. for(i=144;q=(8+t>>3)*i–;x.fillRect(i%16*120+T(S),(i>>4)*120+T(C),2,2))t%24<1?c.width|=r=n=>S(q**n)*9|0:T=f=>5*r(4)*f(r(3)*t)+9*f(r(2)*t)+60

Posted in Javascript | Tagged , , | 2 Comments

Dissecting A Dweet: Spiral Javascript Quine

This is the first in a series of posts where I will analyze a dweet’s code, explain how it works, and why it was done that way. A dweet is a 140 character javascript program published on Dwitter. The goal … Continue reading

Posted in Javascript | Tagged , , | 3 Comments

MinBytes – A Minimal Bytebeat Album in 1024 Bytes

This is a full album with 9 tracks and visualizer in 1k of Javascript! Each song is created by a tiny function. For example, the first song on the album uses the simple function (t&t>>8). It is amazing the complexity … Continue reading

Posted in Music | Tagged , , | Leave a comment

I made 7 1k javascript demos in 2 weeks for JS1k!

For the past month I have been doing a deep dive into making tiny javascript programs. It started when I learned the JS1k (JavasScript 1 kilobyte) competition was underway, with the deadline rapidly approaching. I had programmed only a small … Continue reading

Posted in Game Dev | Tagged , , , | Leave a comment

I’m only making business card sized games now

Over the years I’ve worked on many games, some big, some small. I’ve found that the smaller the game, the more fun I seem to have making it. So I set out to make the smallest game I possibly could, … Continue reading

Posted in Game Dev | Tagged | 26 Comments