← BásicoObjeto 3Dfogon/mesa-ratona-de-vidrio
Mesa ratona de vidrio
Arrastrá para girarlo// «Mesa ratona de vidrio» · gpt-6-sol (medium)
// Glass coffee table («Mesa ratona de vidrio»).
// Glass coffee table: a pale glass top on a brushed-steel frame.
const steel = "#697b7a";
const steelLight = "#9aa9a5";
const steelDark = "#435553";
// Four square legs, with darker inner faces and bright outer edges.
for (const x of [8, 40]) {
for (const y of [8, 40]) {
box(x - 1, y - 1, 0, x + 1, y + 1, 23, steel);
box(x - 1, y - 1, 1, x - 1, y + 1, 22, steelLight);
box(x + 1, y - 1, 1, x + 1, y + 1, 22, steelDark);
box(x - 2, y - 2, 0, x + 2, y + 2, 1, steelDark);
}
}
// Low runners connect each pair of legs.
for (const x of [8, 40]) {
box(x - 1, 9, 1, x + 1, 39, 2, steelDark);
box(x - 1, 9, 3, x - 1, 39, 3, steelLight);
}
// Subtle metal supports immediately below the glass.
box(7, 7, 22, 41, 8, 23, steel);
box(7, 40, 22, 41, 41, 23, steel);
box(7, 8, 22, 8, 40, 23, steel);
box(40, 8, 22, 41, 40, 23, steel);
// Thick, softly tinted glass, with a readable aqua edge.
box(4, 5, 24, 44, 43, 24, "#83b7b0");
box(5, 6, 25, 43, 42, 25, "#f5fdfb");
box(5, 6, 25, 43, 6, 25, "#b9eeee");
box(5, 42, 25, 43, 42, 25, "#c9f4f1");
box(5, 7, 25, 5, 41, 25, "#b4e7e5");
box(43, 7, 25, 43, 41, 25, "#c6efeb");
box(4, 5, 23, 44, 5, 23, "#597c78");
box(4, 5, 23, 4, 43, 23, "#688985");
// A small book lying flat on the tabletop.
box(13, 19, 26, 25, 29, 26, "#264c51");
box(14, 19, 27, 25, 29, 27, "#e8e3d9");
box(13, 20, 28, 25, 29, 28, "#376e70");
box(15, 21, 28, 23, 27, 28, "#f2ede2");
box(16, 22, 29, 21, 24, 29, "#d88766");
box(18, 25, 29, 23, 26, 29, "#e5aa81");
box(13, 20, 29, 14, 28, 29, "#87a9a4");
// Saucer and a little white coffee cup toward the back.
box(32, 32, 26, 39, 39, 26, "#b8bbb2");
box(33, 33, 27, 38, 38, 27, "#f6f5eb");
box(34, 34, 28, 37, 37, 32, "#eeeae0");
box(34, 34, 33, 37, 37, 33, "#fbfaf2");
box(35, 35, 34, 36, 36, 34, "#563b2d");
box(33, 34, 28, 33, 37, 32, "#ffffff");
box(38, 35, 29, 39, 36, 31, "#f4f3e9");
set(39, 35, 30, null);
set(39, 36, 30, null);import { draw } from "./assets/voxel";
import { mesaRatonaDeVidrio } from "./assets/mesa-ratona-de-vidrio";
// En cada cuadro: parado sobre (x, y), el centro de su base.
draw(ctx, mesaRatonaDeVidrio, x, y, { size: 64, angle: 0, t: performance.now() / 1000 });
// size: lo que mide en px su lado más largo
// angle: giro sobre el piso, en radianes
// t: segundos; si se mueve, se anima solo con eso# En una terminal, en la carpeta del juego
fogon assets add mesa-ratona-de-vidrio
# Con las herramientas de Fogón (conector)
add_assets({ slug: "<tu-juego>", ids: ["mesa-ratona-de-vidrio"] })
# Queda en client/assets/mesa-ratona-de-vidrio.ts
# https://fogon.page/object/mesa-ratona-de-vidrio