Aspect ratio calculator / Kyoto 1582

Kyoto 1582

A first-person castle town drawn in text. Walk, climb the keep, trade and run errands.

Game · 2026 · All games

Press New game. The castle is typed into being for about twelve seconds; press Skip to walk to start at once. Click the picture once so the keys reach the game. It is made for a keyboard and mouse on a desktop computer and plays best in full screen. Phones are not recommended. Free to play, take and embed.

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 thisKeyboardOn a phone
WalkW A S D or the arrow keysForward, Back, Left, Right buttons
TurnClick the picture once, then move the mouse. Esc lets go. R turns you around.Drag across the picture, or the turn buttons
RunHold Shift. Running spends stamina.Run button
JumpSpaceJump button
Talk, open a door, climb stairsF or EnterInteract button
Get on or off the horseHMount button
Spar with a samuraiLeft click to attack, right click to guard (once the mouse is captured)Attack and Guard buttons
Look up and downPage Up and Page Down, Home to level outLook 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

JobWhat happens
The night patrolCollect 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 riverSpeak 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 harbourTake 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 sellStalls 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 townLook out from towers, bridges and the ship’s stern, wait until dusk, find shortcuts, and fill in the travel journal.
Mind the roadCarts 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

Free, with one exception. Kyoto 1582 uses the MIT License, which lets you use it, change it, share it, embed it and sell things made with it, for personal or commercial work. One line is added: without written permission you may not use the game, its code, its name or screenshots or recordings of it to sell or promote paid courses, lessons, lectures, tutorials, coaching, memberships or paid download bundles about it, on social media or anywhere else. Free tutorials and free videos are fine, even with ads. Keep the license notice that is at the top of the file.
Official source. Kyoto 1582 is free from aspect.tools, its only official source. Paid courses about this game by third parties are not made, run or endorsed by its creator.
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 changeWhereExample
How fast the opening code is typedTYPE_SPEED, characters per secondvar TYPE_SPEED = 80;
Where you startTOWN_SPAWN, in map squaresvar TOWN_SPAWN = { x: 13.5, y: 48.5 };
How much money you start withthe line Object.assign(economy, { money: 24, ... near the end{ money: 100, shop: '', time: 0 }
How long a jump lastsJUMP_SECONDSvar JUMP_SECONDS = 0.8;
The language it opens inin changeLanguage, the last 'en' of the first line; en, ko, ja or zh? value : 'ko';
The words on screenwords, one entry per phrase, four languages eachstart: ["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.

Related tools and guides