Git Product home page Git Product logo

cyberspace-sdk's Introduction

Cyberspace.dev - Online Game For Developers

alt text

Description

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

Quotas

Max requests: 5 p/s
Max connections: 20 p/ip

Quick start

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('[email protected]', '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

cyberspace-sdk's People

Contributors

cyberspace-dev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.