farm

command
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL