Embed Pikefall on your site
One iframe, free to use
Pikefall is a free tower defense game that runs in the browser, and you are welcome to put it on your own website, game portal or blog. Paste the snippet below where you want the game to appear. There is nothing to download, no key to ask for and no account to make.
The snippet
Copy this into your page's HTML:
<iframe src="https://pikefall.com/embed"
width="1280" height="720"
title="Pikefall, a free tower defense game"
allow="fullscreen; autoplay"
loading="lazy"></iframe>
<p><a href="https://pikefall.com/">Pikefall</a>, a free tower defense game you can play in your browser.</p>
The line under the frame is a link back to the game's home. It is not a condition of embedding, but it is how your readers find the Field Manual, the map guides and the full-window version, and it is how the game finds new players, so please keep it if you can.
Size
The game is drawn at 1280 by 720, a 16:9 picture, and
that is the size to give the frame where your layout has room for it. It
scales to fit any frame and letterboxes rather than stretching, so a
smaller 16:9 frame such as 960 by 540 or 640 by 360 works too; below
about 640 pixels wide the text gets hard to read. To make the frame follow
your column's width, give it width: 100%; height: auto;
aspect-ratio: 16 / 9 in your stylesheet and drop the two size
attributes.
allow="fullscreen" lets a player on a phone take the game
fullscreen from inside the frame. Without it the game still plays, in the
frame.
What your readers get
- A demo of the first three campaign maps. The embedded copy plays the opening of the campaign with the Armoury, the training field and every mode on those maps. The rest of the campaign is marked on the map, and a reader who wants it presses Continue on pikefall.com.
- Their progress comes with them. Continuing opens this site in a new tab with the maps and stars won in the demo, so nobody starts over. It travels in the link itself and is never sent to a server.
- No ads and nothing for sale inside the frame. The embedded copy shows no advertising and has no purchase buttons, so it will not put anything on your page you did not choose.
- Saves stay in the reader's browser. Progress is kept on the reader's own device, as it is here. Most browsers keep a framed game's save separate for each site it is embedded on, which is why the continue link carries it across rather than expecting the two to share one.
- Links open in a new tab. A share link, a replay or the way back to the site opens in a new tab and leaves your page where it was.
Free to embed
Embedding is free, for any site, commercial or not, and you do not need to
ask. Please do not put the game behind a paywall of your own, present it as
somebody else's, or frame any page of this site other than
/embed: every other page refuses to be framed, so it would
show your readers an empty box. The terms of use
cover the rest. If something does not work on your site, tell us through
Report a bug.