Here is an RTS where you program your units with JavaScript

Screeps: Arena is a programming-focused RTS. Literally: you don’t control anything once the match starts, you just hope that the orders you planned in advance are good enough.

Screeps, of course, is short for Scripted Creeps. It’s your army, duh, because you scripted them. Before you start the match, you build your army’s AI via JavaScript: how to build a base, what units to build, resources to gather, and where to upgrade first. You then send this code to a server, where you are compared to others.

Then your units are thrown into battle against others in quick 1v1 matches. These matches take place in a variety of arenas with different rules, each with their own matchmaking and rating, and you will need separate sets of orders for each arena. New arenas are introduced each season of Screeps, and you’ll refine your code for these new arenas and refine it again between matches to improve.

So here is your new plan, isn’t it? You learn JavaScript by playing BitBurner, the idle game where you use JavaScript to be a cyberpunk, then apply your new scripting skills to battle others in Screeps: Arena. It’s not the worst idea ever.

Seriously, Screeps does the most for people who already know the basics of JavaScript or programming. (Using WebAssembly, you can actually use a wide variety of other languages.) I expect – programming the lingo in advance – it’s more than anything a great way to learn TypeScript and to work with an API and the associated documentation.

You can find Screeps: Arena on Steam or learn more on its official website,

Comments are closed.