Skip to content

Commit

Permalink
[#1031] Implement play game start button (#1035)
Browse files Browse the repository at this point in the history
Closes #1031 

## Changes:

- Build in start game to loader
  • Loading branch information
eonarheim committed Oct 7, 2018
1 parent 3131a0a commit 870cc2c
Show file tree
Hide file tree
Showing 16 changed files with 671 additions and 141 deletions.
46 changes: 23 additions & 23 deletions .vscode/settings.json
@@ -1,26 +1,26 @@
// Place your settings in this file to overwrite default and user settings.
{
"editor.tabSize": 3,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"restructuredtext.confPath": "docs/source/conf.py",
"restructuredtext.builtDocumentationPath" : "docs/build/html",
"tslint.enable": true,
"tslint.configFile": "./tslint/tslint.json",
"files.exclude": {
"**/.git": true,
".grunt/": true,
".tscache": true,
"**/.DS_Store": true,
"**/node_modules": true,
"**/node_shrinkwrap": true,
"**/bin": true,
"**/obj": true,
"_SpecRunner.html": true,
"TestsSpec.js*": true,
"src/engine/*.js": true,
"src/spec/*.js": true,
"src/spec/*.map": true
},
"typescript.tsdk": "./node_modules/typescript/lib"
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"restructuredtext.confPath": "docs/source/conf.py",
"restructuredtext.builtDocumentationPath": "docs/build/html",
"tslint.enable": true,
"tslint.configFile": "./tslint/tslint.json",
"files.exclude": {
"**/.git": true,
".grunt/": true,
".tscache": true,
"**/.DS_Store": true,
"**/node_modules": true,
"**/node_shrinkwrap": true,
"**/bin": true,
"**/obj": true,
"_SpecRunner.html": true,
"TestsSpec.js*": true,
"src/engine/*.js": true,
"src/spec/*.js": true,
"src/spec/*.map": true
},
"typescript.tsdk": "./node_modules/typescript/lib"
}
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -11,6 +11,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Changed

- Excalibur will now prompt for user input before starting the game to be inline with the new webaudio requirments from chrome/mobile browsers ([#1031](https://github.com/excaliburjs/Excalibur/issues/1031))

### Deprecated

### Fixed
Expand Down
235 changes: 235 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -43,6 +43,7 @@
"@types/node": "8.10.18",
"copy-webpack-plugin": "4.5.1",
"cross-env": "5.1.6",
"css-loader": "1.0.0",
"grunt": "1.0.2",
"grunt-build-control": "0.7.1",
"grunt-bumpup": "0.6.3",
Expand Down Expand Up @@ -71,11 +72,13 @@
"rimraf": "2.6.2",
"source-map-support": "0.4.18",
"sync-request": "4.1.0",
"to-string-loader": "1.1.5",
"travis-ci": "2.1.1",
"ts-loader": "4.3.0",
"tslint": "3.15.1",
"typedoc": "0.11.1",
"typescript": "2.8.3",
"url-loader": "1.1.1",
"webpack": "4.8.1",
"webpack-cli": "2.1.3"
},
Expand Down
7 changes: 5 additions & 2 deletions sandbox/tests/animation/animation.ts
Expand Up @@ -8,7 +8,8 @@ var engine = new ex.Engine({
width: width,
height: height,
canvasElementId: 'game',
pointerScope: ex.Input.PointerScope.Canvas
pointerScope: ex.Input.PointerScope.Canvas,
suppressPlayButton: false
});
engine.backgroundColor = ex.Color.Black;

Expand All @@ -27,4 +28,6 @@ engine.input.keyboard.on('down', (keyDown?: ex.Input.KeyEvent) => {
}
});

engine.start(new ex.Loader([playerTexture])).then(() => {});
var loader = new ex.Loader([playerTexture]);
loader.playButtonText = 'Start the best game ever';
engine.start(loader).then(() => {});

0 comments on commit 870cc2c

Please sign in to comment.