← PlaybookJuego terminado · shooter cenital · difícil

PIT NINE

Un chatarrero en una arena de desguace: dos oleadas de sabuesos robot y después el Foreman. Dispara uno a uno a sus cañones, al módulo de misiles y al blindaje, y luego ataca el núcleo. Lo hizo Claude Code con el prompt del Playbook; nunca le dijimos cómo arreglar nada.

Juega

Muévete con WASD, apunta con el ratón y rueda con Espacio.

El juego se abre en greybox. Pulsa el botón amarillo de debajo, o M dentro del juego, para cargar los modelos de Tripo; con los modelos activados, L cambia todo al aspecto Mecha Pop de Tripo.

Un juego, tres aspectos

El greybox, la textura por defecto de Tripo y una textura Mecha Pop de los mismos modelos. Las partes rotas siguen rotas al cambiar.

Greybox · etapa 2

Greybox · etapa 2

Cajas y cilindros. El jefe ya es un grupo de partes con nombre, y cada una gira sobre su propia bisagra.

Modelos de Tripo · etapa 5

Modelos de Tripo · etapa 5

El Foreman es un único modelo de Tripo dividido en partes; los cañones, el módulo de misiles y el blindaje se desprenden al dispararles.

Mecha Pop · un botón

Mecha Pop · un botón

Cada asset recibió una segunda textura con el estilo Mecha Pop de Tripo. El juego cambia los archivos al instante.

Cómo fue la prueba, etapa por etapa

10 turnos, unas 3 horas de tiempo del agente, 47 USD de coste del agente y 1.130 créditos de Tripo. El turno más largo fue el cambio de modelos: 75 minutos y más de 120 llamadas a herramientas.

  1. El agente escribió una tabla de partes para el jefe (qué hace cada parte, dónde articula y qué ataque se pierde al romperse) y después un greybox con el cambio de estilo ya incluido, 19 comprobaciones de mecánicas y dos bots.

    • Solo el protagonista es una persona con huesos; los sabuesos y el jefe se construyen con partes
    • Aun así morimos en 20 s quedándonos quietos: los bots se mueven desde el primer fotograma. La oleada 1 pasó a ser un tutorial suave
    • Encontró cinco errores propios, entre ellos los cañones izquierdo y derecho intercambiados en el diseño
    Diseño y después un greybox
  2. Cada asset: imagen, Smart Mesh P2.0, textura y después una textura Mecha Pop. Segment cortó el sabueso y el Foreman en 106 y 111 piezas; fusionarlas a mano solo las redujo en una décima aproximadamente.

    • 8 assets × 2 aspectos = 16 archivos GLB
    • 1.130 créditos, unos 50 minutos
    Partes y estilos en Tripo
  3. Cada pieza llegó como tripo_part_N. El agente agrupó el sabueso según con qué marcador se solapa cada pieza; con el Foreman eso falló, así que clasificó las piezas a partir de renders etiquetados y cortó una pieza que contenía una espinilla y un pie.

    • Unas 100 texturas por modelo empaquetadas en una; el Foreman se dibuja en 10 draw calls
    • Texturas 213 → 105 MB, 37 MB en móviles
    • Preguntó antes de cambiar 6 valores de juego
    Añadir los modelos: 100 piezas sin nombre
  4. Los colores de estado del greybox hacían que los modelos texturizados brillaran pálidos, los golpes se sentían flojos y las patas seguían al ratón. Describimos lo que veíamos; el agente limitó los colores a zonas pequeñas, añadió respuesta a los impactos y dividió el cuerpo: las patas siguen la carrera y la columna gira hacia la puntería.

    • Sabuesos teñidos el 91 % → 17 % del tiempo; patas desviadas de la dirección de carrera 25° → 7°
    • Chispas, marcadores de impacto y sonidos sintetizados; detectó su propia regresión en la hitbox
    • Una versión estática de 24 MB en tripo.page; mecánicas 19/19 en ambos aspectos
    Prueba de juego y publicación

Más allá de las seis etapas

El tutorial paso a paso nunca divide un modelo ni le da un segundo aspecto. Aquí el jefe se desmonta pieza a pieza, los sabuesos no tienen esqueleto y cada asset tiene dos estilos. Elige un tema.

Segment

Dividir un modelo en partes

Segment corta un modelo generado en piezas, y cada pieza se convierte en su propia malla dentro del GLB. Así es como el Foreman pierde un cañón al dispararle.

créditos, el primero gratis
40
por modelo
~1 min
piezas con Balanced
68–111
  • Tres niveles: Simple (3–6 partes), Balanced (6–15) y Detailed. Las cifras son nominales: aquí Balanced dio 68, 106 y 111 piezas.
  • Segment necesita una malla Triangle y un modelo sin rig. Divide antes de hacer el rig.
  • La topología vuelve a Quad y 5.000 cada vez que partes de una imagen, así que vuelve a poner Triangle en cada modelo.
  • Las partes sobreviven al texturizado: el mech de prueba salió con 68 mallas y 68 texturas pequeñas, en total de aproximadamente 1 MB.
  • Las máquinas dibujadas con un color por parte y con huecos entre las partes se dividen lo más cerca posible de las partes que quieres.
La vista previa agrupa la máquina en unas nueve regiones.
La vista previa agrupa la máquina en unas nueve regiones.
Balanced devolvió en realidad 68 piezas, cada una llamada tripo_part_N.
Balanced devolvió en realidad 68 piezas, cada una llamada tripo_part_N.
Díselo a tu agente
Marca cada asset como persona, objeto o máquina hecha de partes. Para las máquinas, pide un color plano por parte con huecos entre las partes.

Fusionar y agrupar

Fusiona a grandes rasgos y deja que el código haga el resto

Studio te deja fusionar piezas a mano. Tras unas decenas de clics, el resto se agrupó en código según dónde está cada pieza.

piezas del Foreman tras fusionar
111 → 103
draw calls para el Foreman
10
draw calls por sabueso
6
  • Para seleccionar varias piezas, haz Cmd-clic en ellas en la vista 3D (Ctrl en Windows). Hacer clic en la lista no funciona, y Shift deselecciona.
  • Merge también funciona con modelos texturizados, y las piezas fusionadas siguen fusionadas en el GLB.
  • Los sabuesos se agruparon según cuánto se solapa cada pieza con su marcador gris. Las proporciones del Foreman eran demasiado distintas, así que el agente renderizó vistas etiquetadas, lo dividió en bloques grandes y unió los tornillos al bloque más cercano.
  • Una pieza contenía la espinilla delantera izquierda y el pie trasero izquierdo; el agente la cortó en dos. Los tornillos de la espalda estaban pegados al blindaje y se movieron.
  • Cada parte traía sus propias texturas pequeñas, unas 100 por modelo. El agente las empaquetó en un atlas por modelo.
  • La tapa del módulo de misiles no era una pieza independiente, así que se descartó su animación de apertura en lugar de fingirla.
Fusionando el sabueso de nuevo hacia sus seis partes.
Fusionando el sabueso de nuevo hacia sus seis partes.
Una parte seleccionada recibe un gizmo de mover, rotar y escalar en Studio.
Una parte seleccionada recibe un gizmo de mover, rotar y escalar en Studio.
Díselo a tu agente
Enumera cada tripo_part_N con su posición y tamaño, agrúpalas en las partes del documento de diseño y enséñame un render etiquetado antes de conectarlas.

Partes en juego

Bisagras, zonas de impacto, desprendimientos

Cada parte gira sobre una bisagra del documento de diseño, tiene su propia zona de impacto y sus puntos de vida, y le quita un ataque al jefe cuando se rompe.

del blindaje dentro de su zona de impacto
22% → 48%
dónde está realmente la boca del cañón
3.0 → 2.1 m
valores por los que preguntó antes de cambiarlos
6
  • Las zonas de impacto se ajustaron primero a cajas grises. En el modelo, la zona del blindaje pasó del 22 % al 48 % de la placa, y la boca del cañón se movió de 3,0 a 2,1 m.
  • Después de que un cambio propio dejara el ariete sin alcance (un radio de parada de 3,6 m), el agente volvió a preguntar antes de mover el ariete a 4,2 m.
  • Los cañones salieron con los colores opuestos a los de la imagen de concepto, así que se nombran por posición, no por color.
  • Sacudir una parte golpeada movía el pivote que usaba la prueba de impacto; el núcleo se hundía en el cuerpo y el combate pasó de 60 s a 107–158 s. Ahora solo se sacude la malla visible.
  • Los cañones, los misiles y los sabuesos miraban hacia −X en sus archivos y se giraron para mirar hacia +Z.
El Foreman en juego: los cañones, el módulo de misiles y el blindaje son partes independientes.
El Foreman en juego: los cañones, el módulo de misiles y el blindaje son partes independientes.
Díselo a tu agente
Reajusta cada zona de impacto al modelo real y enséñame los valores antes y después. Anima solo la malla visible, nunca el pivote que usa la prueba de impacto.

Rig de cuatro patas

Por qué los sabuesos no tienen esqueleto

Tripo puede hacer rig de un modelo de cuatro patas en la web, pero solo venía con un movimiento preset, y falló. Los sabuesos se convirtieron en seis partes movidas con código.

huesos de Rig → Other
15
movimiento preset: Walk
1
créditos gastados, nada utilizable
40
  • Rig → Other construyó un esqueleto de cuatro patas en menos de dos minutos por 20 créditos.
  • La primera exportación de Walk no tenía animación; el segundo intento devolvió “An error occurred while running task”.
  • Text to Motion (20 créditos) produjo un movimiento humanoide que no se podía aplicar al sabueso.
  • La API de Tripo hace rig de más tipos de cuerpo que la página web hoy, incluidos los de cuatro patas.
  • En el juego cada sabueso es un cuerpo, una cabeza y cuatro patas; el código mueve las patas, y la cabeza brilla en rojo mientras carga y en naranja cuando salta.
Rig → Other le da al sabueso un esqueleto de 15 huesos; un hueso de una pata trasera queda en un ángulo incorrecto.
Rig → Other le da al sabueso un esqueleto de 15 huesos; un hueso de una pata trasera queda en un ángulo incorrecto.
Walk, el único preset, falló dos veces. Text to Motion solo generó un movimiento humanoide.
Walk, el único preset, falló dos veces. Text to Motion solo generó un movimiento humanoide.
Díselo a tu agente
Todo lo que no sea un humanoide no recibe esqueleto: divídelo en partes y mueve las partes con código.

Texturas de estilo

Un segundo aspecto con la misma malla

Texturizar el mismo modelo otra vez con un preset de estilo da una segunda versión con la misma forma. Un botón cambia los 16 archivos.

créditos por una textura con estilo
+5
assets × aspectos = 16 GLB
8 × 2
memoria de texturas
213 → 105 MB
  • Una textura 2K cuesta 10 créditos, 15 con un estilo. El panel viene por defecto en 8K a 30.
  • El estilo se recuerda para la siguiente textura. Para volver a ninguno, haz clic de nuevo en el estilo seleccionado.
  • Exporta primero el aspecto por defecto, luego vuelve a texturizar con el estilo y exporta eso. Un personaje con rig necesita que se le vuelvan a aplicar los movimientos antes de la segunda exportación.
  • Solo se carga el aspecto actual, y las texturas se reducen: 213 MB pasaron a 105, 37 MB en móvil.
  • Las partes desprendidas siguen desprendidas al cambiar de aspecto en pleno combate.
  • Magic Brush, dentro de Edit, repinta parte de una textura (5 créditos por vista previa). No se usó en este juego.
Estilos de textura: Mecha Pop, classic, Wood, o sube tu propia imagen de estilo.
Estilos de textura: Mecha Pop, classic, Wood, o sube tu propia imagen de estilo.
El mismo combate en Mecha Pop.
El mismo combate en Mecha Pop.
Díselo a tu agente
Dale a cada asset un segundo estilo de los presets de Tripo. Carga solo el aspecto en uso y deja las partes rotas rotas cuando cambie el aspecto.

Text to Motion

Un movimiento que la biblioteca no tiene

La voltereta esquiva no estaba en la biblioteca, así que se escribió como una frase en Text to Motion.

créditos por movimiento generado
20
caracteres de ella pasan a ser el nombre del clip
64
movimientos en una cadena Multi-stage
5
  • Empieza la descripción con el nombre del movimiento y dos puntos: “roll: a small character dives forward into a quick shoulder roll…”.
  • Studio le puso a la tarjeta su propio título, Shoulder Roll and Crouch. En el GLB, el clip se llama como los primeros 64 caracteres de la descripción, por eso el nombre va primero.
  • Los movimientos generados se quedan como tarjetas; volver a aplicar uno, por ejemplo tras una textura nueva, no cuesta nada.
  • Multi-stage Motion encadena hasta cinco movimientos en un solo clip. No se probó aquí; es un candidato para combos.
La voltereta, descrita en una línea. Cuesta 20 créditos.
La voltereta, descrita en una línea. Cuesta 20 créditos.
Díselo a tu agente
Para cualquier movimiento que no esté en la biblioteca, escribe una línea de Text to Motion que empiece con el nombre del movimiento y dos puntos.

Correr y apuntar

Las piernas corren hacia un lado, el arma apunta a otro

En un shooter de dos sticks corres hacia un lado y disparas hacia otro. El agente dividió el cuerpo: las piernas siguen la carrera y la parte superior gira para apuntar.

patas desviadas de la dirección de carrera
25° → 7°
m/s de deslizamiento de los pies
2.5 → 0.72
mm de brazo dentro del cuerpo
33.7 → 4.0
  • La parte superior del cuerpo se retuerce a través de tres huesos de la columna hacia el punto de puntería.
  • Apuntar hacia atrás mientras corres reproduce la carrera al revés; correr de lado retuerce las caderas.
  • run se reproduce 1,57× más rápido para ajustarse a 3,82 m/s, y sus caderas, 0,94 m hacia delante en el clip, se recentraron.
  • El agente midió fotograma a fotograma cuánto se hundían los brazos en el cuerpo.
Corriendo hacia un lado, disparando hacia otro.
Corriendo hacia un lado, disparando hacia otro.
Díselo a tu agente
Divide el personaje: las piernas reproducen la carrera hacia el movimiento y la columna gira el torso hacia la puntería. Mide el deslizamiento de los pies y la intersección de los brazos.

Respuesta al impacto

Respuesta y sonido, todo en código

Las cajas grises necesitan poco para transmitir el golpe; los modelos texturizados, mucho más. Las chispas, las marcas de impacto y todos los sonidos se añadieron en código, sin archivos de audio.

cambio en pantalla al golpear a un sabueso, 0–255
4.6 → 13.6
lo mismo al golpear al jefe
9.9 → 22.4
archivos de audio
0
  • Un destello y chispas en el impacto; la parte golpeada se sacude y brilla un momento en naranja; una cruz en pantalla, más grande y roja al matar o romper una parte; la barra del jefe pulsa.
  • Todos los sonidos se sintetizan en código: un chasquido metálico, una nota más aguda en el núcleo, un golpe sordo en los sabuesos, disparos bloqueados, el cañón y las explosiones. Un botón Sound los desactiva.
  • El agente midió el cambio de píxeles alrededor del punto de impacto antes y después, en lugar de adivinar.
Respuesta al impacto: chispas, una marca de impacto y la parte golpeada se sacude.
Respuesta al impacto: chispas, una marca de impacto y la parte golpeada se sacude.
Díselo a tu agente
Mide cuánto cambia la pantalla alrededor de un impacto y añade chispas, una marca de impacto y sonidos sintetizados en código. Reajusta toda la respuesta tras incorporar los modelos.

Problemas de esta prueba

Qué salió mal, por qué y cómo se arregló. El prompt más reciente del Playbook ya cubre la mayoría.

Los nombres de partes escritos en Tripo Studio desaparecen en el GLB

Las partes renombradas se exportan igualmente como tripo_part_N. Anota en su lugar dónde está cada parte y deja que el agente agrupe las piezas en código según su posición.

Segment corta muchas más piezas de las que listaste

Balanced dividió los modelos en 106–111 piezas, y fusionar a mano solo quitó una décima aproximadamente. El agente agrupó el resto en código, así que basta con una fusión aproximada.

Un personaje con rig pierde las animaciones tras una textura nueva

Volver a texturizar un modelo con rig elimina las animaciones, y la exportación solo trae huesos. Vuelve a aplicarlas en Animate antes de exportar; no cuesta créditos.

Los modelos texturizados se ven apagados

Los colores que marcaban estados en las cajas grises cubren todo un modelo texturizado. Limita los colores de estado a una zona pequeña y aviva la textura en lugar de añadir blanco.

Una parte desprendida se ve hueca

Las piezas divididas son cáscaras finas. Cierra el hueco, dibuja ambas caras o pon algo oscuro detrás; el agente oscureció las caras interiores.

Los bots ganan, los principiantes mueren

Los bots se mueven y esquivan desde el primer fotograma. Prueba también con un jugador que se queda quieto o que presta poca atención, y ajusta la primera oleada para ellos.

Crea tu propio juego

Pega esto en tu agente de programación

Abre una carpeta vacía en Claude Code o Codex y pégalo. Te hace cinco preguntas, luego construye el juego etapa por etapa y se detiene después de cada una para que lo pruebes.

Prompt
Help me make a small 3D browser game, step by step. I have never made a game before.

Before you write any code, ask me up to 5 short questions in one message: what the game is about, the one thing the player does, keyboard or phone or both, the art style, and anything I already have. Wait for my answers.

Once I have answered, start a git repository, save this whole prompt word for word to AGENTS.md, and add a CLAUDE.md that only says to read AGENTS.md. Keep a short PROGRESS.md: what is done, what we decided and what is next. Read both at the start of every stage, and commit at the end of every stage that works, so we can go back if a later change breaks something; each time, tell me the one command that takes us back to it.

Then work in stages. Stop at the end of every stage, tell me how to try it, and wait for my feedback:

1. Design — write GDD.md, one page: core loop, controls (keyboard and touch), win and lose, camera, and a table of every object on screen with an id, its size in metres and which way it faces. Keep it to one level and one core loop. Make up your own characters, names and level layout; do not copy any existing game, and do not make anything look like a well-known game character or item either. For every character that animates, list its states (for example idle, run, attack, hurt, knocked down) and when it switches between them, and say whether it is a person or another kind of body (an animal, a robot dog, a bug); only people get bones, so a body that is not a person is built from parts that move in code. If characters fight, write for each attack: which animation it uses, how much damage it does, and at what fraction of the animation the hit lands and ends. If a machine or object has parts that move, can be shot off or break apart, list its parts: what each part does, where it hinges, how much it can take, and what changes when it breaks. If parts can be swapped between machines or characters, give all of them the same set of slots, and for each slot write one attach point (where it sits, measured from the centre of the feet) and which way a part faces on that point.

2. Greybox — build it with Three.js and Vite, no game engine. Use only boxes, cylinders and capsules, sized from the table. Keep everything about how objects look in one place: a registry from id to a builder function, so a 3D model can replace any placeholder later without touching gameplay code. Build an object with parts as a group of named child placeholders, one per part, each turning around its own hinge, and let gameplay find parts by name. If parts can be swapped, hang each swappable part on a named attach point; swapping a part means hanging another part on that point and scaling it to fit the slot, and gameplay still finds parts by name. Every placeholder faces +Z. If the player jumps, make it feel good: a jump pressed just before landing still counts, a jump just after walking off a ledge still works, and holding the button jumps higher. If the player fights, make it feel good: a button pressed during an attack queues the next one, a hit freezes both fighters for a split second and pushes the target back, a character that was just hit cannot be hit again at once, and enemies take turns attacking instead of all at once. Show states on the placeholders (a colour or a lean) so I can see them. Put every number I might want to tune (speeds, sizes, camera, timings) in one config file, and add a hidden debug panel, opened with a key, with sliders for those numbers and readouts of FPS, draw calls, bounding boxes and each character's current state. Moving characters must look smooth on both 60 Hz and 120 Hz screens. Done when I can play a full round and restart, on desktop and on a phone. If a later change adds a new state, add it to GDD.md and tell me which animation it needs.

3. Asset list — write assets.json with one entry per id: its kind (prop, person or parts), size in metres (height for people, longest edge for everything else), a polygon budget in triangles (at least 500; at least 10000 for parts), and one English image prompt. Give every prompt the same art-style sentence, describe the shape and proportions it must have to fit its size, give visible details to the side the camera sees most (for a vehicle the player follows, its back) while still asking for one view of one object, and end it with "single isolated object, centered, on a plain white background". The ground, sky and edge of the level are part of the look too: say how each will be made (a Tripo entry or built in code), so none of them stays greybox. At most 8 entries; if several enemies share a shape, they share one entry, and one that differs only in colour gets a texture prompt on that entry instead of a new entry. A texture prompt repaints the whole model, so describe the whole object with every colour, not "the same but red"; a prop in one plain colour is tinted in code instead.

   - A person that animates must stand in a T-pose, facing the camera, with its head no more than a third of its height, arms long enough to reach mid-thigh, a body no wider than its shoulders, space between the arms, legs and body, and nothing loose that would flap or stick out (scarves, long hair, bandana tails, capes). Give it a list of animations taken only from these names in the Tripo library: idle, walk, run, jump, jump_down, fall, box_01, box_02, box_03, front_kick_01, slash, shoot, hit_to_body_01, hit_to_head, defeat_02, cheer. The name is only a label, so pick by what the motion is: jump has a long crouch before take-off, jump_down is a drop through the air, fall is tripping over onto the ground, defeat_02 is being knocked down, and the attacks are much slower than a game needs.

      If no name fits, write a one-line description of the motion instead, starting with its name and a colon (for example "dodge: a small character rolls forward and gets back up"); this works for people only, and it is reliable for motions on the ground; a motion in mid-air often comes out standing. Anything that only spins, bobs, squashes or flashes is animated in code, not in Tripo. A person who stays seated (a driver, a rider) keeps its legs and hips posed in code and uses animations for the upper body only; Text to Motion does not make good seated poses.

   - An object with parts (a machine, an animal or robot animal, anything that breaks apart) is one model that Tripo will split. List its parts in plain words (for example "left_cannon", "armour_plate", "front_left_leg"), at most 10, and if parts can be swapped, say which slot each part fits. Write the image prompt so that any central body is clearly its own piece, and every part in one main colour of its own, with a gap between parts. Parts that walk or swing are moved in code at their hinges, not rigged.

   - Mark at most two entries as hero: the player's character or vehicle and the main enemy, the ones the camera stays close to. A hero's image prompt keeps its name, colours and art-style sentence and adds what it is made of (painted metal, knitted wool, rubber), small details (rivets, stitching, buckles), decals or wear, and detail on the side the camera sees most, described as part of one front view of a single figure; never ask for a back view or several views. A hero gets 10000 triangles for a person and 15000–20000 for a model with parts; keep a hero's parts list to 6 or fewer, because Tripo merges neighbouring parts and cannot reduce small pieces much.

   - If I want more looks for the game (for example a skin switch, or an elite enemy), give the entry up to 4 styles, each one of classic, Wood (dark old wood), another style Tripo Studio lists under Create Your Own Texture Style, or "own image: [a close-up swatch of the material: colours and surface, no creature or object]" if I will make my own style picture and upload it; or "none". Pick only styles that suit the art style, and tell me what each will look like. Each style costs one more texture generation in Tripo.

   Add up the triangles and texture memory for the busiest moment on screen and say whether a phone can handle it. A Tripo model that is not a hero has colour textures only: one at the chosen resolution, or one per piece for a split model, smaller for small pieces. A hero has three 4K textures (colour, normal and metal-rough), shared by all its pieces. Count a split model that is not a hero at 1.5 times its budget, because filling its gaps adds triangles.

4. Models — first ask me whether the Tripo MCP (https://studio.tripo3d.ai/mcp?from=vgh-prompt-agent) is connected in this session. If it is, make these entries yourself through it: every prop, every object with parts, and every hero or person that does not animate. Generate each one from its prompt and keep it within its polygon budget; for a hero, use the high-detail model and then reduce it to the budget. Before the first job, tell me roughly how many credits the list will cost and wait for my yes. Run one job at a time and wait until it finishes; a high-detail job can take ten minutes. Export GLB, save each file straight from the link the MCP returns (do not retype the link) into public/assets with the entry's file name, and check that it loads. If the MCP is not connected, or an entry fails twice, leave that entry to me.

   My turn — give me one table with a row per entry you did not make (people that animate always come to me, because the MCP cannot export their animations yet): id, kind, hero or not, prompt, polygon budget, file name, animations or parts, and styles or texture prompt (or "none"). Then tell me to make them in Tripo Studio (https://studio.tripo3d.ai/workspace/generate?from=vgh-prompt-agent) by following these steps, which cover every kind of entry, heroes, styles, colour versions and export: https://github.com/TripoGrowthLab/vibe-gaming-interactive-playbook/blob/main/prompt/tripo-studio-steps.md . Wait until I say they are in.

5. Swap — load each GLB in place of its placeholder (models made through the MCP are compressed with meshopt, so load them with the MeshoptDecoder): scale it to the size in the list (people by height), sit it on the ground, and add an environment map so materials are not black. Keep every map a model comes with (colour, normal, metal-rough) and its metal and roughness values; only a model with a colour map alone gets roughness 1 and metalness 0. Render every model next to its placeholder and check it faces the same way; rotate it if it does not. Do this again whenever a model is replaced: a new version can face another way and has new UVs, so its style and colour files must be made again from it. First list what is really inside each file: animation names (Tripo often renames them: defeat_02 can come out as defeat_03, and a Text to Motion clip is named after the start of its description) and, for split models, every piece with its name, size and position. Match animations by the closest name. Match pieces by name first; a piece still called tripo_part_N belongs to a part only if its centre sits inside that part's placeholder, and to the body otherwise, so group them in code; print the pieces of each part and check them on a render before you move any hinge. The sizes stored in the file are not reliable, so recompute each bounding box before you measure anything. The order of meshes changes from file to file, so always match pieces by node name. Tell me what you matched and what is missing. Every piece keeps the whole model's origin: move each part's pivot to its hinge before you turn it, and since a few pieces may still have small holes, make sure nothing looks see-through when a part comes off (close it, show both sides, or put something dark behind it). Merge the pieces of each part into one mesh when they share one material (a hero with parts comes that way) or when draw calls hurt on a phone. If parts can be swapped between machines, line up where each part joins with its slot's attach point and scale it to fit the slot. When a swapped part has a different height, such as another machine's legs, seat everything above it on the new part's real height and hinges, not the old part's or the placeholder's, so nothing floats or sinks. If an entry has style versions, they have the same shape, but Tripo can change their UVs: compare each style's UVs with the default file's, and where they differ, use that style file's own mesh with its textures, cut into the same parts or bound to the same skeleton. List which maps each style file has; a style may come without a metal-rough map. Look at each version and tell me if one does not match its prompt, and add a button that switches skins, loading each style only the first time it is chosen. Never pair the shape data of one file with another file. Put a close-up of each model in the game next to how it looks in Tripo Studio; if colours look washed out or flat, fix the lighting (one main light that casts shadows, less flat ambient light, the right colour space), not the textures.

   Look at the frames of every animation before you use it: pick the part you need, find the moment a punch or kick really lands, and check arms and feet do not go through the body or clothes. Tripo animations are the same for every body shape, so on a character with a big head, a round belly or thick clothes the arms often sink into the hips or chest when they hang down and pass through the head when they go up. Measure this in code instead of judging it from small frames: in every frame of every animation, work out where the arm vertices really are and test whether they are inside the rest of the body (a winding-number test stays right on clothes and open meshes), using the T-pose as zero. Also look at close-ups from the front and from a 3/4 angle, including the armpits. If an arm goes in, fix it in code: after each animation frame, turn the upper arm outward at the shoulder just enough to clear the body (hips, belly, chest and head); ignore a few millimetres of sleeve resting on clothes, and never change a pose where the hands are meant to touch the body (pockets, hips). Tell me the worst depth for every animation before and after the fix.

   Play character animations by name with an AnimationMixer, blending between states, and keep the character in place so only gameplay code moves it: "stay in place" can still leave the body ahead of or behind its feet, so check the hips over the whole clip and centre them. Match walk and run playback speed to how fast the character really moves so the feet do not slide. If a character must do two things at once (run and shoot), play the legs from one animation and the upper body from another: the legs always face where it runs, the upper body twists toward the aim, and it backpedals when aiming behind. When one model is used by several characters at once, clone it with SkeletonUtils so each has its own skeleton. Check where characters stop and touch things using the models' real sizes, not the placeholders', colliding with simple shapes that follow each model's visible surface (a capsule for every character; for a rounded top, step it down and keep it inside the visible edge, so no one stands in the air) and never with a model's mesh itself; fit the shapes to the models, never stretch a model unevenly to fit an old shape, and measure every frame of a crash or knockdown so no character ends up inside what it hit. On a phone held upright, measure over a full round how much of the screen height the player takes up and how much of the screen is empty sky or background, and tell me the smallest and largest of each. Keep a button that switches between greybox and models. The colour tints and white hit flashes that showed states on the placeholders wash out painted models, so on models glow only the part that matters and brighten its own colours instead of adding white; then check that a landed hit is still easy to see and hear (a flash or sparks at the spot, a jolt of the part, a sound). Effects that shake a part must not move the point used for hit detection. Do not change gameplay code, not even to fix a bug; if timings, sizes or triggers need new numbers, tell me what and why, and wait for my yes. Tell me which files, animations or pieces did not load and why.

6. Publish — as a build step, shrink every GLB with glTF Transform (meshopt geometry, WebP textures no larger than they ever appear on screen) and load them with the matching decoders, leaving the files in public/assets as they are. Play a full round on the small files to check that every animation, piece and style still works. Compression changes a rigged model's bind matrices, so play every animation on both the small and the original files and compare how high the feet sit above the ground; anything measured from the bind pose (such as skeleton.pose()) should use the bones' own starting positions instead. Then tell me the total download size and how long the first screen takes to appear on a phone. Then help me put it on a free static host and give me the link. Ask me before you create any account, repository or public page.

Test your own work before you hand it to me: run the build, open the game, check the console for errors, and tell me exactly what you checked. If the game has fights or levels, write a small bot that plays a full round and report what it hit and whether it won, and a second one that plays badly (holds forward into walls and obstacles) to check nothing gets stuck. Wait for every test to finish before you reply; never start a test with & or in the background. Use only a browser that is already installed on this machine; never download one. If you cannot test something, tell me what to try myself. If something does not work, say so.
Ver en GitHub
Mecha Pop · un botón

Crea los modelos de tu propio juego

Describe un personaje o sube una imagen, y Tripo Studio te da un modelo listo para el juego, con rig y animado si tiene que moverse. Las cuentas nuevas reciben créditos gratis.

Crea tu primer modelo gratis ↗
O sigue el tutorial de seis etapas →