Permalink
Browse files

Move code in subfolders

  • Loading branch information...
1 parent ac3ed13 commit 3c5ec9653dae0543d7a5135d776fb91e5ad2965b @Seldaek committed Nov 21, 2012
@@ -1,7 +1,10 @@
+@import url(http://fonts.googleapis.com/css?family=Lato:100,300);
+
body {
background: #222;
color: #fff;
- font: 16px Verdana, sans-serif;
+ font: 16px 'Lato', sans-serif;
+ font-weight: 300;
}
footer {
text-align: center;
@@ -30,7 +33,7 @@ a, a:link, a:visited, a:hover {
right: 25px;
top: 5px;
position: absolute;
- line-height: 12px;
+ line-height: 20px;
}
#messages {
left: 0;
@@ -41,8 +44,13 @@ a, a:link, a:visited, a:hover {
width: 100%;
}
#messages, #score {
+ font-weight: 100;
+ font-size: 23px;
text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 3px #000, 0 0 3px #000;
}
+#score, #energy-bar {
+ font-size: 24px;
+}
#energy-bar {
right: 5px;
top: 5px;
View
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
- <link href="styles.css" rel="stylesheet" type="text/css" />
+ <link href="css/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<section id="game">
@@ -23,13 +23,13 @@
<p>Split, a game designed and created by <a href="http://seld.be">Jordi Boggiano</a> for the GitHub Game Off 2012 contest.</p>
<p>Game sources <a href="https://github.com/Seldaek/split">available on GitHub</a>.</p>
</footer>
- <script src="split.js"></script>
- <script src="node.js"></script>
- <script src="block.js"></script>
- <script src="matrix.js"></script>
- <script src="trails.js"></script>
- <script src="energybar.js"></script>
- <script src="utils.js"></script>
+ <script src="js/split.js"></script>
+ <script src="js/node.js"></script>
+ <script src="js/block.js"></script>
+ <script src="js/matrix.js"></script>
+ <script src="js/trails.js"></script>
+ <script src="js/energybar.js"></script>
+ <script src="js/utils.js"></script>
<script>
(function () {
var game = new Split(
View
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
File renamed without changes.
View
@@ -13,7 +13,7 @@ var Split = function (node, trailsNode, energyNode, forceNode, scoreNode, messag
this.messagesNode = messagesNode;
if (window.localStorage && !isNaN(parseInt(window.localStorage.getItem('highscore'), 10))) {
- this.scoreNode.innerHTML = "Highscore: " + window.localStorage.getItem('highscore');
+ this.scoreNode.innerHTML = "HIGHSCORE " + window.localStorage.getItem('highscore') + "";
}
this.ctx = node.getContext('2d');
@@ -82,7 +82,7 @@ Split.prototype.tick = function () {
// TODO add pause, unpause should check the time elapsed and add that to all the last* vars
this.score = this.matrix.y - this.canvas.height;
- this.scoreNode.innerHTML = 'Score: ' + this.score;
+ this.scoreNode.innerHTML = '' + this.score + '';
// compute multiplier
curTick = Date.now();
File renamed without changes.
View
File renamed without changes.

0 comments on commit 3c5ec96

Please sign in to comment.