3D 키네틱 바운스 아레나 게임 프롬프트
Wikiprompt, 무료 프롬프트 백과사전에서
3D 키네틱 바운스 아레나 게임 프롬프트 Here is a comprehensive prompt for an AI to generate a single-file HTML5 3D game with physics, neon aesthetics, and interactive mouse tilt controls: --- **Prompt:** Create a single, self-contained HTML5 file (no external dependencies, CDNs, or libraries) that implements a fully playable 3D game with the following specifications: **Core Requirements:** 1. **Physics Engine**: Implement a simple custom physics engine (gravity, collision detection, and response) for 3D objects. No external physics libraries allowed. 2. **Neon Aesthetics**: Use a dark background (e.g., #0a0a1a) with vibrant neon colors (cyan #00ffff, magenta #ff00ff, yellow #ffff00, green #00ff00) for all objects, edges, and particles. Add a subtle glow effect (using CSS `box-shadow` or canvas `shadowBlur`). 3. **Interactive Mouse Tilt Controls**: The entire 3D scene should tilt and rotate based on mouse position. Moving the mouse left/right rotates the camera around the Y-axis, and up/down tilts around the X-axis. The tilt should be smooth (lerp/interpolation) and have a maximum angle of ±30 degrees. 4. **Gameplay**: - A player-controlled paddle (or platform) at the bottom of the screen that moves horizontally (X-axis) and vertically (Z-axis) based on mouse movement. - A ball that bounces off the paddle and walls, with gravity pulling it down. - Breakable neon blocks arranged in a grid at the top of the scene. - The goal is to destroy all blocks. If the ball falls below the paddle, the player loses a life (start with 3 lives). Game over when lives reach 0, and a "You Win" screen when all blocks are destroyed. 5. **Visual Effects**: - Particle explosion when a block is hit (neon-colored particles that fade out). - Ball trail effect (fading afterimages). - Paddle and blocks should have a wireframe or semi-transparent neon look with glowing edges. 6. **Technical Implementation**: - Use HTML5 Canvas with WebGL (via raw WebGL API, not Three.js) OR use Canvas 2D with a custom 3D projection (perspective projection). Choose the simpler approach that still looks 3D. - Implement a simple 3D-to-2D projection: `project(x, y, z)` that returns `{x, y, scale}` based on camera position and field of view. - Handle window resize and maintain aspect ratio. - Use `requestAnimationFrame` for the game loop with delta time for physics. - All code must be in a single `<script>` tag inside the HTML file. 7. **User Interface**: - Display score, lives, and game state (playing, win, lose) as neon text overlays. - Add a "Click to Start" screen and a "Restart" button on game over/win. 8. **Performance**: Keep the frame rate at 60 FPS. Use efficient rendering (batch draw calls, minimal state changes). **Additional Details:** - The scene should have a grid floor (neon wireframe) for depth perception. - The ball should have a constant horizontal speed and bounce off walls at an angle. - Blocks should have different colors (cycling through neon palette) and give different points (e.g., 10, 20, 30 based on row). - Add a subtle starfield background (randomly placed points that twinkle). - The paddle should have a slight tilt effect based on its velocity for visual feedback. **Output Format**: Provide the complete HTML code in a single code block, with comments explaining key sections (physics, rendering, input, game logic). The code must be fully functional when saved as `.html` and opened in a modern browser (Chrome, Firefox, Edge). **Constraints**: - No external assets (images, fonts, sounds). Use only procedural generation. - No use of `eval()`, `Function()`, or any code obfuscation. - The code should be well-structured and readable. --- This prompt is designed to push the AI to create a complete, polished game with all the requested features while keeping it self-contained and performant. It emphasizes creativity in implementing 3D graphics and physics from scratch.
프롬프트 내용저장
전체 프롬프트를 보려면 로그인하세요
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
사용법
이 프롬프트는 coding와 함께 사용하도록 설계되었습니다. 위의 프롬프트 내용을 복사하여 원하는 AI 도구에 붙여넣으세요.
최상의 결과를 얻으려면 자리 표시자(대괄호 또는 대문자로 표시)를 특정 요구 사항으로 사용자 지정할 수 있습니다.
토론
댓글 0개