Documentation
¶
Overview ¶
Farm is a little farming game in native UI: walk a farm with the keyboard, till the grass, plant seeds, water them and harvest what grows, through a camera that follows you, as days turn to night, with sound and music. The game plugin runs it, in fixed steps (game.View), and its camera follows the farmer (game.Camera). Everything it draws and plays is made by its code: pixel art in a pixelated sheet drawn with Painter.ImageRegion, and sounds synthesized for package audio.
go run ./examples/farm go run ./cmd/golet dev -web examples/farm
Arrows or WASD walk, Space or E uses the tool (or harvests what is ripe), 1 2 3 or Q choose the tool, + and - zoom, and M plays or stops the music. With a gamepad: the left stick or the d-pad walks, A uses the tool, the shoulder buttons choose it, and Start plays or stops the music.