Teasing…

 

Barrels burning!
Hello. Hello indeed.

The white text over the barrels are the fuel.

The green to cyan to red to green is the temperature. Currently, the threshold for the barrels is set to 1500 fake degrees, so once it reaches 1500, it starts burning. When a barrel’s temperature is close to the threshold (about 75%), it starts radiating its heat to the nearby barrels, thus starting the chain reaction.

Still interested?

Bye bye eBook.

Hey peeps.

As you may know, I wanted to create an eBook to teach entity component systems.
Well, it won’t happen.

The project is cancelled, the eBook won’t see the light of day. I am not closing down the blog, I’m just stopping this project.

If you’re still interested in ECS, here’s the cool news: I’ve found something called PlayCanvas, which is essentially Unity 3D in JavaScript. It’s got the entity/component built right-in. It’s pretty fun! I had a blast playing with this, and it shows promise. Take a look, dig in, follow the tutorials, fork the sample projects, and just dive in the fun.

The Ultimate JavaScript Closures Resource

So you’re writing the most interesting piece of JavaScript of all time, or you’re preparing for a job interview, or you want to impress your significant other, or something, whatever.

You realize that you’re not even sure you can explain what a JavaScript closure is. I’m sure of this because for about 10 years I’ve seen scattered information about JavaScript closures all over the place. This wouldn’t happen if people grasped it easily.

Well, hang on to your brain, here’s a huge list of resources about closures:

Now bookmark that stuff, read one article per day and finally you’ll be able to impress your significant other.

HIGH FIVE!

GameDev – Using Littera with Phaser

Littera, dudes.

This is one of those innocent looking webapps that blow my mind by their usefulness and ease of use (ease of usefulness?)

It all started when I needed a better font than Arial for my retro/pixel/end-of-80’s Roguelike game. At first I thought there would be a way to package the font with the game, CSS @font-face style, and be done with it, but this is different, since I’m using Phaser and displaying bitmap fonts.

It seems like the most popular option is to use webfonts in Phaser, but I really wanted to package the fonts and make the game playable offline.

I finally stumbled upon Littera, and my quality of life significantly increased. Continue reading “GameDev – Using Littera with Phaser”

WebDev – Sublime Text Plugins

You’ve read it, heard it, and seen it a hundred times before, but I’ll say it again:

Tools are great. – by anonymous

… or something like that. This leads me to the next point:

IDEs are tools. – by common logic

And good tools, well used, make for good results. I also have another saying:

Cut the crap. – I’m not good with famous quotes

So here’s the list of my favorite Sublime Text plugins.

In the “Can’t Live Without” category:

  1. Terminal: Quick access to the command line
  2. SideBarEnhancements: Expand the possibilities when right-clicking on your files
  3. ColorHighlighter: Actually see the colors you write

In the “Organisation” category:

  1. JSFormat: Quick and easy formatting of JS code
  2. JSON Reindent: The title says it all
  3. BracketHighlighter: Keep track of where your brackets start and finish
  4. Alignment: Align these constants with the power of Aligment!

In the “Documentation” category:

  1. DocBlockr: JavaDoc-y docs for everything

Noteworthy compilations

WebDev – Pretty AngularJS directives

Terrible.

Terrible terrible.

The first thing I thought when I saw AngularJS directives was “holy HOLY!”, then I promptly screamed in agony. Nothing too dramatic, you know.

So directives are like WebComponents. I get that. They are damn useful. I get that. They are even friggin’ composable. I get that mucho bueno senorita Angularita. What I don’t get, though, is the terrible readability of this mess.

The Necronomicon

You might need a R’lyehian to English dictionary.

I can’t help but see how useful and unfriendly this is. This is practically shouting “Beginners! Flee now, or face several hours of therapy where you’ll revisit all your inadequacies!“. Seriously, just look at this.

Continue reading “WebDev – Pretty AngularJS directives”