Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 2048 the game #173

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions code/games/2048/2048.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!doctype html>
<html>

<head>
<link rel="stylesheet" type="text/css" href="/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="/css/font.css">
<link rel="stylesheet" type="text/css" href="/css/fontawesome-all.min.css">
<link rel="shortcut icon" type="image/png" href="/icon/icon.png" />
<title >2048 the game</title>
<meta charset="utf-8">
<style>
* {
padding: 0;
margin: 0;
}

canvas {
background: #eee;
display: block;
margin: 0 auto;
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no">
</head>

<body id="t" class="offline">
<div class="container">
<br/>
<div class="row">
<div class="col-sm-4 logo" id="logo"></div>
<div class="col-sm-8"></div>
</div>
</div>
<div id="main-frame-error" class="interstitial-wrapper">
<div class="instructions">
<div class="inst-header" style="font-weight:bold; font-size:30px;text-align:center;color:#757575;">
2048
</div>
<div class="inst-body" style="margin-top:5px;text-align:center;color:#757575;margin-bottom:80px; font-size:15px;line-height:1.2em;">
<span id='firsttimeinfo'>Use the arrow keys to push all the squares on the board to the top/left/right/down. Squares with the same number combine to give a square with a value equal to the sum of the two squares. The game ends once you reach 2048 or all the squares are filled and no more moves are possible</span>
</div>
</div>
<div id="main-content">
<div class="icon icon-offline" alt=""></div>
<canvas id="myCanvas" width="500" height="600"></canvas>
</div>
</div>
<script src="./2048.js"></script>
</body>

</html>
Loading