r/coding • • Aug 15 '20

JS13 coding competition - create a game with less than 13kB of JavaScript

https://js13kgames.com/

[removed] — view removed post

25 Upvotes

3 comments sorted by

2

u/SippieCup Aug 15 '20 edited Aug 15 '20

I'll be impressed by anyone who manages to make a working game in 13kB of JavaScript.

Meanwhile in the hell hole that is the bottom of the NPM registery. The is is-even npm package (which has 6 dependencies!) is sitting at 96Kb installed... for just (x) => { return (x % 2)===0 }.

2

u/lee337reilly Aug 15 '20

Not trying to be a smart alec, but I think you'll be really impressed with what people are able to squeeze out of 13kB. You can see an ordered list of winning entries from last year here.

I can't make anything of that caliber, but I'm having fun working on my own entry with kontra.js. It'll definitely work. Not sure if it'll be fun though 🤣

1

u/SippieCup Aug 15 '20

Nah, totally don't see it that way at all. I'm always genuinely blown away by demo scene and hacky but super efficient code. My personal coding style is far more verbose to make it much easier for me and others figure out what is going wrong 9 months later.

When I have time I have a hobby of rewriting code like this to something more "productionalized" for lack of a better word. It helps me find my inefficiencies and makes me a better developer.

Last year winning entry's collision.js and shaders.js are really cool examples.