Hi Pilot !
Cyberspace.dev - online game for developers! The game has a fairly simple game model and does not require much time to start. This is an excellent platform for both manned control and for the development of automation scripts and even artificial intelligence!
Our website: https://cyberspace.dev
Max requests: 5 p/s
Max connections: 20 p/ip
Install module as npm package
npm install @cyberspace-dev/sdk
Import type from package
import {Account} from "@cyberspace-dev/sdk";
If you are trying to connect from the frontend side then use the following code to disable CORS
Utils.disableCORS = true;
Connect to account service and signin
const account = await Account.connect();
await account.signin('your@email.com', 'password');
Look at objects you own and select any ship
const objects = await account.objects();
const instance = objects.find((object: any) => object.type === 'Ship');
If you don't have a ship yet, use the following method to create a new one.
await account.assemble();
Take control over your ship
const {uuid, quadrant} = instance;
const ship = await account.getShip(uuid, quadrant);
Escape from the planet and explore other commands in our wiki
await ship.escape();
You can dispose the ship if you no longer need it because it consumes 1 connection
ship.dispose();
Congratulations!
Please read our wiki: https://github.com/cyberspace-dev/cyberspace-sdk/wiki
You also can download the starter project from https://cyberspace.dev/assets/starters/starter.zip