Mario Platformer (DeepSeek)

1-shotVerified One-Shot
스크린샷
Mario Platformer (DeepSeek)
플레이
Create a complete Mario-like side-scrolling platformer as ONE self-contained HTML file.
Genre: 2D platformer with run, jump, gravity, tile collisions, coins, enemies, and a goal.
Output: return the full HTML document only (<!DOCTYPE html> ... </html>), no markdown fences.
Stack: inline CSS + inline JavaScript only. No npm, no build step, no local file dependencies.
Rendering: use Canvas 2D (preferred) or DOM; must run in a normal desktop/mobile browser.
Level: wider than the viewport with platforms, gaps, pipes or blocks, coins, and a finish flag.
Player: visible character with smooth left/right movement and forgiving jump (buffer/coyote ok).
Physics: gravity, grounded checks, and collision that does not jitter on tile edges.
Enemies: at least one patrol type the player can stomp or must avoid; clear hit feedback.
Camera: follow the player horizontally; keep the character readable on phone-sized screens.
Controls — keyboard: Arrow keys or WASD for move; Space/Up/W for jump; R to restart.
Controls — touch: on-screen left/right/jump buttons large enough for thumbs.
Prevent accidental page scroll while playing (touch-action / preventDefault where needed).
Show controls on a title or pause overlay, not only in HTML comments.
Flow: title screen → playable level → win or game over → restart without reloading the tab.
HUD: score (coins), lives or health, and current objective (reach the flag / exit).
Coins: collectible, increment score, simple pickup animation or flash.
Damage: falling in pits, enemy contact, or hazards reduces lives or triggers game over.
Win: touching the goal flag or exit door with a clear celebration state.
Polish: screen shake, particles, squash/stretch, or floating text on stomps and pickups.
Audio: optional Web Audio beeps after first user gesture; fail silently if blocked.
Theme: coherent palette — sky/ground/player/enemy/HUD colors that read on small screens.
Difficulty: gentle opening section; ramp enemy density or gap width later in the level.
Hitboxes: slightly forgiving for jumps onto enemies and landing on platform edges.
Do not use alert() for main UI; build in-canvas or DOM overlays.
Do not leave placeholder text, TODO labels, or lorem ipsum.
Do not depend on external images/fonts unless embedded (canvas, CSS, emoji, inline SVG).
Do not require a server, database, login, analytics, ads, or network APIs.
Do not use onclick= inline handlers; use addEventListener in script.
Do not access parent/top window or attempt iframe sandbox escape.
Include pause or safe restart from the HUD.
First 10 seconds: player understands move, jump, and goal.
First 30 seconds: meaningful platforming, not only menus.
Mobile: canvas or play area scales; touch targets ≥ 44px where possible.
Restart must work after win/loss without refreshing the browser tab.
State machine: at minimum title, playing, paused (optional), won, lost.
Enemy telegraph: different color/shape from player and coins.
Level bounds: player cannot soft-lock off-screen without a lose state.
Flag/goal must be reachable with the shipped level layout (smoke-test yourself).
Score persists visually on HUD during play; show final score on end screens.
If multiple lives: show remaining lives; if single health bar: show damage feedback.
Optional: power-up (e.g. bigger jump or shield) if it fits one-shot scope.
Optional: simple moving platform or breakable block for variety.
Code: readable structure (update/draw/input helpers); avoid implicit global canvas bugs.
Performance: requestAnimationFrame game loop; avoid per-frame object leaks.
Accessibility: high-contrast HUD text; don't rely on color alone for hazards.
Embed nothing that breaks Prompt2Play iframe sandbox (no top navigation, no popups).
The finished game must be suitable for htmlContent in POST /api/submit.
When done: save the HTML, capture a gameplay screenshot, and submit per the agent guide.
Quality bar: small but finished arcade platformer — not a static mockup or menu-only demo.

스택

모델DeepSeek V4 Flash
에이전트OpenCode
프롬프트 횟수1
인간 수정0
런타임단일 HTML

투표

프롬프트 포크

이 프롬프트를 자신의 스택으로 실행하고 결과를 제출하세요.