Home United States USA — software Screeps: The MMO Sandbox Game for Programmers Screeps: The MMO Sandbox Game...

Screeps: The MMO Sandbox Game for Programmers Screeps: The MMO Sandbox Game for Programmers

293
0
SHARE

A DZone Zone Leader takes a look at the web-based game Screeps, that requires players to code in JavaScript in order to perform actions and progress.
I recently attended the wonderful Pioneers conference in Vienna (more interviews to follow) and among the many interviews I conducted was Artem Chivchalov, the Russian founder of Screeps, a massively multi-player online (MMO) game with something of a difference.
In most MMO games you choose a character with a variety of traits and set it loose into a world full of other human controlled characters and characters controlled by an artificial intelligence. In Screeps, there is something of both, but it’s up to the players to create it. Yes, you need to code your own characters to play.
There are two parts to the Screeps service, a closed source cross-platform client, and that you need to buy from Steam, and an open-source server, which can be Screep’s public server or your own .
The game helps and encourages you to learn to code (JavaScript) as you will need to know basic logical operators and loops to accomplish anything, and then graphics rendering and basic ‘intelligence’ to take your game further. The added beauty of the concept is that your creations continue to live on any active servers, you can code them, leave them, and revisit later to see what they’ ve been up to.
Launch the client and it will ask if you want to play the game or start a server, I’ ll return to servers later in the article, so select the game. After setting a username and customizing your ‘creep’ icon, you’ re ready to start and I’ ll quickly walk through the tutorial.
Screeps is a game of interconnected rooms and ‘creeps’ that live in them. You write the code to bring them to life in the ‘console’ area of the game for immediate actions, and the ‘scripts’ area for the long-running code.
For example, to create a creep with a name and 3 abilities:
Or to set a creep to an automated task to find an energy resource in the current room and fetch it:
Here’s one I entered.
If you want to create your own internal world for friends or workmates then that’s also easy, you have two options. You can use the client from Steam to start a server, but this will mean you can’ t then play the game from that same machine. Or, you can use the npm module.
From there you can change the server and enter your own world and the interface and interactions are much the same. Whilst you can’ t do much to change the client, there’s reasonable explanation of how to change and add to the server code, and lots of forks exist to add functionality.
Beyond good old fashioned gaming, Screeps is great for inter-company coding challenges, hiring, and education, and this is what attracted me to it in the first place. I love novel and fun ways to teach people how to code and it’s a great example of this. I’ d love to know your thoughts and ideas for similar projects or your experiences trying Screeps.

Continue reading...