Commit 130e83de authored by Richard Torenvliet's avatar Richard Torenvliet

Start of the game, started with tiled sidecroller

parent 7f3edf1e
......@@ -8,5 +8,4 @@ CONTRIBUTING.md
LICENSE
changelog.tpl
tools.md
*.DS_Store
......@@ -18,11 +18,42 @@ module.exports = function ( grunt ) {
grunt.loadNpmTasks('grunt-ng-annotate');
grunt.loadNpmTasks('grunt-html2js');
grunt.loadNpmTasks('grunt-http-server');
/**
* Load in our build configuration file.
*/
var userConfig = require( './build.config.js' );
var httpConfig = {
'http-server': {
'dev': {
// the server root directory
root: 'build/',
// the server port
// can also be written as a function, e.g.
// port: function() { return 8282; }
port: 8282,
// the host ip address
// If specified to, for example, "127.0.0.1" the server will
// only be available on that ip.
// Specify "0.0.0.0" to be available everywhere
host: "127.0.0.1",
showDir : true,
autoIndex: true,
// server default file extension
ext: "html",
// run in parallel with other tasks
runInBackground: false
}
}
};
/**
* This is the configuration object Grunt uses to give each plugin its
* instructions.
......@@ -546,7 +577,7 @@ module.exports = function ( grunt ) {
}
};
grunt.initConfig( grunt.util._.extend( taskConfig, userConfig ) );
grunt.initConfig( grunt.util._.extend( taskConfig, userConfig, httpConfig ) );
/**
* In order to make it safe to just compile or copy *only* what was changed,
......
......@@ -66,7 +66,8 @@ module.exports = {
'vendor/angular-bootstrap/ui-bootstrap-tpls.min.js',
'vendor/placeholders/angular-placeholders-0.0.1-SNAPSHOT.min.js',
'vendor/angular-ui-router/release/angular-ui-router.js',
'vendor/angular-ui-utils/modules/route/route.js'
'vendor/angular-ui-utils/modules/route/route.js',
'vendor/pixi.js/bin/pixi.dev.js'
],
css: [
],
......
run:
grunt http-server:dev
......@@ -2,6 +2,7 @@ angular.module( 'Interactive', [
'templates-app',
'templates-common',
'Interactive.index',
'Interactive.pixi',
'ui.router'
])
......
angular.module('Interactive.index', [
'Interactive.pixi',
'ui.router'
])
......@@ -20,5 +21,3 @@ angular.module('Interactive.index', [
})
;
<div>
<h1>Index</h1>
</div>
<h1>Game</h1>
<canvas pixi="stage" pixi-render="pixiRender"
pixi-transparent="false" width="900" height="400">
</canvas>
......@@ -15,7 +15,6 @@
</head>
<body>
<div class="container" ui-view="main">
<h1>Test</h1>
</div>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment