Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryTheHamster committed Oct 24, 2015
1 parent 7f58a18 commit 2e1ae0a
Show file tree
Hide file tree
Showing 33 changed files with 108,503 additions and 62,427 deletions.
12 changes: 6 additions & 6 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ def generate_entrypoint_file(mode):
'scss': glob.glob('game/scss/*.scss') }


DIST = { 'root': 'dist',
'js': glob.glob('dist/js/*.js'),
'css': glob.glob('dist/css/*.css'),
'css_map': glob.glob('dist/css/*.css.map') }
DIST = { 'root': 'gen',
'js': glob.glob('gen/js/*.js'),
'css': glob.glob('gen/css/*.css'),
'css_map': glob.glob('gen/css/*.css.map') }

# clean
print 'clean'

for f in ["game/js/gen", "game/css", "dist", "build"]:
for f in ["game/js/gen", "game/css", "gen", "build"]:
shutil.rmtree(f, ignore_errors=True)

print 'npm install'
Expand All @@ -34,7 +34,7 @@ def generate_entrypoint_file(mode):

print 'preflight'
# preflight
for f in ["dist/js", "dist/css", "game/js/gen", "game/css", "build"]:
for f in ["gen/js", "gen/css", "game/js/gen", "game/css", "build"]:
os.makedirs(f)

# generate entry-points
Expand Down
2 changes: 1 addition & 1 deletion build/easy.js → build/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ entryPoint.loadClientFolder(require('../game/js/logic/**/*.js', {mode: 'hash'} )
entryPoint.loadClientFolder(require('../game/js/maps/**/*.js', {mode: 'hash'} ));
entryPoint.loadClientFolder(require('../game/js/events/**/*.js', {mode: 'hash' }));
entryPoint.loadClientFolder(require('../game/js/views/**/*.js', {mode: 'hash' }));
entryPoint.set('GameMode', 'easy);
entryPoint.set("GameMode", "game");entryPoint.set("Commit", "7f58a18d3a70e05a25e41dd770bee6803d8b2890");
entryPoint.run();
11 changes: 0 additions & 11 deletions build/hard.js

This file was deleted.

4 changes: 3 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"logLevel": "error"
},
"client": {
"aspectRatio": 1
"aspectRatio": 2,
"viewportHeight": 500,
"viewportWidth": 1000
}
}
Loading

0 comments on commit 2e1ae0a

Please sign in to comment.