
Nautical is a pixel-art sailing and trading game I made with Python and Pygame. Buy a ship, choose a map, and trade between ports. Reaching the target amount of money wins the game; losing the ship ends it. The game is controlled entirely with the left mouse button.
Ships, cargo, and routes
Ships differ in price, cargo capacity, speed, durability, and risk parameters. A cheap raft limits both the cargo and the journey. Buying another vessel changes the routes and loads worth considering.
On the sailing page, players select a destination and press Sail, or double-click a destination to depart. Speed determines how many moves the ship can make in a round. Routes connect ports and the starting position, while pirates, storms, salvage, and other events appear through dialogs.
Ports have individual inventories and pricing. Their configuration specifies what they sell and which goods receive higher or lower purchase prices. Price variation creates trading opportunities, with cargo space, travel distance, and risk shaping each trip.
The map editor
I wrote a separate Pygame editor that overlays a grid on the map image. Selecting cells changes their type, and the starting position can be edited too. The result is saved back to the map's JSON file.
A map records its background, scale, spawn, grid, and three ports' trading rules. items.json contains item names, icons, and base prices. ships.json contains vessel capacity, speed, durability, and price. These files provide the data for adjusting the game.
Screens and components
The start screen, shipyard, map selector, sailing screen, trading screen, and results are organized as separate pages. Shared components draw buttons, menus, dialogs, and inventory slots. Click handlers are registered and removed with their page context.
I prepared Adobe XD designs for the start screen, shipyard, trading, and sailing. Pixel fonts, images, music, and sound effects are loaded as local resources, with scrolling backgrounds and floating icons in some screens.
The repository retains both the game and map editor. Releases also included executable versions that did not require a Python installation.



