-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #426 from AftabMankapure/unitangle
Add new game unitangle #423
- Loading branch information
Showing
15 changed files
with
4,110 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
Oops, something went wrong.