Skip to main content
Back to all articles
Tool guides14 min read

如何透過Opus5.5 打造線上可以玩的遊戲!

網站連結 https://higgsfield.ai/s/higgsfield-ai-x-claude-opus-5-5-ig-jimmytalks-ai-qWPNPx 照片 Prompt Use Higgsfield

Updated 3 Oct 2026

This article has no English version yet — the Chinese original is shown below.

網站連結

https://higgsfield.ai/s/higgsfield-ai-x-claude-opus-5-5-ig-jimmytalks-ai-qWPNPx

照片

Prompt

Use Higgsfield to build and deploy a playable 3D air combat browser game from the attached photo of my paper plane. Do it in one go: make every decision yourself and reply only when the game is live.

THE ONLY THING YOU MAY ASK ME FOR

  • Higgsfield cannot read my chat attachment. As your very first step, show the Higgsfield upload widget once so I can upload the same paper plane photo. Ask me nothing else.

CREDIT BUDGET (strict)

  • Exactly these paid Higgsfield generations in the whole build, each with count 1:
    1. One fighter jet image: GPT Image 2.5, quality high, 1k, 1:1, my photo as reference (about 1.5 credits).
    2. One jet 3D model from it: Tripo H3.1 image-to-3D, face_limit 12000, texture on, PBR off (about 9).
    3. Three aerial city textures: GPT Image 2.5, quality high, 2k, 1:1 (about 2.75 each).
    4. Three tower images: GPT Image 2.5, quality high, 1k, 1:1 (about 1.5 each).
    5. Three tower 3D models from them: Tripo H3.1, face_limit 6000, texture on, PBR off (about 9 each).
  • Call get_cost before the first of each kind. If the total would exceed 60 credits, stop and tell me the numbers.
  • Submit the independent images as one batch so they run in parallel.
  • Never regenerate, never retry, never resubmit after a timeout. If a result is unusable, use the fallback given below.
  • Nothing else is generated: no cover image, no audio, no sprites, no video, no background removal, no upscaling.

ANSWERS TO EVERYTHING YOU WOULD NORMALLY ASK

  • Type: game. Genre: shooter. Single-player (minPlayers 1, maxPlayers 1). Title: PAPER STRIKE. Pick a matching subdomain.
  • Deploy only. Do not publish to the community feed, so no cover is needed; just set og:title and og:description in the page.
  • The visual style below is final and approved. Do not stop for style approval.
  • Desktop Chrome with a keyboard only. No touch, mobile or gamepad.

HOW THE GAME TEMPLATE WORKS (so you do not have to discover it)

  • The client is static files in app/public: write index.html plus ES modules (for example world.js and game.js) and delete the template client.js.
  • src/logic.js keeps its six exports but stays tiny and pure: the state is only the best score, kills and wave; the single action is {type:"score", score, kills, wave} with integer range checks; isGameOver always returns {over:false}. All flight simulation, randomness and timing run in the browser.
  • Each player joins their own room, /ws/solo-<playerId>, sends the score when a run ends, and shows the best score on the start screen. The game must play fine if the socket fails.
  • three.js: in the sandbox run npm pack three@0.170.0, copy build/three.module.min.js, examples/jsm/loaders/GLTFLoader.js and examples/jsm/utils/BufferGeometryUtils.js into public/vendor (keep the loaders/ and utils/ folders) and rewrite their "from 'three'" imports to the relative path. No CDN, no import map, no inline scripts.
  • The sandbox has node but no bun: check your work with node --check on each module and node scripts/check-logic.mjs. Commit and push after every major step so nothing is lost.

WORK ORDER

  1. Upload widget. Start the jet image and the batch of aerial and tower images, then the 3D jobs as their images finish.
  2. Sky, clouds, city with plain colours, camera, aircraft (simple-shape jets for now), smoke trails, flying. Deploy as soon as it flies.
  3. HUD. 4. Weapons, enemies shooting back, effects, audio. 5. Swap in the jet model, the aerial textures and the tower models. 6. Self-test, final deploy.

Write each file once, complete.

MY PAPER PLANE BECOMES A REAL FIGHTER JET

  • Image prompt: redraw the white folded paper plane in my photo as a realistic modern fighter jet, keeping its silhouette and proportions (the same nose shape, the same wing shape, and the same tail as in my photo) so it is clearly the same aircraft; light grey metal skin with fine panel lines, glass canopy, twin engine nozzles, two missiles under the wings, gear up. ONE jet only, three-quarter view from above and in front, fully inside the frame with margin, centred, pure flat white background, no shadow, no ground, no text, no second view, even soft light, matte finish. Show me the image in the chat.
  • Before every 3D job, confirm with image tools that the corners are white and there is exactly one object.
  • Load the GLB with GLTFLoader. Read its bounding box: the longest horizontal axis is the fuselage, and the nose is the end where the mesh is narrow (the tail end is wide because of the wings). Rotate the geometry so the nose points along -Z, scale it to 15 m long, and use MeshLambertMaterial with the model's texture, double-sided.
  • Use this one model for every aircraft: my own jet as a Mesh, the other 56 as ONE InstancedMesh with per-instance colour (friendlies white tint, enemies dark grey tint).
  • Fallback if the image or model fails: a jet built from flat triangles (long diamond-section fuselage, swept delta wings, two fins, tailplanes) in light grey. Start with this fallback and swap the model in when it loads, so the game never waits for it.
  • Give every model and texture file a versioned name (jet_v1.glb) and change the name if you ever replace it.

THE LOOK A bright daytime sky completely filled with long, thick, curved white smoke trails crossing each other, above a huge dense city seen from the air, with a tilted horizon. These values are tested; use them as written.

Camera

  • Perspective, 78 degree vertical FOV (88 while the afterburner is on, eased), far plane 30,000 m. 17 m behind my jet, 5.5 m above, 2.5 m to the side, looking at a point 60 m ahead. Roll the camera by 75% of my bank angle. Small random shake when I am hit.

Sky, light and clouds

  • Sky dome shader: top (0.09, 0.22, 0.40), middle (0.36, 0.52, 0.70), horizon haze (0.86, 0.90, 0.93). Sun direction normalize(-0.25, 0.62, -0.74), drawn as a tiny hard disc plus a wide glow, with an additive starburst sprite on top.
  • FogExp2 colour 0xdfe9f2, density 0.000135. Directional sun light 2.6 (warm white) plus hemisphere light 1.25. ACES filmic tone mapping, exposure 1.15. No real-time shadows.
  • Clouds: 64 sprites using three canvas-drawn cloud textures (about 28 soft white blobs each, slightly blue-grey underneath). 70% form a low band 7 to 15 km away at 1,700 to 3,300 m, 3 to 6.5 km wide; 30% are higher and fainter at 4,500 to 8,000 m, 5 to 9 km wide. No fog and no tone mapping on them.
  • Put the sky dome and the clouds in one group that follows the camera's x and z every frame, so they are never reached. Give the clouds renderOrder -1 so they never draw over explosions or trails.

City

  • 84 by 84 blocks on a 120 m pitch (about 10 km square), with downtown centred at x 900, z -1500, about 2.4 km ahead of the start point.
  • Three districts, decided per block by the same rule in JavaScript and in the shaders: within 1.6 km of the downtown centre it is downtown; elsewhere sin(x0.0009+1.7)cos(z*0.0011-0.6) above 0.15 is industrial, otherwise residential (x and z are the block centre).
  • Three aerial textures, all with this shared wording: top-down orthographic aerial photograph, camera pointing straight down from high above, seen as rooftops only; clear midday sun, short soft shadows, satellite imagery look, uniform density across the whole frame, no wide roads, no river, no horizon, no perspective, no text, no borders, seamless tileable.

Downtown: flat grey and white concrete roofs with air-conditioning units, vents, skylights, water tanks, a few terracotta and dark roofs, small courtyards with trees, small parking lots with tiny cars, narrow alleys. Residential: detached and terraced houses with pitched roofs in terracotta, brown, dark grey and slate, back gardens with lawns, hedges and many trees, a few blue swimming pools, driveways with tiny cars. Industrial: large flat white and light grey warehouse roofs with skylights and vents, a few blue and rust-red metal roofs, loading yards with trucks and coloured shipping containers, asphalt parking lots, storage tanks, gravel. Save each as a 2048 px JPEG at quality 78.

  • Ground: one large plane whose shader draws from world position: dark asphalt roads 20 m wide on the grid lines with dashed white centre lines, a light pavement strip, and inside every block that district's aerial texture. Mirrored repeat, anisotropy 8, one tile = 300 m. Every block samples its own random offset and a random 0/90/180/270 degree rotation (from a hash of the block). Brightness gains: downtown 1.85, residential 2.1, industrial 1.6. Until all three textures have loaded, show plain block colours.
  • Box buildings as ONE InstancedMesh, in shuffled order, about 19,000 in total:

Downtown blocks: 2 to 4 boxes, 22 to 48 m wide (up to 70 near the centre), 9 to 30 m tall rising to 200 m at the centre; mostly white to light grey, about 12% dark glass, about 8% warm beige. Residential blocks: 3 to 6 small houses, 10 to 18 m wide, 5 to 10 m tall, plus 3 to 7 trees. Industrial blocks: 1 or 2 sheds, 40 to 78 m by 30 to 60 m, 8 to 15 m tall.

  • Building shader from world position. Roofs: the district's aerial texture (one tile = 150 m) blended 80% with the instance colour. Walls: a grid of dark blue-grey windows (4.2 m by 3.6 m cells), a few lit windows, darker toward the street over the first 18 m, and on the dark glass buildings a blue sky reflection that grows at grazing angles. Fade the window pattern to a flat darker wall between 700 m and 2,600 m.
  • Towers: every downtown building taller than 95 m, up to the 160 tallest, is a generated 3D tower model instead of a box. Three models, shared wording: ONE building only, complete from the ground to the top, standing upright and perfectly vertical, three-quarter isometric view slightly above so two sides and the roof are visible, fully inside the frame with margin, centred, pure flat white background, no shadow, no ground, no street, no other buildings, no trees, no cars, no people, no text, even soft daylight, realistic architectural model render.

Tower 1: modern glass skyscraper, about 50 floors, blue-grey reflective curtain wall with thin floor lines, slightly tapered top with a short spire, square footprint. Tower 2: modern office tower, about 35 floors, light grey concrete frame with a grid of dark ribbon windows, two stepped setbacks near the top, flat roof with plant and a helipad. Tower 3: residential high-rise, about 30 floors, white and warm beige facade with rows of balconies, darker podium, flat roof with water tanks.

  • For each tower GLB: if its tallest axis is not Y, stand it up; put its base on the ground, centre it, scale it to 1 unit tall; never let it be wider than 30% of its height. Assign towers to the three models in turn, each as ONE InstancedMesh, with a random 0/90/180/270 degree rotation, scaled to the building's height, MeshLambertMaterial with the model's texture.
  • Fallback: draw a 38 m wide box for every tower from the start and hide each box only when its model has loaded.
  • About 5% of blocks are parks (green planes). Trees as ONE InstancedMesh, shuffled.

THE FIGHT STAYS IN FRONT OF ME (this is what keeps the sky full)

  • 57 aircraft at all times: me, 12 friendlies, 44 enemies.
  • The fight has a centre 1.3 km ahead of my nose. AI jets steer at their own speed of 170 to 230 m/s, and on top of that everything is carried along my heading at 170 m/s, so the furball travels with me. Each AI jet's true velocity is own heading times own speed plus that drift; point the jet model and its trail along the true velocity.
  • AI behaviour: every 2.5 to 6 s pick either a foe from the other team that is within 1.7 km of the centre (70%) or a random point within 1.3 km of the centre; turn at most 0.62 rad/s (0.8 when chasing); head back to the centre when more than 1.7 km from it; climb when below 230 m.
  • Any AI jet more than 1.3 km away and behind me is silently moved to 2.3 to 2.9 km ahead of me, within 50 degrees of my heading, flying toward the centre with a fresh trail.
  • My cruise speed is 180 m/s, afterburner 265 m/s. The afterburner is how I close in.
  • Before the first frame, simulate 13 seconds with combat switched off, so the sky is already full of trails. Behind the start screen the game keeps flying by itself with combat off.

SMOKE TRAILS (the most important part)

  • Every aircraft and missile has a ribbon trail: 230 points, one new point every 0.05 s, so 11.5 s of smoke.
  • Camera-facing ribbon; half-width grows with age from 3 m to 16 m (5 to 24 m for mine, 1.2 to 7 m for missiles). No particles, no thin lines.
  • White with a slightly darker rim, soft edges, nearly opaque in the middle, fading only in the last third of its life, blending to the haze colour with distance, and fading out within 40 m of the camera.
  • ALL trails are ONE mesh with one custom transparent shader, depth write off, frustum culling off, renderOrder 5, and a fixed bounding sphere set by hand.
  • A shot-down jet's trail turns to black smoke (a per-point flag passed through the UV).

COMBAT

  • Arrow keys: up climbs, down dives, left/right turn with automatic banking. Space: cannon. X: missile. F: flares. Shift: afterburner. P: pause. Use physical key codes and preventDefault. A click starts the game and the audio.
  • Cannon: 20 rounds a second, 1,200 m/s, 20 damage, enemies have 100. Gentle aim assist: when an enemy is within about 6 degrees of my nose and 1 km, rounds lead it. Each round is a yellow line plus a glowing point.
  • Missiles: 8, plus 4 each wave up to 12. Holding an enemy within about 17 degrees of my nose and 2.6 km for 1 second gives a lock (tone plus the word LOCK). Missiles fly 520 m/s, turn 1.7 rad/s and kill on hit.
  • Enemies: cannon does 4 hull a second to me when they have me in a tight cone inside 650 m; at most one enemy missile chasing me at a time, never in the first 12 seconds, 25 damage, turning 0.95 rad/s so it can be out-turned. Flares (30) break a lock 65% of the time.
  • My hull is 100 and repairs 1.5 a second while nobody is hitting me. Hitting the ground ends the run. So does hull zero.
  • Each kill: +100. Clearing 44 hostiles starts the next wave: +500, hull +35, flares refilled.
  • Shot-down jets do not vanish: they fall burning for 2.5 to 4.5 s, rolling, trailing black smoke and fire puffs, then explode. They respawn ahead after about 10 s.
  • AI jets also shoot each other down; friendly losses are replaced.

EFFECTS

  • Explosion: additive orange-yellow fireball sprites, two grey smoke puffs, one expanding shockwave ring, eight sparks flying outward and falling. Ground impacts add dust.
  • Orange engine glow behind every jet (one Points cloud); mine is a sprite that grows with the afterburner.
  • When I am hit: red vignette flash; it stays on faintly below 30 hull.

HUD (HTML overlay, Arial)

  • Top left, white: "SCORE 100" bold; under it "WAVE 1 HOSTILES 42 FRIENDLIES 12".
  • Top right: one line of controls, then a kill feed (green for enemy losses, red for friendly losses).
  • Large green speed (km/h) left of the crosshair, large green altitude (m) right of it, a small yellow circle crosshair.
  • A red square bracket on the lock candidate with callsign and distance in km; it becomes a red diamond with LOCK when locked. Small red plane markers with distance on other enemies inside 1.8 km.
  • Bottom centre: HULL bar (pale green, red under 35), "THR MIL" or "THR AB" in yellow, "MSL 8 FLR 30" in green.
  • Bottom right: round green radar, heading-up, red dots enemies, blue dots friendlies.
  • Centre, large white bold for 2 s on each kill, picked at random: KILL CONFIRMED, SPLASH ONE, BANDIT DOWN, TARGET DESTROYED.
  • Centre red bold warnings: "MISSILE 640 m — FLARES [F]", "PULL UP", "RETURN TO COMBAT AREA", "NO LOCK".
  • Start screen: title, one line of story, controls, best score, "CLICK TO START". Game over screen: "SHOT DOWN", score, kills, wave, "CLICK TO FLY AGAIN".

AUDIO

  • Web Audio only: looping filtered-noise engine that opens up with the afterburner, cannon bursts, explosions scaled by distance, missile whoosh, lock tone, missile warning beeps.

PERFORMANCE

  • One draw call each for buildings, trees, parks, trails, AI jets, glows, and each tower model. Cap pixel ratio at 2.
  • After 3 seconds of play, if under 45 fps: pixel ratio 1, then half the trees, then half the buildings. Never reduce the trails.

KNOWN PITFALLS (each one happened in testing)

  • Clamp the frame time to between 0 and 0.05 s. The first frame can report a negative time, which turns trail widths into NaN and makes all smoke disappear.
  • Without the "fight stays in front of me" rules the sky is empty: I fly forward and leave every jet and trail behind.
  • The live URL answers 401 to anyone not signed in to my Higgsfield account. That is normal; do not treat it as a failed deploy.
  • A deploy call may time out even though the build started. Check the website status (queued, then deployed) before deploying again.

BEFORE YOU GIVE ME THE LINK

  • Add a self-test switch: with ?auto=1 the game starts by itself, flies level and fires at whatever it locks.
  • In the sandbox, serve app/public with a static server and open it with ?auto=1 in headless Chromium (Playwright, software WebGL: --use-gl=angle --use-angle=swiftshader --enable-unsafe-swiftshader). Advance the simulation 60 seconds by calling the step function directly, and confirm: no page errors, the generated jet model is in use, all three tower models are in the scene, kills are being scored, wrecks appear, and I am still alive.
  • Do not judge the picture from a blank screenshot, and do not rewrite working code because of one.
  • Then deploy and tell me: the link, the total credits spent, and whether the jet and the towers in the game are the generated 3D models or the fallbacks.
Share this

Related articles

Tool guides

Higgsfield Short drama prompt

Use the uploaded short drama as a style reference. Don't copy its characters or story. Then generate it with S

1 min read
示意圖