programming-game
v0.10.2
Published
The client for programming game, an mmorpg that you interact with entirely through code.
Maintainers
Readme
Quick Demo
There's an in-browser, no sign up required demo available here.
Getting Started
Create an account then clone the starter and follow the getting started guide.
Controlling your Character
Control of your character is done 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 gets called for each subscribed character on every
* update from the server.
*
* It's fully typed, so feel free to explore the api.
*/
onTick: (heartbeat) => {
if (heartbeat.player) {
return heartbeat.player.move({
x: heartbeat.player.position.x + 1,
y: 0,
})
}
},
})Getting Help
If you need any help with code or mechanics, or want to coordinate with other players, come join the discord server
