Programming Game is an mmorpg that you interact with entirely through code.
Getting Started
Visit the homepage and sign in via Github to create your account. You'll need to sign up for a $5/month subscription for each character that you wish to control within the game. The full game is accessible with only one character, but requires coordinated teamwork to progress.
After creating your account, and activating your subscription, you can copy your User ID as well as your API KEY to use with this package.
Controlling your Character
Control of your character is done entirely through code. Below is the most basic snippet you can use to get started.
import { connect } from "programming-game";
connect({
credentials: {
id: "<supply your user id here>",
key: "<supply your api key here>",
},
onTick: (heartbeat) => {
if (heartbeat.player) {
return heartbeat.player.move({
x: heartbeat.player.position.x + 1,
y: 0,
});
}
},
});