Aspect ratio calculator / Ocean Voyager 1785

Ocean Voyager 1785

A voxel sailing and trading RPG on a map of the whole world in 1785. Unfinished, but with a fairly complete set of systems, so it is a good one to take and build on.

Game · prototype v0.3 · 2026 · All games

Click the map to sail there. Best on a computer with a keyboard and mouse. It saves in this browser on its own. It plays best in full screen. Also in Korean: 한국어판. Free to play, take and embed.

What it is

Ocean Voyager 1785 is a sandbox game about sailing, trading and fighting across the oceans of 1785. The map is drawn as isometric voxel terrain with 105 real ports, from Lisbon and London to Canton, Batavia, Tahiti and Nootka. You start as a free captain with a small brig and 2,500 gold, and nobody tells you what to do. Buy cheap, sell dear, learn the winds, join a power or turn pirate.

It is one HTML file with no libraries and no server. Nothing you do is sent anywhere.

Status: unfinished, but not empty

This was made for fun and is a prototype. It has no ending, the balance is rough, and some parts are thin. But the systems underneath are already fairly complete, which is the reason to share it: you can take the file or the source and use it as the base of your own sailing, trading or strategy game.

SystemWhat is in it
WorldA voxel world map with fog of war, 105 ports, 42 landmarks to discover, a minimap and a camera you can rotate and zoom.
SailingClick-to-sail route finding, trade winds, westerlies and monsoons by season, hurricane and typhoon seasons, scurvy, food and wages.
TradeTwelve common goods and seven regional specialties that can only be bought at their origin. Prices move with your own trades. Ten cultures with their own banned goods, interpreter fees and trade limits, including closed ports.
Ships and crewTwelve ship types sold by region, shipyard refits, escort ships, and officers (navigator, gunner, surgeon, purser).
CombatTurn-based naval battles with ranges, broadsides, chain shot, boarding and fleeing, against pirates, merchants and navies.
PoliticsNine powers that run their own diplomacy: war, peace, alliances, trade pacts, colonies and port changes. You can take a letter of marque, a company contract or a naval commission, or join the pirates.
StoryFour rival captains with short branching stories, discovery reports, delivery contracts and a short first-voyage tutorial.
ToolsSave in the browser, a pixel or smooth drawing style, and a developer mode (press F2) with cheats, teleport and spawn tools.

Things you will notice are missing: sound, an ending, a deeper economy for the player’s bases, and polish on phones.

How to play

Do thisHow
SailClick anywhere on the map and the ship plots a route. Or steer with ← → / A D and set the sails with ↑ ↓ / W S. Space drops or raises the anchor.
Enter a portNear a port, press F or the Enter button. A port has a Market, Shipyard, Fleet, Invest tab and a Tavern.
TradeBuy goods marked Cheap and sell them where they are marked Dear. A star marks a regional specialty.
Look aroundHold Q / E to rotate the view and use the wheel to zoom. N opens world affairs, J your discoveries, H help.
FightA ship that meets you starts a battle screen. Pick an action each turn. Plundering a nation’s merchants costs you its reputation.

Watch out for scurvy after about 55 days at sea, and for hurricane and typhoon season from July to October.

On a phone. It runs on phones, but we do not recommend playing there. The port window is large and the buttons are small, and some of the on-screen buttons sit on top of it. Use a computer.

Languages

The game is in English and in Korean. The Korean text is the original. The English edition is built from it with the translation tables in the source zip, so other languages can be added the same way. The two editions keep separate saves.

Saving

The game saves in this browser as you play and when you enter a port. It does not export a file. A private window or cleared site data removes the save.

How to take it

Press Download the HTML file above to get ocean-voyager-1785.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. For the editable source, take the source zip.

View the code
Loading…

Embed it on your page

<iframe src="https://aspect.tools/ocean-voyager-play" style="border:0;width:100%;max-width:1180px;aspect-ratio:16/10" title="Ocean Voyager 1785" loading="lazy"></iframe>

What is in the source zip

FileWhat it is
parts/head.html, parts/js1.js to js13.jsThe page, the styles and the game code, in 13 parts.
world.jsonThe world: the terrain grid, the ports and the factions.
terrain.py, polys*.py, ports_*.pyScripts that draw the continents and place the ports. Python with numpy and Pillow.
build_game.pyJoins the parts and the world into game.html.
en/The English translation tables and build_en.py, which writes game_en.html.
sim1.py, sim2.pyBalance tests: 100 years of diplomacy, and a trading bot. They need Playwright and Chromium.

Build with python3 build_game.py, then python3 en/build_en.py for the English edition.

How to change it

What to changeWhereExample
Starting goldgold:2500 in js1.jsgold:10000
Starting ports on the title screenSTARTS in js1.js['london','canton']
Goods and base pricesGOODS0 and SPECIALS in js1.jsbase:20
Ship types and statsSHIPS in js1.jscannons:12
Cost of a base of your ownBASE_COST in js7.jsBASE_COST=1000
Escort ships and officers you can haveMAX_FLEET, MAX_OFF in js9.jsMAX_FLEET=4
Landmarks to discoverPOIS in js8.jsa new row with a name, longitude and latitude
Rival captains and their storiesRIVALS in js11.jsa new entry with scenes and choices

License and credit

Free, with one exception. Ocean Voyager 1785 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. Ocean Voyager 1785 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.
Ocean Voyager 1785, 2026, by aspect.tools (https://aspect.tools/ocean-voyager)

A visible credit is appreciated but not required.

The game is a fictional sandbox that only borrows 1785 as a setting. Names of ports, powers and places are used for the setting, and its events and characters are invented.

Questions

Is it finished?

No. It is a prototype made for fun, version 0.3. It has no ending and the balance is rough. It does have fairly complete systems for sailing, trade, ships, combat and diplomacy, which is why it is shared as something to take and build on.

Does it work on a phone?

It runs, but we do not recommend it. The port window is large, the buttons are small and some on-screen buttons sit on top of it. Use a computer with a keyboard and mouse.

Is my progress saved?

Yes, in this browser, as you play and when you enter a port. A private window or cleared site data removes it. The English and Korean editions keep separate saves.

Is it historically accurate?

Only as a setting. The year, the powers, the ports and the trade goods come from the period, but the events, characters and balance are invented for play.

What languages are there?

English and Korean. The Korean text is the original, and the English edition is built from it with translation tables that are in the source zip, so you can add another language the same way.

Is it online or multiplayer?

No. It is a single-player game that runs in your browser. Nothing you do is sent to a server.

How do I get the source?

Press Download the source (.zip) on this page. It has the game code in parts, the world data, the scripts that make the map, and the build scripts.

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