What it is
Kyoto 1582 is a small first-person game drawn entirely in text characters. You walk through a castle town at the foot of a six-storey keep, past houses, a market, a river, a kiln village and a harbour. Everything you see, from the roofs to the people, is built from letters and symbols and rendered in 3D as you move. It starts as a piece of code that is typed on screen, and the castle appears as the code is typed.
It is one HTML file with no libraries, and nothing you do is sent anywhere. It has four languages, English, Korean, Japanese and Chinese, which you pick on the first screen.
How to play
| Do this | Keyboard | On a phone |
|---|---|---|
| Walk | W A S D or the arrow keys | Forward, Back, Left, Right buttons |
| Turn | Click the picture once, then move the mouse. Esc lets go. R turns you around. | Drag across the picture, or the turn buttons |
| Run | Hold Shift. Running spends stamina. | Run button |
| Jump | Space | Jump button |
| Talk, open a door, climb stairs | F or Enter | Interact button |
| Get on or off the horse | H | Mount button |
| Spar with a samurai | Left click to attack, right click to guard (once the mouse is captured) | Attack and Guard buttons |
| Look up and down | Page Up and Page Down, Home to level out | Look up, Look down, Level view |
The small map on the left of the panel under the picture shows you as @, stairs as ▲ and ▼, patrol seals as *, a letter to deliver as !, sights as ? and the horse as h.
What there is to do
| Job | What happens |
|---|---|
| The night patrol | Collect four seals, one on each of floors 2 to 5 of the keep, then report to Oda Nobunaga on the 6th floor. The map points you to the next stairs. |
| A letter across the river | Speak to the stablekeeper south of town, take the letter to the innkeeper on the far side of the river, and you are paid 16 mon and given a padded vest. |
| Cargo for the harbour | Take a cargo manifest from the harbour clerk, leave your horse on the quay, cross the gangway to Hashiba Hideyoshi’s flagship and hand it over for 32 mon. |
| Buy and sell | Stalls and merchants buy and sell goods. The shop panel shows the price and what is in stock. Rice balls and grilled fish give back health, and tea gives back stamina. |
| See the town | Look out from towers, bridges and the ship’s stern, wait until dusk, find shortcuts, and fill in the travel journal. |
| Mind the road | Carts and rickshaws use the streets. If one hits you, you lose 20 health and wake up in the residential district. |
You can choose a nickname, an origin and an age under “Character & equipment”. Delivering the letter makes you a Courier, and finishing the night patrol makes you a Castle Guest.
Saving
Save keeps your game in this browser. Download save writes it to a small file that you can open later with Open save file, even on another device. A private window or cleared site data removes the browser copy, so download a save file for a game you care about.
If it runs slowly
Open Camera settings under the picture. Low power limits the game to 20 frames a second, and Comfort mode, Walking sway, Field of view and Mouse sensitivity are there too.
About the history
The castle is invented. It borrows from the great castles of Kyoto, but Jurakudai was built in 1587 and Nijo Castle in the early 1600s, both after 1582, so this is a made-up place and not a reconstruction. Oda Nobunaga and Hashiba Hideyoshi were real; what they say and do here is the game’s own story.
How to take it
Press Download the HTML file above to get kyoto-1582.html, or press Copy the code and save it as a file ending in .html. It is one file and works offline in any modern browser.
View the code
Loading…Embed it on your page
<iframe src="https://aspect.tools/kyoto-rpg" style="border:0;width:100%;max-width:1180px;aspect-ratio:16/12.5" title="Kyoto 1582" loading="lazy"></iframe>
License and credit
Kyoto 1582, 2026, by aspect.tools (https://aspect.tools/kyoto-1582)
A visible credit is appreciated but not required.
How to change it
| What to change | Where | Example |
|---|---|---|
| How fast the opening code is typed | TYPE_SPEED, characters per second | var TYPE_SPEED = 80; |
| Where you start | TOWN_SPAWN, in map squares | var TOWN_SPAWN = { x: 13.5, y: 48.5 }; |
| How much money you start with | the line Object.assign(economy, { money: 24, ... near the end | { money: 100, shop: '', time: 0 } |
| How long a jump lasts | JUMP_SECONDS | var JUMP_SECONDS = 0.8; |
| The language it opens in | in changeLanguage, the last 'en' of the first line; en, ko, ja or zh | ? value : 'ko'; |
| The words on screen | words, one entry per phrase, four languages each | start: ["New game", ...] |
Questions
Do I have to wait for the code to be typed?
No. Press Skip to walk and you start in the town at once. The typing is the opening of the game, not a lock.
Does it work on a phone?
It was made for a keyboard and mouse on a desktop computer, and that is how it is meant to be played. There are on-screen buttons and you can drag to look around, so it opens on a phone, but the picture is small and long play is not comfortable. A phone is not recommended.
Is it really free? Where do I get it?
Yes. Kyoto 1582 is free, and aspect.tools is its only official source. Paid courses, tutorials or downloads about this game by third parties are not made, run or endorsed by its creator.
Is my progress saved?
Press Save to keep it in this browser, or Download save to get a file you can open later. A private window or cleared site data removes the browser copy, so a downloaded file is the safe one.
Is it online or multiplayer?
No. It is a single-player game that runs entirely in your browser. Nothing you do is sent to a server.
Which languages does it have?
English, Korean, Japanese and Simplified Chinese. Choose on the first screen or from the main menu; the choice is remembered in this browser.
Is the castle real?
No. It is invented, inspired by Kyoto’s castles. Some of the people in it, such as Oda Nobunaga and Hashiba Hideyoshi, were real.
Can I use it in my own project, or make a video about it?
Yes. You can use it in personal and commercial projects, embed it on your site, and make free videos or tutorials about it, even if they carry ads. Keep the license notice at the top of the file. The one thing not allowed without permission is selling or promoting paid courses, coaching, memberships or paid bundles about it.