Sprout blog

Every change to Sprout, its library and its consoles, in a few lines. Feed.

Tide Machine

A lighthouse keeper's slot machine on a stormy night: pay the sea each tide, buy charms from a gull. Play it. New: reels.

SPROUT·NOW, and Orbit Garden

Sprout games can look modern now: "style": "modern" drops the handheld, fills the phone edge to edge, and draws smooth, sharp shapes, soft glows and gradients in Sora. Orbit Garden shows it off: hop a seed of light from orbit to orbit with one thumb as the sky turns from dawn to night.

SPROUT·256: the future, as 1995 drew it

The console now has a third tier: Eight.start({ bits: 256 }) gives a 480 by 270 screen in true colour where everything bright glows, with faint scanlines, sprites that turn and zoom, and four buttons in an arc, as on the big arcade machines. Smoky purple plastic over its circuits, a holographic sticker and a boot screen with a jingle. Starlane 2025 is its first game: surf a glowing lane into the sunset, boosting, jumping, spinning and bombing with all four buttons.

Smalltalk in Sprout

Any value can now be asked about itself: v messages lists what it understands, and 3 responds-to "pow" says yes. Sprout always sent messages one at a time, Smalltalk's way; now it can look before it sends.

Ruby in Sprout

Ruby's best-loved words are Sprout's now: 5 then [n | n * 2], tap, each-cons, minmax, tally, 1907 digits, "hi" center [6, "*"], squeeze, and "az" succ, which is ba.

Potion in Sprout: licks

_why's Potion had a little data language; Sprout's lick is in its spirit. Write data as an indented outline, lick read it into a tree, and lick write it back. Good for levels, menus and quests written by hand.

Portrait screens, and taps

A game can bring its own screen size now, and a tall one gets a tall handheld where the screen takes nearly all of it. Taps on the screen reach the game too, as g input tapped with touch-x and touch-y.

Graphs, sets and caves

New in the library is graph, for things joined by arrows: the order to do tasks in, what a task waits on, the cheapest way through and a project's critical path. Beside it, sets toggles and picks, automata grows roguelike caves from a seed, and vec turns a turret the short way round.

Sprout among the languages

Sprout stands beside thirteen other languages on the page, from BASIC and Smalltalk to Elm and APL. It shows what Sprout took from each, what it left, and four small programs side by side.

Greenhouse, an experimental IDE

Greenhouse runs your program beside its code: drag a number and the game answers as you drag, see every name's live value at the end of its line, and ask any value what it understands. Pause, scrub back in time, change the code there, and the future replays as amber ghosts; or fork a what-if and watch the old code and the new run side by side.

HyperTalk in Sprout

Text now has HyperTalk's chunks: "the quick brown fox" word 2 is quick, and t line 3 word 1, t item 2 and t char 1 read the same way. And stack makes an app a HyperCard stack: go next or by name, find words on any card, put a value into a field.

A slightly soggy guide

Sprout has a storybook now: the guide's first chapter teaches cells, records, collect and a tappable game, with two seedlings and a grumpy watering can. Every answer on the page was worked out by Sprout itself.

Fathom

A diving bell's slot machine, upright on the new tall screen: build your reels from a bag of symbols, pay the ship's air bill each dive, and outlast a monster every third dive. Play it; new in the library are bag, shop and focus, for building reels, running a shop, and screens that work by touch and keys alike.

Blocks, thunks and each

Sprout already evaluates one level at a time: [1 + 2]! is 3, and [[5 * 5]]! is a block that isn't run. From the owner's design notes, each is being changed to gather its results and drop to discard what a cell matches; thunks (~(...)) are written up as a proposal in decision 158.

A blog for Sprout

From now on every change to Sprout gets a post here, a few lines long, and a feed. Posts are small files in sprout3/blog/, so builders working side by side each write their own.

A page for ACE

ACE, the Atomic Constraint Engine, has a page of its own: one primitive, with done derived from the graph and never stored. All eight examples run on the ACE page.

SPROUT·16

Eight.start({ bits: 16 }) turns the console 16-bit: a 320 by 224 screen, 512 colours, and a warmer lead with a little echo. A game moves up by changing one number.

Games made side by side

A new game now lives in files of its own (games.d, tests8, skins), so seven games could be built at once without two hands on one file. node publish.js <game> puts one on the site in one go.

Keys that repeat

Hold an arrow and g input repeated "left" fires at once, again a quarter second in, then twelve times a second, the way a falling piece slides. Fizz Jar and Brick Snap play better for it.

Games see a key go down

The frame now hands every game pressed and released beside held: g input pressed "one" is true on the one tick a button goes in. No game has to remember last tick's keys any more.

Lily and Chester

A week at the stable with Lily and her horse Chester, then the county show. Play it. New: needs, for pet and farm games.

Kits: library code that draws

A kit is a Sprout module that draws with a game's own words, loaded when the game names it. The first, ui, holds what our games kept rewriting: ui banner, ui talk, ui meter, ui choices, ui wipe. Its examples state what they draw, and that is checked. See the library.

Headstrong

The first SPROUT·16 game: a big head with tiny arms and feet hops through a bathroom. Play it. New: platform, the feel of a platform hero in one step.

Fizz Jar

Pairs of fizzy drops fall on grumpy sours; four of a colour pop. Play it. New in the library: runs, for falling-block and matching games.

Brick Snap

Snap toy bricks onto an 8 by 8 baseplate and pop full rows and columns. Play it. New: piece, for block puzzles.

Blade Beach '90

Rollerblades, a boardwalk at sunset, a roller-derby giant. Play it. New: parallax, and a second kit, retro, that draws striped suns, palms and neon.

Basketball Legends 8

One on one against a legend of each decade, 1960 to forever, on an arcade cabinet. Play it. New: arc, for things thrown through the air.