Here's an RTS where you program your units with JavaScript
Players in Screeps: Arena is an online, PvP RTS for programming enthusiasts.
Keep up to date with the most important stories and the best deals, as picked by the PC Gamer team.
You are now subscribed
Your newsletter sign-up was successful
Want to add more newsletters?
Every Friday
GamesRadar+
Your weekly update on everything you could ever want to know about the games you already love, games we know you're going to love in the near future, and tales from the communities that surround them.
Every Thursday
GTA 6 O'clock
Our special GTA 6 newsletter, with breaking news, insider info, and rumor analysis from the award-winning GTA 6 O'clock experts.
Every Friday
Knowledge
From the creators of Edge: A weekly videogame industry newsletter with analysis from expert writers, guidance from professionals, and insight into what's on the horizon.
Every Thursday
The Setup
Hardware nerds unite, sign up to our free tech newsletter for a weekly digest of the hottest new tech, the latest gadgets on the test bench, and much more.
Every Wednesday
Switch 2 Spotlight
Sign up to our new Switch 2 newsletter, where we bring you the latest talking points on Nintendo's new console each week, bring you up to date on the news, and recommend what games to play.
Every Saturday
The Watchlist
Subscribe for a weekly digest of the movie and TV news that matters, direct to your inbox. From first-look trailers, interviews, reviews and explainers, we've got you covered.
Once a month
SFX
Get sneak previews, exclusive competitions and details of special events each month!
Screeps: Arena is an RTS all about programming. Quite literally: You don't control anything once the match starts, you just hope that the orders you planned out beforehand are good enough.
Screeps, of course, is short for Scripted Creeps. That's your army, duh, because you scripted them. Before you start the match you build the AI for your army via JavaScript: How to build a base, which units to build, resources to gather, and where to upgrade first. You then send out that code to a server, where you get matched up against others.
Then your units get thrown into the fight against others in quick 1v1 matches. Those matches are played out in a variety of arenas with various rules, each with its own matchmaking and rankings, and you'll want separate sets of orders for each arena. New arenas are introduced each season of Screeps, and you'll refine your code for those new arenas and refine it again between matches to get better.
So here's your new plan, right? You learn JavaScript by playing BitBurner, the idle game where you use JavaScript to be a cyberpunk, then apply your newfound scripting skills to take on others in Screeps: Arena. It's not the worst idea ever.
In all seriousness, Screeps does the most for people who already know some JavaScript or programming basics. (Using WebAssembly, you can actually use a broad variety of other languages.) I expect that—programming lingo ahead—it's more than anything a great way to learn some TypeScript and get time in working with an API and associated documentation.
You can find Screeps: Arena on Steam or learn more about it on its official website, screeps.com.
Keep up to date with the most important stories and the best deals, as picked by the PC Gamer team.
Jon Bolding is a games writer and critic with an extensive background in strategy games. When he's not on his PC, he can be found playing every tabletop game under the sun.

