MAIN Q Logo

Bahan buatan

Prakarya & KewirausahaanSemua LevelOleh

Mapel

Prakarya & Kewirausahaan

Jenjang

Semua Level

Platform

HTML5 · Web

Tentang Game Ini

<!DOCTYPE html> <html lang="id"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Studio 3D Kerajinan Plastisin</title> <style> * { box-sizing: border-box; } body { margin: 0; font-family: 'Segoe UI', Arial, sans-serif; background: #f2f8fc; color: #163b55; } header { background: linear-gradient(120deg, #103b65, #239c91); padding: 22px; text-align: center; color: white; } header h1 { margin: 0 0 8px; font-size: clamp(22px, 4vw, 32px); } header p { margin: 0; font-size: 14px; } .container { max-width: 950px; margin: 25px auto; padding: 0 15px; } .viewer { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 30px #103b6518; } canvas { display: block; width: 100%; height: 430px; cursor: grab; touch-action: none; background: radial-gradient( circle at center, #ffffff, #e3f2f7 ); } canvas:active { cursor: grabbing; } .controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; padding: 18px; } button { background: #103b65; border: none; color: white; border-radius: 9px; padding: 11px 15px; cursor: pointer; font-weight: 600; } button:hover { background: #239c91; } button.active { background: #239c91; } .info { padding: 20px; border-top: 1px solid #e6eef4; line-height: 1.7; } .info h2 { margin-top: 0; } .hint { text-align: center; font-size: 13px; color: #607b8a; padding-bottom: 15px; } @media (max-width: 600px) { canvas { height: 340px; } button { font-size: 12px; padding: 10px; } } </style> </head> <body> <header> <h1>🎨 Studio Plastisin 3D</h1> <p>Jelajahi Kerajinan Bahan Lunak Buatan</p> </header> <main class="container"> <section class="viewer"> <canvas id="canvas3d"></canvas> <div class="controls"> <button onclick="changeModel(0)">🌸 Bunga</button> <button onclick="changeModel(1)">🐛 Ulat</button> <button onclick="changeModel(2)">🍦 Es Krim</button> </div> <div class="controls"> <button onclick="zoom(1.2)">+ Zoom In</button> <button onclick="zoom(1/1.2)">- Zoom Out</button> <button onclick="resetView()">⟳ Reset</button> <button id="autoButton" onclick="toggleAuto()"> ⏸ Hentikan Putaran </button> </div> <div class="hint"> Geser objek untuk memutar 360°. Gunakan scroll atau dua jari untuk zoom. </div> <div class="info"> <h2 id="modelTitle">Bunga dari Plastisin</h2> <p id="modelDescription"> Bunga plastisin merupakan contoh kerajinan bahan lunak buatan yang dibentuk melalui teknik pijit, pilin, dan penyusunan. </p> </div> </section> </main> <script> const canvas = document.getElementById("canvas3d"); const ctx = canvas.getContext("2d"); let modelIndex = 0; let rotationY = 0.45; let rotationX = -0.15; let scale = 1; let autoRotate = true; let dragging = false; let lastX = 0; let lastY = 0; let pinchDistance = 0; const titles = [ "Bunga dari Plastisin", "Ulat Warna-Warni dari Plastisin", "Es Krim Miniatur dari Plastisin" ]; const descriptions = [ "Bunga plastisin dibuat dengan membentuk kelopak, batang, daun, dan pot. Teknik yang digunakan antara lain pijit, pilin, dan penyusunan.", "Ulat plastisin dibuat dengan menyusun beberapa bulatan plastisin berwarna. Karya ini melatih keterampilan membentuk dan menggabungkan bagian.", "Es krim miniatur dibuat menggunakan plastisin dengan teknik membentuk, menggulung, dan menyusun. Plastisin tidak untuk dikonsumsi." ]; const COLORS = { pink: "#f28cbd", yellow: "#ffce58", green: "#71c78a", darkGreen: "#3c9666", brown: "#c9795d", orange: "#f5a45d", blue: "#83bdf5", purple: "#b9a0ed", cream: "#f4c58a", white: "#ffffff", black: "#263448", red: "#e87678" }; let triangles = []; function hexToRgb(hex) { const n = parseInt(hex.slice(1), 16); return [ (n >> 16) & 255, (n >> 8) & 255, n & 255 ]; } function shadeColor(hex, intensity) { const rgb = hexToRgb(hex); return "rgb(" + rgb.map(v => Math.min(255, Math.max(0, Math.round(v * intensity))) ).join(",") + ")"; } function sphere(cx, cy, cz, rx, ry, rz, color, angle=0) { const lat = 12; const lon = 18; function point(a, b) { const x = rx * Math.sin(a) * Math.cos(b); const y = ry * Math.cos(a); const z = rz * Math.sin(a) * Math.sin(b); const c = Math.cos(angle); const s = Math.sin(angle); return [ cx + x*c-y*s, cy + x*s+y*c, cz + z ]; } for (let i=0; i<lat; i++) { for (let j=0; j<lon; j++) { const a1 = Math.PI*i/lat; const a2 = Math.PI*(i+1)/lat; const b1 = 2*Math.PI*j/lon; const b2 = 2*Math.PI*(j+1)/lon; const p1 = point(a1,b1); const p2 = point(a2,b1); const p3 = point(a2,b2); const p4 = point(a1,b2); addTriangle(p1,p2,p3,color); addTriangle(p1,p3,p4,color); } } } function cylinder(x1,y1,z1,x2,y2,z2,r,color) { const sides = 16; const dx=x2-x1, dy=y2-y1, dz=z2-z1; const length=Math.hypot(dx,dy,dz); if (!length) return; const axis=[dx/length,dy/length,dz/length]; const helper=Math.abs(axis[1])<0.9 ? [0,1,0] : [1,0,0]; let u=[ axis[1]*helper[2]-axis[2]*helper[1], axis[2]*helper[0]-axis[0]*helper[2], axis[0]*helper[1]-axis[1]*helper[0] ]; const ul=Math.hypot(...u); u=u.map(v=>v/ul); const v=[ axis[1]*u[2]-axis[2]*u[1], axis[2]*u[0]-axis[0]*u[2], axis[0]*u[1]-axis[1]*u[0] ]; function ring(x,y,z,a) { return [ x+r*(u[0]*Math.cos(a)+v[0]*Math.sin(a)), y+r*(u[1]*Math.cos(a)+v[1]*Math.sin(a)), z+r*(u[2]*Math.cos(a)+v[2]*Math.sin(a)) ]; } for(let i=0;i<sides;i++) { const a=2*Math.PI*i/sides; const b=2*Math.PI*(i+1)/sides; const p1=ring(x1,y1,z1,a); const p2=ring(x1,y1,z1,b); const p3=ring(x2,y2,z2,b); const p4=ring(x2,y2,z2,a); addTriangle(p1,p2,p3,color); addTriangle(p1,p3,p4,color); } } function cone(yBottom,yTop,rBottom,rTop,color) { const n=24; for(let i=0;i<n;i++) { const a=2*Math.PI*i/n; const b=2*Math.PI*(i+1)/n; const p1=[ rBottom*Math.cos(a),yBottom, rBottom*Math.sin(a) ]; const p2=[ rBottom*Math.cos(b),yBottom, rBottom*Math.sin(b) ]; const p3=[ rTop*Math.cos(b),yTop, rTop*Math.sin(b) ]; const p4=[ rTop*Math.cos(a),yTop, rTop*Math.sin(a) ]; addTriangle(p1,p2,p3,color); addTriangle(p1,p3,p4,color); } } function addTriangle(a,b,c,color) { triangles.push({a,b,c,color}); } // MODEL 1: BUNGA PLASTISIN function flower() { // Pot cone(-1.55,-0.85,0.42,0.58,COLORS.brown); cylinder(0,-0.87,0,0,-0.76,0,0.58,COLORS.orange); // Batang cylinder(0,-0.82,0,0,0.72,0,0.075,COLORS.darkGreen); // Daun sphere(-0.30,-0.26,0.12, 0.34,0.14,0.075,COLORS.green,-0.45); sphere(0.31,-0.02,0.12, 0.33,0.13,0.075,COLORS.green,0.5); // Kelopak for(let i=0;i<8;i++) { const a=2*Math.PI*i/8; const x=Math.cos(a)*0.47; const y=0.86+Math.sin(a)*0.47; sphere(x,y,0.12, 0.25,0.38,0.17, i%2===0?COLORS.pink:COLORS.purple, a-Math.PI/2); } // Tengah bunga sphere(0,0.86,0.38, 0.31,0.31,0.18,COLORS.yellow); } // MODEL 2: ULAT PLASTISIN function caterpillar() { const colors=[ COLORS.purple, COLORS.blue, COLORS.yellow, COLORS.orange, COLORS.green, COLORS.pink ]; for(let i=0;i<6;i++) { const x=-1.1+i*0.43; const y=-0.32+Math.sin(i*0.8)*0.12; sphere(x,y,0, 0.32,0.34,0.34,colors[i]); // Kaki sphere(x-0.08,y-0.27,0.23, 0.10,0.16,0.11,COLORS.orange); sphere(x-0.08,y-0.27,-0.23, 0.10,0.16,0.11,COLORS.orange); } // Kepala sphere(1.12,0.15,0, 0.46,0.47,0.43,COLORS.green); // Mata sphere(1.34,0.30,0.30, 0.12,0.14,0.075,COLORS.white); sphere(1.38,0.31,0.36, 0.055,0.075,0.035,COLORS.black); sphere(1.34,0.30,-0.30, 0.12,0.14,0.075,COLORS.white); // Hidung dan pipi sphere(1.52,0.02,0, 0.075,0.065,0.10,COLORS.pink); // Antena cylinder(0.93,0.52,-0.17, 0.83,0.84,-0.20,0.035,COLORS.darkGreen); cylinder(1.24,0.54,0.17, 1.32,0.86,0.20,0.035,COLORS.darkGreen); sphere(0.83,0.84,-0.20, 0.09,0.09,0.09,COLORS.yellow); sphere(1.32,0.86,0.20, 0.09,0.09,0.09,COLORS.yellow); } // MODEL 3: ES KRIM PLASTISIN function iceCream() { // Cone cone(-1.55,-0.20,0.035,0.58,COLORS.cream); // Pinggiran cone cylinder(0,-0.21,0,0,-0.15,0, 0.58,COLORS.orange); // Lapisan es krim sphere(0,0.00,0, 0.62,0.36,0.62,COLORS.purple); sphere(0,0.47,0, 0.55,0.43,0.55,COLORS.pink); sphere(0,0.91,0, 0.43,0.38,0.43,COLORS.white); // Ceri di puncak sphere(0,1.28,0, 0.18,0.18,0.18,COLORS.red); cylinder(0,1.42,0, 0.11,1.64,0,0.025,COLORS.darkGreen); // Hiasan taburan plastisin const sprinkles=[ [-0.30,0.68,0.39], [0.25,0.58,0.48], [0.10,0.32,0.53], [-0.23,0.22,0.52], [0.25,1.00,0.26] ]; sprinkles.forEach((p,i)=>{ sphere(...p, 0.065,0.035,0.035, i%2?COLORS.yellow:COLORS.blue, i*0.6); }); } // MATEMATIKA ROTASI 3D function transform(p) { let [x,y,z]=p; const cy=Math.cos(rotationY); const sy=Math.sin(rotationY); let xx=x*cy+z*sy; let zz=-x*sy+z*cy; const cx=Math.cos(rotationX); const sx=Math.sin(rotationX); let yy=y*cx-zz*sx; let zzz=y*sx+zz*cx; return [xx,yy,zzz]; } function project(p,w,h) { const depth=5.5-p[2]; const factor=Math.min(w,h)*1.65*scale/depth; return [ w/2+p[0]*factor, h/2-p[1]*factor ]; } function draw() { const rect=canvas.getBoundingClientRect(); const dpr=Math.min(window.devicePixelRatio||1,2); const w=rect.width; const h=rect.height; const pixelW=Math.round(w*dpr); const pixelH=Math.round(h*dpr); if(canvas.width!==pixelW || canvas.height!==pixelH) { canvas.width=pixelW; canvas.height=pixelH; } ctx.setTransform(dpr,0,0,dpr,0,0); ctx.clearRect(0,0,w,h); triangles=[]; if(modelIndex===0) flower(); if(modelIndex===1) caterpillar(); if(modelIndex===2) iceCream(); const light=[0.4,0.8,1]; const faces=triangles.map(t=>{ const a=transform(t.a); const b=transform(t.b); const c=transform(t.c); const ab=b.map((v,i)=>v-a[i]); const ac=c.map((v,i)=>v-a[i]); const nx=ab[1]*ac[2]-ab[2]*ac[1]; const ny=ab[2]*ac[0]-ab[0]*ac[2]; const nz=ab[0]*ac[1]-ab[1]*ac[0]; const length=Math.hypot(nx,ny,nz)||1; // Pencahayaan dua sisi const brightness=Math.abs( (nx*light[0]+ny*light[1]+nz*light[2])/length ); return { a,b,c, depth:(a[2]+b[2]+c[2])/3, color:shadeColor( t.color,0.58+brightness*0.42 ) }; }); // Urutkan bidang dari belakang ke depan faces.sort((a,b)=>a.depth-b.depth); for(const f of faces) { const a=project(f.a,w,h); const b=project(f.b,w,h); const c=project(f.c,w,h); ctx.beginPath(); ctx.moveTo(...a); ctx.lineTo(...b); ctx.lineTo(...c); ctx.closePath(); ctx.fillStyle=f.color; ctx.fill(); // Menyamarkan celah antarbentuk segitiga ctx.strokeStyle=f.color; ctx.lineWidth=0.45; ctx.stroke(); } } function animate() { if(autoRotate && !dragging) { rotationY+=0.006; } draw(); requestAnimationFrame(animate); } // INTERAKSI function changeModel(index) { modelIndex=index; resetView(); document.getElementById("modelTitle").textContent= titles[index]; document.getElementById("modelDescription").textContent= descriptions[index]; } function zoom(multiplier) { scale=Math.max(0.45,Math.min(2.8,scale*multiplier)); } function resetView() { rotationY=0.45; rotationX=-0.15; scale=1; } function toggleAuto() { autoRotate=!autoRotate; document.getElementById("autoButton").textContent= autoRotate ?"⏸ Hentikan Putaran" :"▶ Putar Otomatis"; } canvas.addEventListener("pointerdown",e=>{ dragging=true; lastX=e.clientX; lastY=e.clientY; canvas.setPointerCapture(e.pointerId); }); canvas.addEventListener("pointermove",e=>{ if(!dragging) return; rotationY+=(e.clientX-lastX)*0.009; rotationX+=(e.clientY-lastY)*0.009; rotationX=Math.max( -Math.PI/2, Math.min(Math.PI/2,rotationX) ); lastX=e.clientX; lastY=e.clientY; }); canvas.addEventListener("pointerup",()=>{ dragging=false; }); canvas.addEventListener("pointercancel",()=>{ dragging=false; }); canvas.addEventListener("wheel",e=>{ e.preventDefault(); zoom(e.deltaY<0?1.1:1/1.1); },{passive:false}); // Zoom dengan dua jari di HP canvas.addEventListener("touchmove",e=>{ if(e.touches.length===2) { const a=e.touches[0]; const b=e.touches[1]; const distance=Math.hypot( a.clientX-b.clientX, a.clientY-b.clientY ); if(pinchDistance>0) { zoom(distance/pinchDistance); } pinchDistance=distance; } },{passive:false}); canvas.addEventListener("touchend",()=>{ pinchDistance=0; }); animate(); </script> </body> </html>

Manfaat Pembelajaran Prakarya & Kewirausahaan

  • ✓Memperkuat pemahaman konsep melalui latihan aktif dan interaktif
  • ✓Membangun motivasi belajar dengan sistem poin dan tantangan
  • ✓Memberikan umpan balik langsung sehingga siswa tahu area yang perlu diperkuat
  • ✓Bisa diulang berkali-kali tanpa rasa bosan untuk penguasaan yang lebih baik

Cara Menggunakan Game Ini

  1. 1Guru: Integrasikan sebagai aktivitas pembelajaran di kelas atau tugas mandiri di rumah
  2. 2Siswa: Mainkan dengan fokus dan baca setiap instruksi dengan teliti sebelum memulai
  3. 3Ulangi: Jangan menyerah jika gagal di percobaan pertama — pengulangan adalah kunci belajar

💡 Tips Belajar

Belajar paling efektif ketika kita aktif dan termotivasi. Tetapkan target skor sebelum bermain, dan rayakan setiap kemajuan kecil yang kamu capai.

\n\n\n","subject":"Prakarya & Kewirausahaan","class":"Semua Level","authorName":"GAME IPA ","userId":"duGlkzAU7geC1Rbzi477amodTY93","createdAt":"2026-11-17T05:43:15.371Z","adminDescription":"","adminMetaDesc":"","isTemplate":false,"templateType":""}

Kode game tidak tersedia.

Tujuan

Pemahaman Prakarya

Jenjang

Semua Level

Format

Web Interaktif

Cara Bermain
  1. Klik tombol "Mulai" pada game untuk memulai.
  2. Gunakan mouse atau sentuhan untuk berinteraksi.
  3. Selesaikan tantangan untuk mendapatkan skor terbaik.
  4. Ulangi permainan untuk memperdalam pemahaman materi.
Manfaat Belajar
  • Visualisasi interaktif memudahkan pemahaman konsep.
  • Meningkatkan motivasi belajar siswa lewat gamifikasi.
  • Mendukung pembelajaran mandiri yang menyenangkan.

Panduan untuk Guru

🎯 Tips Menggunakan di Kelas:

  • Gunakan game ini sebagai media pemantik diskusi di awal pelajaran.
  • Berikan tugas eksplorasi mandiri kepada siswa lewat link game.
  • Lakukan refleksi bersama setelah siswa selesai bermain.

Pertanyaan Umum

Beri Nilai Game Ini

Masuk untuk memberi nilai game ini.

Diskusi & Komentar (0)

Ingin ikut berdiskusi? Masuk ke akun Anda.

Login Sekarang

Belum ada komentar.

👨‍🏫

Dibuat oleh: GAME IPA

Guru mitra MAIN Q • Konten telah diverifikasi