The Lab / The Battler / Embed
Put the Gen 1 Battler on Your Site
Any website can run GardenFlouer’s Gen 1 battler: Pokemon Red’s battle engine, rebuilt routine by routine and matched against the game’s own code, running in an emulator, in about 11,900 test battles. Pick a size and an opponent, copy the snippet, and paste it into your page’s HTML. It is free to embed, as long as the credit line under it stays.
Build your snippet
Paste it where your page’s HTML goes. The line under the battler is part of it: keep it.
Free to embed on any website, as long as the credit line under the battler stays.
Your pageWhatever you write around it. Here is how the battler sits on your page with the size and opponent you picked.
Gen 1 battler by GardenFlouer, rebuilt from the Pokemon Red battle code.
This is the real battler, so go ahead and play a round. Tap Battle, then tap a choice on the screen to point at it and tap it again to pick it.
Just a Link?
Forums, Reddit and social media posts do not allow iframes. There, a plain link does the job:
What Does the Embedded Battler Do?
- Battles against the computer with any of the 151, or a glitch Pokemon like MissingNo., on the Red and Blue battle screen. Your visitors can build both teams themselves, or fight the opponent you picked.
- The game’s own battle math, down to the critical hit chance from base Speed and the 1 in 256 miss. Every rule is the game’s, ported routine by routine, and the full battler’s page explains how it was checked.
- The sounds, rebuilt from the game’s sound data, plus the Color, Text and Anim buttons, and Full screen wherever your page lets the frame use it (the snippet’s
allow="fullscreen"does that). - Phones and keyboards. Tap to play on a phone; on a computer the arrow keys move, Z or Enter is A and X is B.
What it leaves out: battling a friend by link, finding a random opponent and the Daily Champion. Those stay on the full battler, one tap away through the credit line, and the Daily Champion also has a page of its own. The embed never connects two players, so nothing typed or picked in it goes to another visitor. Text speed and animation choices are remembered in each visitor’s own browser, and the battler counts plays with Google Analytics, as every page on this site does (the privacy page says what that records).
Questions
Is it free?
Yes. It is free to embed on any website, as long as the credit line under the battler stays.
Will it slow my page down?
The snippet asks the browser to load the battler only when a visitor scrolls near it. The first load is about 600 KB, and after that the browser keeps it.
Can my visitors battle each other?
Not inside the embed. It plays against the computer only. Battling a friend by link, finding a random opponent and the Daily Champion stay on the full battler at gardenflouer.com/lab/battle, one tap away through the credit line.
Will the battler change?
It gets fixes whenever a difference from the real game turns up, and every embed runs the newest version, so there is nothing to update on your side.
Where can’t I use it?
Anywhere that does not allow iframes, which includes most forums, Reddit and social media posts. Use the plain link there instead.
Found a spot where the battler does something the game would not? I want to hear about it on the contact page, because a wrong byte bugs me more than it bugs you.