Culebra
The snake you already know: eat, grow and don't bite your own tail. Three speeds and optional walls.
- Very easy
- Classic
- Arcade
A hummingbird that only rises when you flap. Fly between the cacti without touching them: easy to get, hard to master.
The game runs isolated from the rest of the site. Your high score and settings are saved only in this browser.
This game came out of a single message to an AI. Below: a short prompt to copy and paste, how to get the game as one HTML file, the full prompt that was actually used, and what it was missing.
Copy this prompt, paste it into Claude or ChatGPT, and that's it. It's the short version: the minimum for the game to come out playable.
Make me a one-button game for the browser, in the style of the bird-and-pipes games, with original art. - The character falls with gravity and rises a little with each tap. - Pairs of obstacles come with a gap that changes height; 1 point for each pair I pass. - I lose if I touch an obstacle, the ground or the ceiling. - Difficulty goes up gradually: after 10 points the gap gets smaller and after 25 the obstacles move faster. Medals at 10, 25 and 50 points. - At the start, the character hovers in place until my first tap, so I don't lose instantly. - Screens: title, "tap to start", the game with a big score, and game over with score, high score and medal. - Controls: space or click on desktop; tap the screen on mobile. Technical: a single HTML file with the CSS and JavaScript inside, no libraries and no external images, everything drawn on canvas. It should fill the window and be playable with a finger on a phone and with keyboard or mouse on a computer.
A game like this is a single file you open with a double click. These four steps are the same in any AI.
Add this line at the end of your prompt: Give me a single, complete HTML file, nothing cut out, ready to save as index.html and open in the browser.
Without it, you often get the code in pieces.
In Claude the game shows up on the side, already running, with a button to copy or download it. In ChatGPT, copy the whole code block: it has to start with <!DOCTYPE html> and end with </html>.
Paste it into Notepad (Windows) or TextEdit in plain text mode (Mac) and save it as index.html. Watch out for .txt: if the file ends up as index.html.txt, it won't open as a page.
It opens in your browser and it's ready to play, with nothing to install and no internet needed. To share it, upload it to any web host or send it by email: it's just one file.
If the game shows up blank, go back to the AI and paste the error from the browser console (right click → Inspect → Console). With that text it fixes it fast.
Longer and more specific: numbers, screens and style details. It's the one that produced exactly this game, unedited. Use it if you want to fine-tune the result.
Diego wrote it in Spanish and it stays in Spanish on purpose: it's the honest record of how the game was made, and a translation would be a prompt nobody used. Claude and ChatGPT understand it as is; add "Answer in English" if you want the game's text in English.
Hazme un juego de navegador llamado "Aleteo".
La idea: un colibrí que cae por gravedad y sube un poco cada vez que aletea, y tiene que pasar entre pares de cactus, al estilo de los juegos de un solo toque de pájaros y tubos, pero con arte original.
Mecánica:
- La gravedad jala al colibrí hacia abajo todo el tiempo. Cada aleteo le da un impulso fijo hacia arriba.
- Los pares de cactus, uno arriba y otro abajo, vienen desde la derecha con un hueco para pasar. El alto del hueco cambia en cada par.
- 1 punto por cada par que pasas.
- Pierdes si tocas un cactus, el suelo o el techo.
- La dificultad sube poco a poco: después de 10 puntos el hueco se achica un poco, y después de 25 los cactus se mueven un poco más rápido.
- Medallas de bronce, plata y oro a los 10, 25 y 50 puntos.
- Al empezar, el colibrí flota en el sitio hasta el primer aleteo, para que el jugador no pierda al instante.
Pantallas: título con Jugar; un "toca para empezar" con el colibrí flotando; el juego con el puntaje grande arriba; y fin con puntaje, récord, medalla y reintentar.
Controles: en PC, Espacio o clic para aletear. En celular, tocar en cualquier parte de la pantalla.
Estilo: desierto al atardecer con capas de cerros en parallax, colibrí verde tornasol con las alas que aletean rápido, cactus verdes con flores, y plumas que salen al chocar.
Técnico:
- Un solo archivo HTML con todo el CSS y el JavaScript dentro. Sin librerías, sin CDN, sin imágenes externas: todo dibujado en canvas.
- Tiene que llenar la ventana y adaptarse a cualquier tamaño, de celular a pantalla grande, sin deformarse.
- Tiene que jugarse completo desde celular (solo con el dedo) y desde PC (teclado o mouse).
- Tiene que funcionar dentro de un iframe con sandbox="allow-scripts". El récord va en localStorage dentro de try/catch para que el juego no se rompa si no hay acceso.
- Se pausa solo cuando la pestaña no está visible.
- El texto del juego va en español.
For ChatGPT, add the line from step 1 at the end: it tends to hand over the code in pieces.
What became clear once the game was finished. If you're making your own from this one, add these from the start: fixing things later costs another round.
What was asked after the first result, in Diego's own words (Spanish):
Claude, ChatGPT, Gemini, Copilot: the prompt is the same and so is the method. What changes is where you see the result. Four things that hold in all of them:
"A single HTML file with everything inside, no libraries or CDN." That way the game works with a double click, with nothing to install, and you can upload it to any website.
End with: "before writing the code, tell me in 5 lines what you assumed". That's where the gaps in your prompt show up, while fixing them is still cheap.
Say what happens and what you expected. If you ask for three changes at once, one usually undoes another.
"Check that every level can be won and tell me how you checked." That's how the games on this page found their bugs before going live.
The snake you already know: eat, grow and don't bite your own tail. Three speeds and optional walls.
Swap neighboring candies and line up 3 or more of the same color. 10 levels, each with a target and a limited number of moves.
Pull the slingshot and launch an astronaut cat at structures full of space dogs. Block physics and 5 levels.
Slide tiles on a 4 x 4 board: equal tiles add up. Reach 2048 before the board fills up.
Paddle, ball and a wall of bricks. 8 levels with tough bricks, falling power-ups and 3 lives.
Tap a box and ants of its color carry off the cubes at the edge of the picture. 100 levels: easy, medium, hard and super hard.
One cat, endless lanes: roads, rivers with logs and train tracks. Get as far as you can without standing still.
A fairground cat throws darts in an arc: pop every balloon with few darts, bouncing off rubber walls. 40 levels and a global leaderboard.
Waves of invaders that march down and speed up. Shields that wear away, a mystery ship and 3 lives.
Full chess with the real rules: castling, en passant, promotion and draws. Against the computer, two players on one device, or online with a code.
8-ball pool with its own physics: spin, cushions and ball in hand. Against the computer, two players on one device, or online with a code.
A classic card duel with legends from Peru: summon, set cards face down, lay traps and fuse. Against the computer or online, one on one.
Cats in magnetic boots: one tap and you drop to the ceiling, another and you're back on the floor. Solo, two-player or online for up to 4.
Greedy worms in a night field: eat the seeds, grow long and make the others crash into you. Solo against bots or online with up to 6.
Animal tower defense: a cat, a hairless dog, a parrot, a llama, a guinea pig and a condor against pests and robots. 20 levels plus an endless mode.
Four-block pieces fall: rotate, fit them and clear lines. They drop faster with every level.
Hold out against waves of shadows in a closed map. Four weapons, exploding barrels and barricades. Solo, two on one keyboard, or online.
Social deduction for 3 to 5: hold your switches at the same time or the bomb goes off. One of you lets go on purpose. Online or against bots.
A square cat that runs on its own to the beat of the music. Jump the collar spikes: one mistake and you're back at the start.
Round-based tactical shooter with a hand-made 3D engine: two objective sites, a long alley and an unforgiving mid. 1v1, 2v2 or 3v3 against bots.