Find and play a game

Reading is the heart of Tersenet; programs are the optional part. A program is small, at most 1 MiB of memory, and runs on a tiny virtual machine of its own, Terse32, inside the window. It cannot read your files, and the window asks you before it publishes anything in your name.

The games that come with Tersenet

The launcher lists the programs built into the window. Two of them are games. Choose reef, Lumen Reef, and press Enter.

You fly a lamp skiff at the edge of the Reef, drawn in glowing wireframe lines, and hold it against what comes out of the deep: kites that weave and fire sparks, rolling wheels, diving prongs and, every fourth stage, a Warden, a cube in a ring of four nodes. Between swarms you steer between slabs and through gates of light. Aiming is flying: the arrow keys or W A S D move the sight, and the skiff goes where it points, which is also how you dodge. Space, Z or Ctrl fires, as does the mouse button (the pointer aims); a game controller works too, the left stick aiming and A firing. Fire, or Enter, starts a game. Firing heats the guns. P or Esc pauses, V switches the display style. The game ends when your shields are gone.

The other game is sparks:

  SPARKS    HIGH 0000         demo - Enter or Start to play
                                   S P A R K S
                     Collect the sparks, avoid the sweepers.
                     Arrows or stick: turn. Up or A: thrust.
                     Enter or Start: play.        Esc: quit.

Enter plays. Left and Right turn your craft, Up thrusts. Both games keep your high score on this computer, for the next time. Lumen Reef has sound. If you hear nothing, Tersenet says why in a notice at the bottom of the window; terse-host --hardware-check names the sound output it found. Ctrl+Alt+minus and Ctrl+Alt+plus change the volume and Ctrl+Alt+M mutes it, until you close Tersenet: the next start is at full volume. F12 takes you back to the launcher while a game goes on in its tile; Enter on its line there, or a click on it, brings it back.

The other built-in programs are small tools and demonstrations: sketch draws with the mouse, holo shows 3D scenes (try scene 6, a cockpit), hello and fetch show what a program can do, reports gathers performance reports, and sheet is a small spreadsheet.

sheet works like other spreadsheets. Select a cell and type to replace it; Enter keeps the entry and moves down, Tab moves right, Esc puts back what was there. A formula starts with =: type =SUM( and click a cell, or drag over a range, and its reference goes into the formula (the arrow keys do the same while you type a formula); a click elsewhere keeps the entry. F2 or a double-click edits a cell's content in place, and a click on a character of the line at the top puts the cursor there; that line always shows the selected cell's formula and its value. Formulas have arithmetic, & to join text, comparisons, references such as A1 ($A$1 stays put when copied; F4 adds the dollars), ranges such as A1:A5, and SUM, AVERAGE, MIN, MAX, COUNT, COUNTA, ROUND, ABS, INT, IF, AND, OR and NOT. Numbers are exact to four decimal places, so sums of money come out right. The menu bar at the top (click a title, or press F10) shows everything sheet does and the key for each; F1 lists the keys. Ctrl+Z undoes and Ctrl+Y redoes; Ctrl+C copies and Ctrl+X cuts the selection (also onto the clipboard, as text other programs paste), and Ctrl+V pastes it until Esc forgets it; after that, Ctrl+V pastes text copied in another program, a tab starting the next cell and a line break the next row. Ctrl+Plus inserts rows above the selection and Ctrl+Minus deletes them (click column letters first to insert or delete columns); formulas follow. The Data menu sorts the selection, or the table around the selected cell, A to Z or Z to A by the selected cell's column; a first row of headings stays. Ctrl+Shift+1 shows numbers with two decimals and separators, Ctrl+Shift+5 as percentages, Ctrl+period and Ctrl+comma show one decimal more or fewer, Ctrl+Shift+~ as typed. Ctrl+G shows a bar chart of the selection, Ctrl+L a line chart. Ctrl+S keeps the sheet on this computer; File, Save as keeps it under a name, and File, Open lists the sheets you kept. Ctrl+P publishes the sheet in your feed as a document, after the window asks you. A sheet document in a timeline (marked ◆), or a link to one, opens in sheet when you press Enter on it.

Games from other people

Anyone can publish a program in their feed, as they publish an article. There are three ways to come across one:

reader asks to start Sparks by Ana from choir 73670a…a9ee5f.

Y starts it in a tile of its own. A program from someone you do not know is still boxed in: it sees only its own screen, keyboard and the few things the window lets it ask for, and every request to publish or to follow a feed comes to you as a prompt. Say N to anything you did not expect.

There is not much to find yet, though. Tersenet has no catalogue of games, so for now you find programs the same way as feeds: through people you share a relay with, such as the public relay (terse relay add relay.tersenet.org).

Keeping your place

Machines in Tersenet can be saved whole. In the launcher, S saves the session: every program you have open, exactly where it is, mid-game included. The next time you start the window, the launcher's first line offers to bring it back:

Restore last session (1 program)

Enter restores it; D discards it. Nothing is saved without S, except what a program keeps for itself, such as the high score.

What you have now

The whole of Tersenet from the user's side: your own feed, other people's, and the programs. That is the end of the user guide. If you want to see how it works by building a piece yourself, the implementation guide starts with a reader: Make a reader.

The launcher, sessions and every prompt are in Using the shell; publishing a program of your own is in Running and publishing a program.