← all work

project 4 of 4

japan game (working title)

a quiet mountain village, built as a world where my own small ai model will learn to play.

role
solo developer
year
2026
  • Godot 4.7
  • GDScript
  • Forward+ renderer
  • Jolt physics

the problem

I wanted a small AI to learn how to make a home. So first I built it a quiet village.

Japan Game is not only a game. A person can play it, but its real purpose is to be a training ground for my own small AI model: a calm world with clear goals, clear rules and progress that can be measured, where a model can learn by playing.

Where it stands today. The world is built and playable. The AI training is the next stage, and it is not built yet. No model has been trained on it, and no model is playing it.

Why build a world at all?

  • Small models learn best from a simple, fair world. They need goals they can reach, rules that do not change, and quick feedback.
  • Most games are the wrong size. They are too big, too fast or too random for a small model to learn from.
  • Real-world data is messy. It is hard to tell a model what “better” means.

So I made my own small world first: one village, a handful of materials, one clear goal, which is to build a house, and rules that always explain themselves.

the world

You play a villager in a mountain village in old Japan. There are houses, a storehouse, a well, a red torii gate, a shrine, stone lanterns and fences. Beside the village are a bamboo grove, a cedar forest and a stream.

a sketch of the valley, not to scale. the path runs north from the start, over the bridge and past the red gate.
what each piece of a house costs
piecewhere it goescost
floorfills one square of the grid
  • 2 wood
  • 1 stone
poststands on a corner
  • 1 wood
wallstands on an edge, between two posts
  • 2 bamboo
  • 1 straw
doorstands on an edge, like a wall
  • 2 wood
  • 1 bamboo
roofrests on the four posts of a square
  • 2 bamboo
  • 2 straw
verandaan open deck beside a floor
  • 1 wood
  • 2 bamboo
flowersa bamboo vase in a corner
  • 1 bamboo
  • 3 flowers

Taking a piece away gives its materials back.

screenshots and a short clip are coming later. for now, these are my own drawings.

  • You see the villager from behind. The camera follows the player. You walk with W, A, S and D, run with Shift, and look around with the mouse.
  • You cut bamboo with a katana, and the stalk falls. You gather wood, stone, straw and flowers into an inventory.
  • You build a house piece by piece. In build mode there are seven pieces: floor, post, wall, door, roof, veranda and flowers. They snap to the traditional ken grid, with 1.82 metres between posts.
  • Every piece has a real cost, shown in the table above.
  • The preview tells you if a piece fits. It turns gold when it fits and ink-red when it does not, with the reason written on the screen.
  • Day turns into night. The sun and moon, the sky, the light, the fog and the mist all change together. Lanterns and crickets answer the night. Holding T makes time run faster.
  • A one-line guide leads new players, from the first bamboo to the first roof, and the game saves your progress.

It is made in Godot 4.7 with the Forward+ renderer and Jolt physics, in about 11,000 lines of GDScript. It is tuned to run smoothly on a laptop graphics card with 4 GB of memory.

how it works

A model learns by going round one loop many times. It looks at the world, chooses something to do, sees what happened, and is told how well it is doing. The village is built to make every part of that loop simple.

the worldvillage, materials, rules andcosts: playable todaybuilt1the AI sees the worldwhere it is, what it carries,what is nearbynext2it chooses an actionwalk, cut, pick up, place,removenext3the world answersa new inventory, a piece thatfits or does not, and whybuilt4progress is scoredmaterials gathered, piecesplaced, house finishednext5the model learnsand tries again, a littlebetternextthe worldvillage, materials, rules andcosts: playable todaybuilt1the AI sees the worldwhere it is, what it carries,what is nearbynext2it chooses an actionwalk, cut, pick up, place, removenext3the world answersa new inventory, a piece thatfits or does not, and whybuilt4progress is scoredmaterials gathered, piecesplaced, house finishednext5the model learnsand tries again, a little betternext
the learning loop. the world in the middle exists today; the steps marked 'next' are still to be built.

Why this world suits an AI:

  1. One clear goal, with steps that build on each other. Gather, have enough, place a piece, finish the house.
  2. Progress can be measured. The inventory is a plain list of amounts, and every piece has an exact cost.
  3. The rules explain themselves. A piece that does not fit says why. That is the kind of feedback a learner needs.
  4. Mistakes can be undone. Taking a piece away gives its materials back, so the AI can try again without getting stuck.
  5. It can already run by itself. The game has test switches. One is an autopilot that walks the main path on its own, and another gives fixed test cameras. This is the first step toward letting an AI control the villager.
  6. The world is the same every time. One map decides where everything is, so the results of two training runs can be compared.

key decisions

build the world before the AI

I made a small, fair world first, and left the model for later.

Why: a model can only be as good as what it learns from. I wanted it to have something worth learning.

a real craft as the goal

The goal is to build a house on the ken grid, one piece at a time.

Why: it gives a long task with clear steps, instead of a score to chase.

rules that explain themselves

Every “no” comes with a reason, on the screen.

Why: a learner that only hears “no” has to guess. A learner that hears why can fix it.

free assets only

Everything is CC0 or credited. Nothing comes from a paid AI asset generator.

Why: I want to be able to share the world freely, and to say exactly where every part came from.

what was hard

A rich world on a small graphics card. The valley has shadows, fog, mist and thousands of plants, and it has to run on a laptop card with 4 GB of memory. The bamboo is drawn from one model placed many times, near plants use a detailed model and far ones a simple model, and the leaves are flat cards instead of single leaves. The game has a built-in benchmark, so I could measure each change.

Bamboo that falls, and pieces that snap. A cut stalk has to fall in a believable way and leave a stump behind. Building has to follow the traditional grid: a floor fills a square, a post stands on a corner, a wall stands on an edge between two posts, and a roof rests on the four posts around it.

One clock for the whole world. The day-and-night cycle changes the light, the sky, the fog and the sound together. Other parts of the game read a single “how much night is it” value, so the lanterns and the crickets stay in step with the sky.

results

  • 7pieces a house is built from
  • 5materials to gather: bamboo, wood, stone, straw and flowers
  • 1.82 mone ken, the distance between posts
  • 11,000lines of GDScript, roughly
  • 1village, with a grove, a forest and a stream
  • 0AI training runs so far. That stage comes next.
  • These numbers describe the world itself. There are no player numbers and no AI results, because training has not started.
  • The world is playable today, from the first cut of bamboo to a finished house.

what’s next

  • Let the AI control the villager through the same actions a player has.
  • Record what it sees and does, and score its progress toward a finished house.
  • Train my small model on that, and show its first attempts here.
  • Add screenshots and a short clip of the world.

credits

Nothing in the game comes from a paid AI asset generator. This is where each part came from.

  • Engine: Godot Engine 4.7.2 (MIT).
  • Textures and materials: photoscanned, from Poly Haven (CC0), with the bamboo and leaf photos from ambientCG (CC0).
  • 3D models: Poly Haven (CC0). They include the antique katana by Tal Swicegood, dry branches and wood sorrel by Rico Cilliers, a rock by Jenelle van Heerden, a dandelion by Rob Tuytel and Rico Cilliers, and a periwinkle plant by Amal Kumar.
  • Nature sounds and music: Wikimedia Commons. Forest birds by dobroide (CC BY 3.0), a bush warbler by Fg2 (public domain), a bush warbler call by Jnn (CC BY 2.1 JP), a stream by jackthemurray (CC0), night insects by cory (CC BY 2.1 JP), frogs by Dawn VanDeman (CC0), “Shika no Tone” played on shakuhachi by Araki Kodo III and restored by Torsodog (public domain), and a koto performance by Torsodog (CC BY 3.0).
  • Footsteps and tool sounds: OpenGameArt (CC0), by Fantozzi, TinyWorlds, artisticdude and rubberduck.
  • Font: Zen Kaku Gothic New (SIL Open Font Licence 1.1).
  • The villager: made in MakeHuman Community (CC0). The skeleton and the animations are from Adobe Mixamo, which are free to use in games.
  • Clothes: MakeHuman community assets by Mindfront (CC0), MargaretToigo (CC0) and Elvaerwyn (CC BY).
  • Made for this project: all scripts and shaders, the shapes of the land and the buildings, the interface, the sky and the water.