Your Cart
Loading
Only -1 left

Kingdom Cannon

On Sale
$1.25
$1.25
Added to cart

You can also play it for free here: https://kingdom-cannon.onrender.com/


Kingdom Cannon

A browser-based arcade artillery game with ships, gravity, fire, smoke, and medieval coastal defense.

File

kingdom-cannon.html

Platform

Modern web browser

Players

Single player

Game Objective

The player controls a cannon mounted by a medieval tower on the lower-left side of the screen. The goal is to destroy every ship in the fleet by firing cannonballs under Earth gravity.

When all ships are destroyed, the game displays a large completion message such as All of the 15 ships have been destroyed.

Rules

  • A ship is destroyed only when the cannonball hits the hull/body or falls into the ship interior from above.
  • Hits on sails or masts do not destroy a ship.
  • The cannonball follows gravitational projectile motion using Earth gravity.
  • The fleet size can be set from 1 to 20 ships.
  • Destroyed ships remain visible as burning wrecks until the player restarts.

Controls

  • Drag from the cannon to aim and set firing strength, then release to shoot.
  • Use the angle input box for precise angle entry.
  • Hold the angle plus/minus buttons to continuously increase or decrease the angle.
  • Use the power slider or power plus/minus buttons to adjust shot strength.
  • Use the ships input box or ships plus/minus buttons to choose 1 to 20 ships.
  • Press Fire or release a drag shot to fire.
  • Press RESTART or the R key to start a new fleet.
  • Keyboard shortcuts: arrow up/down adjust angle, arrow left/right adjust power, and space fires.

Features

  • Random ship placement across the right side of the battlefield.
  • Configurable fleet size from 1 to 20 ships.
  • Medieval tower with a waving flag and light-brown stone color scheme.
  • Telemetry panel showing gravity, shots fired, and shot range.
  • Projectile trajectory preview before firing.
  • Persistent destroyed ship wrecks with smoke and fire.
  • Printer-friendly documentation in this file.

Animations

  • Ships bob and roll in a wavy motion.
  • Water waves and wake lines appear beneath ships.
  • The tower flag moves in the wind with cloth-like curves.
  • Cannon shots create muzzle flash, sparks, and smoke.
  • Ship hits create explosion particles, debris, smoke, fire, torn sails, hull damage, and broken masts.
  • Broken masts snap at randomized heights.
  • Hit ships keep emitting smoke throughout the round.

Sound And Music

  • Background music uses built-in browser audio synthesis.
  • Cannon firing has a short blast effect.
  • Cannonball flight has a digital tone that lowers in frequency as the ball travels.
  • Ship explosions last several seconds, starting loud and fading with crash, fire, and splinter sounds.

Browsers usually block audio until the player interacts with the page. Music and effects begin after the first click, drag, key press, or button action.

Installation

  1. Keep the game file named kingdom-cannon.html.
  2. No server, package manager, or installation step is required.
  3. Open kingdom-cannon.html directly in a modern browser such as Chrome, Edge, Firefox, or Safari.
  4. For best results, use a desktop or laptop browser with sound enabled.

Files

  • kingdom-cannon.html: the complete game in one HTML file.
  • kingdom-cannon-info.html: this printer-friendly game information document.


You will get a ZIP (15MB) file