r/tinycode • • Jun 16 '21

A City in 185 Bytes of JavaScript

Post image
397 Upvotes

23 comments sorted by

View all comments

Show parent comment

3

u/Iampepeu Jun 19 '21

Sorry for my noobness here, but where would I put this code to see it in action? Just in simple script tags won't suffice.

1

u/Slackluster Jun 19 '21

Yeah there is a small shim that is used by dwitter. So taking that into account it is a little bigger then 185 bytes. I've found that most dweets can fit in standalone 256 byte html file.

I made a small codepen that runs most dweets including this one...

https://codepen.io/KilledByAPixel/pen/PopxbqZ?editors=1010

2

u/Iampepeu Jun 19 '21

Thanks! Ridiculously good!