Temple Putt | HTML5 Game – Online Multiplayer Mini Golf for 1 to 6 Players
Temple Putt is a mini golf game for 1 to 6 players in a lost jungle temple, made with pure HTML5 Canvas and JavaScript. Pull back, let go, and roll the ball round sandstone walls, jade bumpers, turning stone bars, slopes, sand traps, water and jade masks that carry the ball to their twin. Play online with friends and players from anywhere, against three levels of computer golfers, on one device with Pass and Play, or alone through the Temple Tour with stars, Practice and a Daily Hole. Online play needs no game server of your own: private rooms with a code or an invite link, quick match, a lobby, everybody putting at once or in turns, reconnect, and the game goes on even when the host leaves. Coins, 20 titles, a shop and daily tasks keep players coming back, and a level editor lets you draw your own holes.
It runs in any modern browser on mobile and desktop, in landscape, portrait and square screens, from a web server or straight from disk. No framework, no build step.
Gameplay
- 36 holes in 4 courses, each with its own look and light: Jade Gardens, Sun Steps, Serpent Caves and Gold Sanctum
- Pieces: stone walls and blocks, jade bumpers, stone pillars, turning stone bars, slopes, sand, water (one penalty stroke) and pairs of jade masks that carry the ball across the hole
- Deterministic ball physics: the same putt rolls the same way on every device
- Pull-back aiming with a power arrow and a short dotted guide; keyboard aiming on desktop
- Rounds of 3, 6 or 9 holes, par on every hole, stroke limit, score card after every hole
- Play vs Computer with 1 to 5 computer golfers at 3 levels (Easy, Normal, Expert); they really aim, test their shots with the real physics and miss like people do
- Pass and Play for 2 to 6 people on one device
- Temple Tour: every hole alone with 3 stars to win, courses that open with stars, a Practice mode and a Daily Hole with its own reward
- A smooth drop into the cup, a fly-over at the start of every hole, light rays and bonus coins for a hole in one and an eagle, butterflies, fireflies and glints on the water
- How to Play, shown before a new player’s first round
Every screen shape
- Landscape, portrait and square layouts for every screen
- On tall screens the course turns a quarter to show it bigger; the flag stays upright and every shadow follows the course
- Phones, tablets and desktop; touch, mouse and keyboard
Progress and shop
- Coins, experience and 20 titles from Wanderer to Living Legend, statistics and best scores
- Shop with 6 golf balls, 5 ball trails and 3 emote packs, with prices and title locks (looks only)
- 3 daily tasks and a daily gift
- Online, each player’s own ball and trail are shown to the other players
- Progress is saved on the device: no account needed
Online multiplayer
- Private rooms for up to 6 players with a short code and an invite link
- Quick match that starts by itself, with a countdown that gives late players time to join
- Lobby with six seats, ready flags, computer golfers to fill a room, and the host’s choice of course, number of holes and way to play
- All at once (everybody putts at the same time, the other balls shown as ghosts) or in turns
- Only the putt (two whole numbers) is sent; every screen replays it with the same physics
- A shot clock: the computer putts for a player who runs out of time or loses the connection
- 21 painted emotes
- Reconnect after a page reload or a lost connection, back into the same seat
- The host can leave: another player takes the room over and the game goes on
- Peer-to-peer connections encrypted by the browser, encrypted signaling
- One setting switches online play off completely
Online Play Uses Third-Party Services
Important: online play needs no game server of your own, but to let players find each other it uses free public services run by third parties: the PeerJS cloud server, public MQTT brokers (EMQX, HiveMQ) and public STUN servers (Google, Cloudflare). These are external services: they are not part of this item, are not run or controlled by its author, have their own terms, policies and limits, and can change or stop at any time. No account for them is included or needed. You can use your own servers instead (they may have their own costs), or switch online play off.
- Works out of the box with the free public PeerJS, MQTT and STUN services (external third-party services with their own terms and limits)
- Your own PeerJS server, MQTT broker and TURN server can be set in the config file (external accounts or hosting may be required; each has its own costs)
- Online play can be switched off with one setting; the game then makes no outside connection
Third-party services disclaimer: Temple Putt does not include any server, hosting or network service. Services such as the PeerJS cloud server, the public MQTT brokers broker.emqx.io and broker.hivemq.com and the Google and Cloudflare STUN servers are provided by third parties: each one has its own terms and policies, may have usage limits, and may change, slow down or stop at any time; your own or paid alternatives may require their own external accounts and involve their own costs. You are responsible for the services you use with this item, for complying with their terms and with the laws that apply to you (for example privacy rules such as GDPR), and for any costs they involve. The author of this item is not affiliated with these companies and is not responsible for their services.
Ads and Analytics Ready (Third-Party Services)
Important: the ad and analytics integrations are optional hooks only. Ad and portal platforms such as Google AdSense, Google AdMob, Google Ad Manager, CrazyGames, Poki, GameDistribution and GameMonetize, and analytics services such as Google Analytics and Firebase, are external services: each one requires its own external account (usually with an approval process), has its own terms and policies, and has its own specific costs or revenue-sharing model. None of these accounts, services or SDKs are included with this item.
- Ads are switched off by default; the game is complete without them
- 3 ad places ready to connect: an interstitial between offline rounds, a rewarded “Double coins” button on the result window, and a rewarded “Free coins” row on the Daily screen
- Two functions in the config file connect the ad places to the platform of your choice, for example Google AdSense, Google AdMob, CrazyGames, Poki, GameDistribution or GameMonetize (external accounts required; each platform has its own costs or revenue-sharing model)
- Analytics hooks for round start and round end
Third-party services disclaimer: Temple Putt does not include any ad network or analytics account, SDK or service. Services such as Google AdSense, Google AdMob, Google Ad Manager, CrazyGames, Poki, GameDistribution, GameMonetize, Google Analytics and Firebase are provided by third parties: each one may require its own external account and approval, has its own terms and policies, and may involve fees, revenue sharing or other costs. You are responsible for creating and managing these accounts, for complying with their terms and with the laws that apply to you (for example privacy and cookie-consent rules such as GDPR), and for any costs they involve. The author of this item is not affiliated with these companies and is not responsible for their services.
Languages
- 6 languages included: English, Spanish, French, German, Portuguese and Turkish
- The language is taken from the device and can be changed in Settings
- Every text is in one readable file; adding a language is copying a block and translating it
Made for buyers
- Level editor included: draw a hole with the mouse, play it, let the computer golfer check it and tell the strokes it needs, copy it into the game
- Holes are readable data: the game builds the picture of every hole from the same numbers, so changed and new holes need no new pictures
- Plain, readable JavaScript with comments: no framework, no build tools, nothing minified in the main files
- One config file for the ball physics, round rules, computer levels, rewards, titles, shop prices, daily tasks, screen shapes, online and ad settings
- All art as PNG files (154 pictures): course textures for 4 looks, hole pieces, golf balls, trails, emotes, interface and a layered animated logo – easy to reskin
- 13 sound effects and 2 music tracks (MP3), all made for this game
- Works from a web server, inside an iframe, or straight from disk
- Full HTML documentation
Browser requirements
- Chrome 70+, Edge 79+, Firefox 70+, Safari 13+ (macOS and iOS), Samsung Internet 10+, Opera 57+
- Direct online links use WebRTC data channels; where they are blocked or missing, online play goes through the encrypted relay automatically (the full table is in the documentation)
- Internet Explorer and the old Edge (18 and earlier) are not supported
What you get
- The complete game (HTML5, JavaScript, PNG, MP3, fonts)
- The level editor
- Documentation with font licences
Credits
Fonts: Lilita One and Baloo 2 (SIL Open Font Licence). All art, sound and music were made for this game and are included.