FORWHAT

178 ប្រយោគ

ប្រយោគបញ្ជា និងលទ្ធផល

បើកកាតមួយ ដើម្បីអានប្រយោគបញ្ជាជាភាសាដើមដែលវាសរសេរ ចម្លងអត្ថបទនោះ ហើយទៅកាន់ប្រភព។

Inkling 2 MiniDeepSeek harness + three.js

Game រុករករូងក្រោមដីដោយពន្លឺចន្លុះ ដែលលេងខ្លួនឯងបាន ក្នុង file HTML តែមួយ

A self-playing torchlit dungeon crawler in one HTML file

Loktar (@loktar00) បានដាក់ prompt វែងមួយឲ្យ model Inkling 2 Mini។ Model ហ្នឹងក៏បានបង្កើត TORCHLIGHT DEPTHS ដែលជា game ដើរក្នុងរូងបែប 3D ប្រើ three.js ក្នុង file HTML តែមួយ។ មានតួអង្គតូចមួយកាន់ចន្លុះនិងដាវ ដើររុករកក្នុងបន្ទប់ថ្ម វៃជាមួយ skeletons កណ្តុរ និង slimes ហើយចុះជណ្តើរទៅវគ្គបន្ទាប់។ Game ហ្នឹងលេងខ្លួនឯងក៏បាន ឬយើងចង់បញ្ជាចុចលើ keyboard ក៏បាន។ ក្នុង prompt ហ្នឹងក៏បានសុំឲ្យមានស្រមោលចន្លុះ មាន pixel dither ស្រាលៗ មាន tilt-shift blur និងមានសំឡេងដែលបង្កើតដោយ code ទៀតផង។ Prompt គឺមាននៅក្នុង reply របស់ Loktar។

@loktar00 ប្រភព

រូប ឬវីដេអូនៅលើប្រកាសដើម។ ទំព័រនេះមិនរក្សាទុកឯកសារនោះទេ។

Short preview clip made from the creator's original post, with credit. The full post is embedded. The rights stay with the creator.

Create one complete, self-contained HTML file for TORCHLIGHT DEPTHS, a self-playing 3D isometric dungeon explorer game in three.js that needs no user input (the player can take over at any time): a lone adventurer carrying a burning torch in one hand and a sword in the other explores a gritty stone dungeon, room by room, by torchlight.

Use a dark, gritty, lovingly lit aesthetic. The camera is a true isometric-style view (orthographic or a long-lens perspective at a classic three-quarter angle from above) that follows the player smoothly. The overall vibe is dark, but never so dark that you cannot see: the dungeon reads clearly everywhere the light reaches, and unlit areas fall into deep blue-grey shadow with a faint cold ambient so walls and floors still show their shapes. LIGHT IS THE STAR: the player's torch is a flickering warm point light that casts real moving shadows of pillars, crates, bars and monsters across the floor and walls; wall torches and braziers in sconces throw their own warm pools of light; a few cold accents (a blue glow from a magic rune, moonlight through a grate) contrast with the warm fire; embers and sparks drift up from every flame; dust hangs in the torch beams. The look is inspired by an ordered-dither style, rendered LIGHTER than a heavy dither: render the scene to a reduced-resolution target (about half resolution) with nearest filtering for a slightly chunky, crafted pixel feel, then a full-screen post-process that applies a subtle ordered (Bayer) dither across many tonal levels (so the dither only shows as fine texture in the gradients, never as a heavy screen-door pattern over everything), keeping the colour: cold desaturated blue-greys for the stone in shadow, warm amber and orange for everything the torches light. Add a REAL TILT-SHIFT treatment in that post-process: a depth-aware lens blur that leaves a horizontal band through the player razor sharp and grows strongly toward the top and bottom of the screen, so the dungeon reads as a tiny miniature diorama; plus a soft vignette and light film grain. Do not use a heavy screen-door dither, bright saturated colours, glossy plastic materials, a clean modern look or a stained-glass look.

Build the dungeon in code: rough stone-block walls with cut-away fronts so the isometric camera can always see the player, flagstone floors with cracks, moss and puddles that reflect the firelight, wooden doors, iron-barred cells, pillars, stairs down, rubble, barrels, crates, bones, cobwebs, chests, banners and a few traps (spike plates, a swinging blade); rooms linked by corridors, with a sense of going deeper. Monsters roam: skeletons, giant rats and a slime or two, each readable by torchlight with a small glow in their eyes. The PLAYER is a small, clearly built adventurer (hooded cloak, armour, a torch held high casting the main light, a sword) with a proper walk cycle, a sword swing with a clear arc and impact, a hit flinch, and a torch that sways with each step. SELF-PLAYING, WITH OPTIONAL CONTROLS: the hero plays itself from the moment the page loads and never needs a key, click or touch, but the player can take over at any time with WASD or the arrow keys to move and Space to attack (a gamepad works too); after a few seconds without input, the hero goes back to playing itself, and it never gets stuck on walls, doors or props. It explores room by room on its own, walks to monsters and fights them, opens chests for gold and potions, drinks a potion when hurt, finds the key, unlocks the door to the stairs and descends to the next, deeper level, forever, so the page is a self-running game to watch. ENEMIES MUST BE PRESENT AND ACTIVE: every room and most corridors hold monsters that are clearly visible on screen (skeletons, giant rats, slimes, and a bigger boss monster on every third level), they notice the hero, approach and attack, and the hero fights them in frequent, readable sword fights with swings, hits, knockback, hit flashes and monsters collapsing or bursting into bones and goo; a fight should be on screen most of the time, never long stretches of an empty dungeon. A small HUD shows health hearts, gold, depth and monsters slain, in a crisp pixel font. Nothing passes through anything it should not: no walking through walls, pillars or monsters. Add synthesized sound with Web Audio: footsteps on stone, the crackling torch, sword swings and hits, monster squeals, coins, a door unlocking and a low dungeon drone; because browsers gate audio behind a gesture, show only a small, unobtrusive "click for sound" hint in a corner that enables audio when clicked; the game itself starts and runs immediately without it and never waits for any input. Make it fill the window, resize cleanly, run smoothly at 60 fps and start with zero console errors. Deliver it as a single self-contained HTML file; any libraries are allowed.
បើកក្នុង ChatGPT (បើកផ្ទាំងថ្មី) បើកក្នុង Claude (បើកផ្ទាំងថ្មី)

ការបញ្ជាក់ឈ្មោះមិនមែនជាការអនុញ្ញាត។ កំណត់សម្គាល់អាជ្ញាប័ណ្ណ គឺជាកំណត់សម្គាល់សិទ្ធិដែលយើងមាន។ បើអ្នកនិពន្ធ ឬអាជ្ញាប័ណ្ណមិនស្គាល់ វានៅតែមិនស្គាល់។ សុំឱ្យយើងដកចេញ

ស្វែងរកក្នុងបណ្ដុំ