프롬프트 도감 › No.2282
네온 입자 피하기 게임
Neon Particle Swarm
마우스를 피해 도망가는 빛나는 입자 1만 5천 개가 떠다니는 3D 아케이드 게임 화면을 만들어요. Three.js로 빛 번짐 효과까지 넣어요.
이럴 때 웹 게임 연습, 3D 효과 배우기, 포트폴리오 데모
도구 ChatGPT · Claude · Gemini
프롬프트
Game Concept: A fast-paced arcade "dodge-em-up" set in a digital void. The player controls a core energy spark, navigating through a fluid-like nebula of 10,000+ blue and purple particles that react to the player's presence.
Technical Prompt:
Create a Three.js scene featuring a Points system with 15,000 particles. Use a custom ShaderMaterial for a glow effect. Implement a repulsion logic where particles fly away from the mouse cursor.
JavaScript
// Core repulsion math
let dist = particlePos.distanceTo(mousePos);
if (dist < 5) {
direction.subVectors(particlePos, mousePos).normalize();
particlePos.addScaledVector(direction, 0.2);
}
Include a BloomPass for post-processing and ensure 60FPS performance via팁
- 입자 수를 줄이면 느린 컴퓨터에서도 돌아가요
- 끝부분이 잘려 있으니 성능 조건을 직접 덧붙여요
출처
권리: CC0 (f/prompts.chat). 자유 사용. 기여자: loshu2000.