Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Starstream api

screen

screen.write(string)

Write string to player terminal. Does not automatically append newlines.

ship

ship.id

This ship's unique universal identifier (UUID)

ship.thrusters

Array of the ship's thrusters

ship.radio

Instance of Radio

Class: Thruster

thruster.force([force])

Sets thruster force if specified, returns current force

screen.write('Thruster force: ' + ship.thrusters[0].force(3));
// Thruster force: 3

Class: Radio

Event: 'message'

  • message message string
  • sender Sending ship's UUID

radio.send(string)

Broadcast string over the galactic radio

// repeat all messages
ship.radio.on('message', function(message, id) {
  if (id !== ship.id) {
    ship.radio.send('repeating: ' + message);
  }
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors