build-game-farming

Created about 11 hours ago

attributes
additional_license_urlshttps://github.com/MengTo/Skills/blob/2f8cb46167bec49ee3c4a6ca37972fc065b6b47e/agent-skills/game-development/build-game-farming/LICENSE
descriptionBuild or improve farming in a village builder or life simulation game. Use for crop selection, vegetable plots, rice paddies, orchards, watering, seasonal growth, worker assignments, partial harvests and pantry yields.
licenseMIT
license_urlhttps://github.com/MengTo/Skills/blob/2f8cb46167bec49ee3c4a6ca37972fc065b6b47e/LICENSE
namebuild-game-farming
publisherMengTo
repository_urlhttps://github.com/MengTo/Skills
source_urlhttps://github.com/MengTo/Skills/blob/2f8cb46167bec49ee3c4a6ca37972fc065b6b47e/agent-skills/game-development/build-game-farming/SKILL.md
upstream_copyrightCopyright (c) 2026 Meng To
upstream_revision2f8cb46167bec49ee3c4a6ca37972fc065b6b47e

Farming

Give the player a reason to choose what to grow. Build a short route from seed selection to a visible harvest and then to a meal. Find the existing placement grid, game clock, worker jobs, inventory and save format first.

Make the choice visible

Offer a fast crop, a high-yield crop and a recurring fruit tree. Preview the first harvest, yield, water needs and a recipe at planting time. Adapt these Bellwater examples to the game's day length.

Crop Base cycle Yield Read it from gameplay distance
Daikon 42 s 7 food White shoulders emerge above broad leaves
Cabbage 55 s 10 food Outer leaves cup around a dense heart
Strawberries 38 s 6 food Pale blossoms give way to low red fruit
Pear tree 84 s after establishment 8 food Branches persist after the pears are picked

Arrange several beds with a walkable lane between them. Put fruit trees at the back of the default view. Seed rotation, spacing and leaf tint by plot and cell so plants stay put after reload. Instance repeated growth stages. Update only the cells that changed.

Use one growth clock

  • Persist a plot ID, sowing revision, crop key, planted time, base duration, watering time and harvested cells. Read the same progress for the mesh, countdown, harvest button and worker scheduler.
  • For ordinary beds, let one watering speed up the remaining work by 25%. A 55-second cabbage watered at second 15 takes another 32 seconds and ripens at 47. Its visible size stays continuous at watering.
  • Treat a rice paddy separately. Level the water within its berm and show transplanted shoots, grain heads and cut stubble. Exclude it from the dry-bed watering action.
  • Give orchards a permanent trunk, an establishment date and a repeatable fruit cycle. Use a half-open picking window. In a 16-day year starting at day zero, pears can ripen from day 7 up to day 10. If growth ends at day 10, show day 7 of the next year. Keep the tree after harvest.

Make each pick count

Reserve an accessible cell before a worker walks over. At hand contact, recheck the plot, revision, cell, ripeness and inventory capacity. In one change, mark the cell, credit its ingredient and clear its visible produce. Let a manual pick use that same command. A late worker should find another cell.

Keep the ripe state through partial harvest. Load the picked cells before drawing the bed. On replant, issue a new revision and clear watering and picks. When the last pear is picked, start the next fruit cycle without resetting tree age. Show the pantry change and surface a recipe that just became available.

Plot example uses one yield unit per cell and a separate orchard calendar helper. Run node --test scripts/farming.test.mjs from this folder.

Check watering halfway, pausing, skipping a season, picking two cells, saving and loading, then racing a worker for the final cell. Watch the hand, plant and pantry on the same frame. Verify the next sowing starts dry.


Copyright (c) 2026 Meng To

The license files are attached. MIT

The attached ZIP contains the pinned supporting files and applicable license notices.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.