Skip to content

Commit

Permalink
Merge pull request #426 from AftabMankapure/unitangle
Browse files Browse the repository at this point in the history
Add new game unitangle #423
  • Loading branch information
Priyanshi662 authored Feb 25, 2024
2 parents 31f5f0e + 0b1ce83 commit 63dfa58
Show file tree
Hide file tree
Showing 15 changed files with 4,110 additions and 0 deletions.
Binary file added Assets/games/Untangle/NewUn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 73 additions & 0 deletions Assets/games/Untangle/css/untangle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
canvas {

/* for iOS devices */
-webkit-tap-highlight-color: transparent;
}

body {
margin: 0;
padding: 0;
display: flex;
/* align-items: center; */
justify-content: center;
height: 100vh;
width: 100vw;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
background-image: url('../images/bg.webp');
}
#game{
position:relative;
}

#page {
width: 820px;
height: 500px;
margin-top: 140px;
padding: 0;
text-align: center;
text-shadow: 0 1px 5px rgba(60,60,60,.6);
border: 2px solid black;
}
h1{
color: red;
font-size: 40px;
}

header {
height: 88px;
padding-top: 36px;
margin-bottom: 50px;
font-family: "Rock Salt", Arial, sans-serif;
font-size: 14px;
text-shadow: 0 1px 0 rgba(200,200,200,.5);
color: #121;
}

/* Layers */
#layers {
position: relative;
margin: 0 auto;
width:768px;
height: 400px;
}
#layers canvas{
top: 0;
left: 0;
position: absolute;
}
#guide {
opacity: 0.7;
transition: opacity 0.5s ease-out;
}
#guide.fadeout {
opacity: 0;
}
#ui {
transition: opacity 0.3s ease-out;
}
#ui.dim {
opacity: 0.3;
}

Binary file added Assets/games/Untangle/images/bg.webp
Binary file not shown.
Binary file added Assets/games/Untangle/images/bg_repeat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/games/Untangle/images/guide_sprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions Assets/games/Untangle/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Untangle Puzzle Game in Canvas</title>
<link href='http://fonts.googleapis.com/css?family=Rock+Salt' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/untangle.css" />
</head>
<body>
<section id="page">
<h1>UNTANGLE</h1>
<div id="layers">
<canvas id="bg" width="768" height="400">
This is an interactive game with circles and lines connecting them.
</canvas>
<canvas id="guide" width="768" height="400"></canvas>
<canvas id="game" width="768" height="400"></canvas>
<canvas id="ui" width="768" height="400"></canvas>
</div>

<p>Puzzle <span id="level">0</span>, Completeness: <span id="progress">0</span>%</p>

<footer>
<p>This is an example of Untangle Puzzle Game in Canvas.</p>
</footer>
</section>

<script src="js/jquery-2.1.3.min.js"></script>
<script src="js/untangle.data.js"></script>
<script src="js/untangle.drawing.js"></script>
<script src="js/untangle.input.js"></script>
<script src="js/untangle.levels.js"></script>
<script src="js/untangle.game.js"></script>
<script src="js/untangle.js"></script>
</body>
</html>

Loading

0 comments on commit 63dfa58

Please sign in to comment.