Skip to content

🤖 Cannot save fiddle #2461

Description

Error code

ERRW:1.0:K1.0

Were you logged in?

Yes

Your username (if logged in)

No response

Your HTML

<!DOCTYPE html>
<html lang="bn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ছহির বউ উধাও - ৫ লেভেল গেম</title>
<style>
  body {margin:0; background:#87CEEB; overflow:hidden; font-family:solaimanlipi, sans-serif; text-align:center;}
  canvas {background: linear-gradient(#87CEEB 60%, #4CAF50 60%); display:block; margin:auto; touch-action: none;}
  #title {position:absolute; top:5px; width:100%; color:yellow; font-size:22px; font-weight:bold; text-shadow:3px 3px red;}
  #info {position:absolute; top:35px; width:100%; color:white; font-size:16px; text-shadow:2px 2px black;}
  #level {position:absolute; top:60px; width:100%; color:white; font-size:18px; text-shadow:2px 2px black;}
  #btn {position:absolute; bottom:30px; width:100%; display:none;}
  button {padding:15px 30px; font-size:18px; background:#FF5722; color:white; border:none; border-radius:10px;}
</style>
</head>
<body>
<div id="title">ছহির বউ উধাও</div>
<div id="info">সাকিয়াকে ধরো! ট্যাপ = লাফ 🔊</div>
<div id="level">লেভেল: 1</div>
<canvas id="game" width="400" height="600"></canvas>
<div id="btn"><button onclick="nextLevel()">পরের লেভেল</button></div>

<audio id="jumpSound" src="https://www.soundjay.com/buttons/sounds/button-16.mp3"></audio>
<audio id="trapSound" src="https://www.soundjay.com/human/sounds/scream-1.mp3"></audio>
<audio id="winSound" src="https://www.soundjay.com/misc/sounds/bell-ringing-05.mp3"></audio>
<audio id="bgMusic" src="https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3" loop></audio>

<script>
let canvas = document.getElementById("game");
let ctx = canvas.getContext("2d");
let btn = document.getElementById("btn");
let levelText = document.getElementById("level");

let jumpSound = document.getElementById("jumpSound");
let trapSound = document.getElementById("trapSound");
let winSound = document.getElementById("winSound");
let bgMusic = document.getElementById("bgMusic");

let currentLevel = 1;
let maxLevel = 5;
let chahir, sakia, ahmad, traps, speed, gameOver, win, cameraX;
let musicStarted = false;

const levels = [
  {name:"গ্রামের রাস্তা", traps:[{x:300,t:"কলা"}, {x:500,t:"কাদা"}], bg:"#4CAF50"},
  {name:"বাজার", traps:[{x:350,t:"রিক্সা"}, {x:550,t:"গরু"}], bg:"#FFC107"},
  {name:"নদীর ঘাট", traps:[{x:400,t:"পানি"}, {x:600,t:"নৌকা"}], bg:"#03A9F4"},
  {name:"শ্বশুরবাড়ি", traps:[{x:450,t:"শ্বশুর"}, {x:650,t:"ঝাটা"}], bg:"#E91E63"},
  {name:"ফাইনাল - আহমদের আস্তানা", traps:[{x:500,t:"আহমদ"}], bg:"black"}
];

function playSound(sound){ sound.currentTime = 0; sound.play

Your JavaScript

<!DOCTYPE html>
<html lang="bn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ছহির বউ উধাও - ৫ লেভেল গেম</title>
<style>
  body {margin:0; background:#87CEEB; overflow:hidden; font-family:solaimanlipi, sans-serif; text-align:center;}
  canvas {background: linear-gradient(#87CEEB 60%, #4CAF50 60%); display:block; margin:auto; touch-action: none;}
  #title {position:absolute; top:5px; width:100%; color:yellow; font-size:22px; font-weight:bold; text-shadow:3px 3px red;}
  #info {position:absolute; top:35px; width:100%; color:white; font-size:16px; text-shadow:2px 2px black;}
  #level {position:absolute; top:60px; width:100%; color:white; font-size:18px; text-shadow:2px 2px black;}
  #btn {position:absolute; bottom:30px; width:100%; display:none;}
  button {padding:15px 30px; font-size:18px; background:#FF5722; color:white; border:none; border-radius:10px;}
</style>
</head>
<body>
<div id="title">ছহির বউ উধাও</div>
<div id="info">সাকিয়াকে ধরো! ট্যাপ = লাফ 🔊</div>
<div id="level">লেভেল: 1</div>
<canvas id="game" width="400" height="600"></canvas>
<div id="btn"><button onclick="nextLevel()">পরের লেভেল</button></div>

<audio id="jumpSound" src="https://www.soundjay.com/buttons/sounds/button-16.mp3"></audio>
<audio id="trapSound" src="https://www.soundjay.com/human/sounds/scream-1.mp3"></audio>
<audio id="winSound" src="https://www.soundjay.com/misc/sounds/bell-ringing-05.mp3"></audio>
<audio id="bgMusic" src="https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3" loop></audio>

<script>
let canvas = document.getElementById("game");
let ctx = canvas.getContext("2d");
let btn = document.getElementById("btn");
let levelText = document.getElementById("level");

let jumpSound = document.getElementById("jumpSound");
let trapSound = document.getElementById("trapSound");
let winSound = document.getElementById("winSound");
let bgMusic = document.getElementById("bgMusic");

let currentLevel = 1;
let maxLevel = 5;
let chahir, sakia, ahmad, traps, speed, gameOver, win, cameraX;
let musicStarted = false;

const levels = [
  {name:"গ্রামের রাস্তা", traps:[{x:300,t:"কলা"}, {x:500,t:"কাদা"}], bg:"#4CAF50"},
  {name:"বাজার", traps:[{x:350,t:"রিক্সা"}, {x:550,t:"গরু"}], bg:"#FFC107"},
  {name:"নদীর ঘাট", traps:[{x:400,t:"পানি"}, {x:600,t:"নৌকা"}], bg:"#03A9F4"},
  {name:"শ্বশুরবাড়ি", traps:[{x:450,t:"শ্বশুর"}, {x:650,t:"ঝাটা"}], bg:"#E91E63"},
  {name:"ফাইনাল - আহমদের আস্তানা", traps:[{x:500,t:"আহমদ"}], bg:"black"}
];

function playSound(sound){ sound.currentTime = 0; sound.play

Your CSS

<!DOCTYPE html>
<html lang="bn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ছহির বউ উধাও - ৫ লেভেল গেম</title>
<style>
  body {margin:0; background:#87CEEB; overflow:hidden; font-family:solaimanlipi, sans-serif; text-align:center;}
  canvas {background: linear-gradient(#87CEEB 60%, #4CAF50 60%); display:block; margin:auto; touch-action: none;}
  #title {position:absolute; top:5px; width:100%; color:yellow; font-size:22px; font-weight:bold; text-shadow:3px 3px red;}
  #info {position:absolute; top:35px; width:100%; color:white; font-size:16px; text-shadow:2px 2px black;}
  #level {position:absolute; top:60px; width:100%; color:white; font-size:18px; text-shadow:2px 2px black;}
  #btn {position:absolute; bottom:30px; width:100%; display:none;}
  button {padding:15px 30px; font-size:18px; background:#FF5722; color:white; border:none; border-radius:10px;}
</style>
</head>
<body>
<div id="title">ছহির বউ উধাও</div>
<div id="info">সাকিয়াকে ধরো! ট্যাপ = লাফ 🔊</div>
<div id="level">লেভেল: 1</div>
<canvas id="game" width="400" height="600"></canvas>
<div id="btn"><button onclick="nextLevel()">পরের লেভেল</button></div>

<audio id="jumpSound" src="https://www.soundjay.com/buttons/sounds/button-16.mp3"></audio>
<audio id="trapSound" src="https://www.soundjay.com/human/sounds/scream-1.mp3"></audio>
<audio id="winSound" src="https://www.soundjay.com/misc/sounds/bell-ringing-05.mp3"></audio>
<audio id="bgMusic" src="https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3" loop></audio>

<script>
let canvas = document.getElementById("game");
let ctx = canvas.getContext("2d");
let btn = document.getElementById("btn");
let levelText = document.getElementById("level");

let jumpSound = document.getElementById("jumpSound");
let trapSound = document.getElementById("trapSound");
let winSound = document.getElementById("winSound");
let bgMusic = document.getElementById("bgMusic");

let currentLevel = 1;
let maxLevel = 5;
let chahir, sakia, ahmad, traps, speed, gameOver, win, cameraX;
let musicStarted = false;

const levels = [
  {name:"গ্রামের রাস্তা", traps:[{x:300,t:"কলা"}, {x:500,t:"কাদা"}], bg:"#4CAF50"},
  {name:"বাজার", traps:[{x:350,t:"রিক্সা"}, {x:550,t:"গরু"}], bg:"#FFC107"},
  {name:"নদীর ঘাট", traps:[{x:400,t:"পানি"}, {x:600,t:"নৌকা"}], bg:"#03A9F4"},
  {name:"শ্বশুরবাড়ি", traps:[{x:450,t:"শ্বশুর"}, {x:650,t:"ঝাটা"}], bg:"#E91E63"},
  {name:"ফাইনাল - আহমদের আস্তানা", traps:[{x:500,t:"আহমদ"}], bg:"black"}
];

function playSound(sound){ sound.currentTime = 0; sound.play

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions