Meta Description" name="description" />
<!DOCTYPE html>
<html lang="hi">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Couple Position Game</title>
<style>
body { font-family: 'Arial', sans-serif; background-color: #ffe4e1; text-align: center; margin: 0; padding: 20px; touch-action: none; }
h1 { color: #d81b60; font-size: 24px; }
.card-container { position: relative; width: 300px; height: 300px; margin: 20px auto; border: 8px solid #fff; border-radius: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.2); background-color: #fff; overflow: hidden; }
#canvas { position: absolute; top: 0; left: 0; z-index: 2; cursor: crosshair; touch-action: none; }
.result-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; background: #fff; }
.position-name { font-size: 28px; font-weight: bold; color: #d81b60; margin: 0; }
.instruction { font-size: 14px; color: #555; margin-top: 10px; padding: 0 10px; }
.btn { background-color: #d81b60; color: white; border: none; padding: 12px 25px; font-size: 18px; border-radius: 25px; cursor: pointer; margin-top: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.btn:active { transform: scale(0.95); }
</style>
</head>
<body>
<h1>पिंक स्क्रैच कार्ड गेम ❤️</h1>
<p>अगली पोजीशन जानने के लिए कार्ड घिसें!</p>
<div class="card-container">
<div class="result-layer">
<p id="pos-name" class="position-name">Missionary</p>
<p id="pos-desc" class="instruction">यह एक आरामदायक और क्लासिक पोजीशन है।</p>
</div>
<canvas id="canvas" width="300" height="300"></canvas>
</div>
<button class="btn" onclick="resetGame()">अगला कार्ड लाएं</button>
<script>
const positions = [
{name: "Missionary", desc: "आमने-सामने की क्लासिक पोजीशन।"},
{name: "Doggy Style", desc: "पीछे से घुटनों के बल वाली पोजीशन।"},
{name: "Cowgirl", desc: "लड़की ऊपर, लड़का नीचे।"},
{name: "Spoon", desc: "दोनों एक तरफ करवट लेकर।"},
{name: "The Bridge", desc: "कमर को थोड़ा ऊपर उठाकर।"},
{name: "The Lotus", desc: "बैठकर एक-दूसरे को गले लगाकर।"},
{name: "Standing", desc: "दीवार के सहारे खड़े होकर।"}
];
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
let isDrawing = false;
function init() {
// रैंडम पोजीशन चुनें
const randomPos = positions[Math.floor(Math.random() * positions.length)];
document.getElementById('pos-name').innerText = randomPos.name;
document.getElementById('pos-desc').innerText = randomPos.desc;
// सिल्वर कोटिंग बनाएँ
ctx.globalCompositeOperation = 'source-over';
ctx.fillStyle = '#C0C0C0';
ctx.fillRect(0, 0, 300, 300);
// "Scratch Me" टेक्स्ट
ctx.fillStyle = '#888';
ctx.font = 'bold 20px Arial';
ctx.fillText('यहाँ स्क्रैच करें!', 80, 150);
}
function scratch(e) {
if (!isDrawing) return;
const rect = canvas.getBoundingClientRect();
const x = (e.clientX || e.touches[0].clientX) - rect.left;
const y = (e.clientY || e.touches[0].clientY) - rect.top;
ctx.globalCompositeOperation = 'destination-out';
ctx.beginPath();
ctx.arc(x, y, 25, 0, Math.PI * 2);
ctx.fill();
}
canvas.addEventListener('mousedown', () => isDrawing = true);
canvas.addEventListener('mouseup', () => isDrawing = false);
canvas.addEventListener('mousemove', scratch);
canvas.addEventListener('touchstart', (e) => { isDrawing = true; scratch(e); });
canvas.addEventListener('touchend', () => isDrawing = false);
canvas.addEventListener('touchmove', (e) => { scratch(e); e.preventDefault(); });
function resetGame() {
init();
}
init();
</script>
</body>
</html>
1
1
5KB
5KB
127.0ms
192.0ms
127.0ms