Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: kthakore/kidslearningcode
base: c991ef17b8
...
head fork: kthakore/kidslearningcode
compare: 79f23b30ba
  • 2 commits
  • 11 files changed
  • 0 commit comments
  • 1 contributor
Commits on Jan 13, 2014
@kthakore Cleaning up game 48cbe0b
Commits on Jan 27, 2014
@kthakore Adding node webkit distro 79f23b3
View
15,525 build/win32/credits.html
15,525 additions, 0 deletions not shown
View
BIN  build/win32/ffmpegsumo.dll
Binary file not shown
View
BIN  build/win32/icudt.dll
Binary file not shown
View
BIN  build/win32/libEGL.dll
Binary file not shown
View
BIN  build/win32/libGLESv2.dll
Binary file not shown
View
BIN  build/win32/nw.exe
Binary file not shown
View
BIN  build/win32/nwsnapshot.exe
Binary file not shown
View
15 game.css
@@ -1,14 +1,21 @@
body {
background-image: url('img/backgroundGalaxy.jpg');
- background-size: cover;
font-family: 'Helvetica', sans-serif;
- position:absolute;
- width:100%;
- height:100%;
+ position:absolute;
top:0;
right:0;
left:0;
bottom:0;
+ overflow: hidden;
+}
+
+.close {
+ position:absolute;
+ left: 10px;
+ padding: 2px;
+ z-index: 10px;
+ font-family: sans-serif;
+ color: lime;
}
#scoreBoard {
View
12 game.html
@@ -3,8 +3,20 @@
<head>
<link href="game.css" rel="stylesheet" type="text/css">
<script src="libs/jquery-1.10.2.min.js"> </script>
+ <script>
+ if (require) {
+ var gui = require('nw.gui');
+ var win = gui.Window.get();
+
+ $(function() {
+ $closeBtn = $('.close');
+ $closeBtn.on('click', function () {win.close()});
+ });
+ }
+ </script>
</head>
<body>
+ <div class="close">X</div>
<div id="scoreBoard">
<div>High Score: <span id="high score">0</span></div>
<div>Score: <span id="score">0</span></div>
View
BIN  img/backgroundGalaxy.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
12 package.json
@@ -0,0 +1,12 @@
+{
+ "name": "Lesson 1! Fight",
+ "main": "game.html",
+ "window": {
+ "frame": false,
+ "width": 640,
+ "height": 480,
+ "toolbar": false,
+ "position": "center",
+ "resizable": false
+ }
+}

No commit comments for this range

Something went wrong with that request. Please try again.