Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 11 files changed
  • 0 comments
  • 1 contributor
15,525 build/win32/credits.html
15,525 additions, 0 deletions not shown
BIN  build/win32/ffmpegsumo.dll
Binary file not shown
BIN  build/win32/icudt.dll
Binary file not shown
BIN  build/win32/libEGL.dll
Binary file not shown
BIN  build/win32/libGLESv2.dll
Binary file not shown
BIN  build/win32/nw.exe
Binary file not shown
BIN  build/win32/nwsnapshot.exe
Binary file not shown
15 game.css
... ... @@ -1,14 +1,21 @@
1 1 body {
2 2 background-image: url('img/backgroundGalaxy.jpg');
3   - background-size: cover;
4 3 font-family: 'Helvetica', sans-serif;
5   - position:absolute;
6   - width:100%;
7   - height:100%;
  4 + position:absolute;
8 5 top:0;
9 6 right:0;
10 7 left:0;
11 8 bottom:0;
  9 + overflow: hidden;
  10 +}
  11 +
  12 +.close {
  13 + position:absolute;
  14 + left: 10px;
  15 + padding: 2px;
  16 + z-index: 10px;
  17 + font-family: sans-serif;
  18 + color: lime;
12 19 }
13 20
14 21 #scoreBoard {
12 game.html
@@ -3,8 +3,20 @@
3 3 <head>
4 4 <link href="game.css" rel="stylesheet" type="text/css">
5 5 <script src="libs/jquery-1.10.2.min.js"> </script>
  6 + <script>
  7 + if (require) {
  8 + var gui = require('nw.gui');
  9 + var win = gui.Window.get();
  10 +
  11 + $(function() {
  12 + $closeBtn = $('.close');
  13 + $closeBtn.on('click', function () {win.close()});
  14 + });
  15 + }
  16 + </script>
6 17 </head>
7 18 <body>
  19 + <div class="close">X</div>
8 20 <div id="scoreBoard">
9 21 <div>High Score: <span id="high score">0</span></div>
10 22 <div>Score: <span id="score">0</span></div>
BIN  img/backgroundGalaxy.jpg
12 package.json
... ... @@ -0,0 +1,12 @@
  1 +{
  2 + "name": "Lesson 1! Fight",
  3 + "main": "game.html",
  4 + "window": {
  5 + "frame": false,
  6 + "width": 640,
  7 + "height": 480,
  8 + "toolbar": false,
  9 + "position": "center",
  10 + "resizable": false
  11 + }
  12 +}

No commit comments for this range

Something went wrong with that request. Please try again.