JS13K

Posted by Astryl on Aug. 19, 2016, 3:19 p.m.

Nopykon's comment in Jani's Goofy4Art blog alerted me to the existence of this.

Why didn't I know this was a thing sooner?

So I'm going to start a JS13K thread. Post your development progress, tricks/workarounds and tips.

What is JS13K?

A JavaScript coding competition where the goal is to create a game based on a theme.

The twist: The final (zipped) game needs to fit within 13KB, and may not load external resources/libraries: It needs to work offline and standalone.

Of course, this severe limitation inspires creative workarounds, and you'll tend to dig deeper into the language in order to understand how to get things done.

My own goal with this is to use it as an excuse to actually learn JavaScript properly instead of putting it off and stumbling through.

Go visit the JS13K site here: http://js13kgames.com/

You should join, even if you don't plan on completing something. The fun is in the challenge.

Comments

Nopykon 8 years, 2 months ago

Lol, why is it always like this? Only an engine, no game. This suddenly turned into a 24h gamejam rather than a chill compo. I've had my mind boggled with js stuff, bc I'm still such a newb at the language.

For instance:

var index = ( a < b ); // results in index being a boolean 'true' or 'false';

And naively I think that's going to work as an array-index (it does… boolean key works, but you get my point) . Because I don't test after every single line I write, it takes me a long time find these things. ( fyifix : index = 0 | (a<b);// turning it into an int.

Just habits from C i guess. But also… errors don't show up screaming when they occur like they do in C. They do their best to remain hidden. The result is that I'm now paranoid and incredibly tense when writing Javascript. Throwing multiple pointers and raw memory around in C is childrens play compared to this. ( . ) ~ ( o) Mebby get a better dev suite, or mebs just git gut at js. :P

Well, we'll see how it goes.

Nopykon 8 years ago

Quote:
Well, we'll see how it goes.

In case anyone is interested in what I ended up with.

-My browser has suddenly started to take me to this page every time I quickly type "64" and press enter. It pains me to be reminded of this failure every time I go to 64d. :====(

EDIT: Sorry about the ESDF walk-keys.

EDIT2: Here is the source code

Jani_Nykanen 8 years ago

Holey Jesus, is that software renderer or WebGL (I remember you mentioning the first one)?

Nopykon 8 years ago

Yes, it's software.

Jani_Nykanen 8 years ago

Damn, then it's pretty sweet! It had pretty good performance, so I thought "Could this truly be a software renderer?" and it was. Spooky.