···33about: Something not working as expected? Tell us about it!
44---
5566-<!-- ::: IMPORTANT NOTE :::
66+<!-- ::: IMPORTANT NOTE :::
7788Hi, this is the Excalibur development team. Please take a moment to read the instructions below:
991010Please ask any questions you have in our forum: https://groups.google.com/forum/#!forum/excaliburjs
11111212Please wait to file a Github issue until after you've read through and understand the contributing guidelines. If you're not sure if you should submit an issue, ask your question in the forum linked above.
1313-https://github.com/excaliburjs/Excalibur/blob/master/.github/CONTRIBUTING.md#reporting-bugs
1313+https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md#reporting-bugs
1414-->
15151616<!-- Please follow the format below to make it easier for us to help you -->
1717<!-- Add relevant pictures/gifs as appropriate -->
18181919### Steps to Reproduce
2020+2021<!-- Detailed steps for reproducing the problem -->
2122<!-- If possible, please include a self-contained code snippet that demonstrates the problem -->
22232324### Expected Result
2525+2426<!-- What you expected to happen -->
25272628### Actual Result
2929+2730<!-- What happened instead -->
28312932### Environment
3333+3034<!-- Please fill out these fields -->
3535+3136- browsers and versions: <!-- e.x. Chrome (50.0.2883.87), Firefox (50.1.0), Edge (38.14393.0.0), etc. -->
3237- operating system: <!-- What OS are you using? -->
3338- Excalibur versions: <!-- which version(s) of Excalibur contain the bug?-->
3439- (anything else that may be relevant) <!-- Are there versions of Excalibur that don't contain the bug?, etc. -->
35403641### Current Workaround
4242+3743<!-- If you have determined a workaround for this issue, please detail it here -->
+4-2
.github/ISSUE_TEMPLATE/feature_request.md
···33about: Suggest a new feature or improvement
44---
5566-<!-- ::: IMPORTANT NOTE :::
66+<!-- ::: IMPORTANT NOTE :::
7788Hi, this is the Excalibur development team. Please take a moment to read the instructions below:
991010Please ask any questions you have in our forum: https://groups.google.com/forum/#!forum/excaliburjs
11111212Please wait to file a Github issue until after you've read through and understand the contributing guidelines. If you're not sure if you should submit an issue, ask your question in the forum linked above.
1313-https://github.com/excaliburjs/Excalibur/blob/master/.github/CONTRIBUTING.md#suggesting-improvements
1313+https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md#suggesting-improvements
1414-->
15151616<!-- Please do a quick search through our [backlog][issues] to see if your improvement has already been suggested. If so, feel free to provide additional comments or thoughts on the existing issue. -->
···1919<!-- Add relevant pictures/gifs as appropriate -->
20202121### Context
2222+2223<!-- Explain the background information for this request -->
23242425### Proposal
2626+2527<!-- Your idea for the new feature, improvement, etc. -->
2628<!-- If you have any ideas for implementation or next steps, add those here -->
+5-5
.github/PULL_REQUEST_TEMPLATE.md
···11<!--
22Hi, and thanks for contributing to Excalibur!
33-Before you go any further, please read our contributing guide: https://github.com/excaliburjs/Excalibur/blob/master/.github/CONTRIBUTING.md
33+Before you go any further, please read our contributing guide: https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md
44especially the "Submitting Changes" section:
55-https://github.com/excaliburjs/Excalibur/blob/master/.github/CONTRIBUTING.md#submitting-changes
55+https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md#submitting-changes
66---
77A quick summary checklist is included below for convenience:
88-->
···11111212- [ ] :pushpin: issue exists in github for these changes
1313- [ ] :microscope: existing tests still pass
1414-- [ ] :see_no_evil: code conforms to the [style guide](https://github.com/excaliburjs/Excalibur/blob/master/STYLEGUIDE.md)
1414+- [ ] :see_no_evil: code conforms to the [style guide](https://github.com/excaliburjs/Excalibur/blob/main/STYLEGUIDE.md)
1515- [ ] :triangular_ruler: new tests written and passing / old tests updated with new scenario(s)
1616- [ ] :page_facing_up: changelog entry added (or not needed)
17171818==================
19192020-<!-- If you're closing an issue with this pull request, or contributing a significant change, please include your changes in the appropriate section of CHANGELOG.md as outlined in https://github.com/excaliburjs/Excalibur/blob/master/.github/CONTRIBUTING.md#creating-a-pull-request. -->
2020+<!-- If you're closing an issue with this pull request, or contributing a significant change, please include your changes in the appropriate section of CHANGELOG.md as outlined in https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md#creating-a-pull-request. -->
21212222-<!--Please format your pull request title according to our commit message styleguide: https://github.com/excaliburjs/Excalibur/blob/master/.github/CONTRIBUTING.md#commit-messages -->
2222+<!--Please format your pull request title according to our commit message styleguide: https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md#commit-messages -->
23232424<!-- Thanks again! -->
2525
+3-3
.travis.yml
···1717 - npm run travis
1818after_success:
1919 - node deploy-docs.js
2020- - if [[ "$TRAVIS_PULL_REQUEST" = "false" && ( "$TRAVIS_BRANCH" = "master" || "$TRAVIS_TAG" != "" ) ]]; then node_modules/.bin/grunt dists; fi
2020+ - if [[ "$TRAVIS_PULL_REQUEST" = "false" && ( "$TRAVIS_BRANCH" = "main" || "$TRAVIS_TAG" != "" ) ]]; then node_modules/.bin/grunt dists; fi
2121before_deploy:
2222 - npm run build-storybook
2323deploy:
···2626 github_token: $GH_TOKEN
2727 local_dir: ./build-storybook
2828 repo: excaliburjs/examples
2929- target_branch: master
2929+ target_branch: main
3030 on:
3131- branch: master
3131+ branch: main
3232notifications:
3333 slack:
3434 secure: aQXFk2/MxX5eR2JM90xWAA9YX03QArY1ejUmnP/NkFHbB4zzKZblACjEeDTDTDCThZpXhrganX2nDWrWFrrXbOG28wKrRhEZSULPAgyiWGpfkMoT44fKmgh+eZ5C/isMF2eeQCrYo3EQCMxfCKxNaBhyLc+jr/Sm232zU2LaXo8=
+2-2
CHANGELOG.md
···406406407407### Added
408408409409-- Option bag constructors have been added for commonly-used classes (see [Constructors.md](https://github.com/excaliburjs/Excalibur/blob/master/src/engine/Docs/Constructors.md)) ([#410](https://github.com/excaliburjs/Excalibur/issues/410))
409409+- Option bag constructors have been added for commonly-used classes (see [Constructors.md](https://github.com/excaliburjs/Excalibur/blob/main/src/engine/Docs/Constructors.md)) ([#410](https://github.com/excaliburjs/Excalibur/issues/410))
410410411411<!----------------------------------------------------------------------------------------------->
412412···728728729729- `Actor.addChild()` changed to `Actor.add()` ([#519](https://github.com/excaliburjs/Excalibur/issues/519))
730730- `Actor.removeChild()` changed to `Actor.remove()` ([#519](https://github.com/excaliburjs/Excalibur/issues/519))
731731-- Documentation is only deployed on changes to the master git branch ([#483](https://github.com/excaliburjs/Excalibur/issues/483))
731731+- Documentation is only deployed on changes to the main git branch ([#483](https://github.com/excaliburjs/Excalibur/issues/483))
732732- A warning message is now displayed if no supported audio format is provided for a browser ([#476](https://github.com/excaliburjs/Excalibur/issues/476))
733733- Updated TSLint directory scanning ([#442](https://github.com/excaliburjs/Excalibur/issues/442), [#443](https://github.com/excaliburjs/Excalibur/issues/443), [#447](https://github.com/excaliburjs/Excalibur/issues/447))
734734- Deprecated older methods ([#399](https://github.com/excaliburjs/Excalibur/issues/399))
+2-2
Excalibur.nuspec
···66 <version>$version$</version>
77 <authors>Excalibur.js</authors>
88 <projectUrl>https://github.com/excaliburjs/Excalibur</projectUrl>
99- <licenseUrl>https://github.com/excaliburjs/Excalibur/master/blob/LICENSE.md</licenseUrl>
1010- <iconUrl>https://raw.github.com/excaliburjs/Excalibur/master/assets/icon.png</iconUrl>
99+ <licenseUrl>https://github.com/excaliburjs/Excalibur/main/blob/LICENSE.md</licenseUrl>
1010+ <iconUrl>https://raw.github.com/excaliburjs/Excalibur/main/assets/icon.png</iconUrl>
1111 <requireLicenseAcceptance>false</requireLicenseAcceptance>
1212 <description>Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.</description>
1313 </metadata>
···11
2233-[](https://travis-ci.org/excaliburjs/Excalibur)
44-[](https://ci.appveyor.com/project/eonarheim/excalibur)
33+[](https://travis-ci.org/excaliburjs/Excalibur)
44+[](https://ci.appveyor.com/project/eonarheim/excalibur)
55[](https://coveralls.io/github/excaliburjs/Excalibur)
66[](https://www.npmjs.com/package/excalibur)
77[](https://www.npmjs.com/package/excalibur)
···3131# Questions
32323333- :question: Ask us anything in the [Excalibur.js forum](https://groups.google.com/forum/#!forum/excaliburjs)
3434-- :bug: If you find a bug, report it on the [GitHub issues page](https://github.com/excaliburjs/Excalibur/issues) (please review our [guidelines for reporting bugs](https://github.com/excaliburjs/Excalibur/blob/master/.github/CONTRIBUTING.md#reporting-bugs)).
3434+- :bug: If you find a bug, report it on the [GitHub issues page](https://github.com/excaliburjs/Excalibur/issues) (please review our [guidelines for reporting bugs](https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md#reporting-bugs)).
3535- :mega: You can also follow us on Twitter [@excaliburjs](http://twitter.com/excaliburjs) or [read the blog](http://blog.excaliburjs.com).
36363737# Samples
+40-38
deploy-docs.js
···11var Travis = require('travis-ci');
22-var repo = "excaliburjs/excaliburjs.github.io";
22+var repo = 'excaliburjs/excaliburjs.github.io';
33var travis = new Travis({
44- version: '2.0.0',
55- headers: {
66- 'User-Agent': 'Travis/1.0'
77- }
44+ version: '2.0.0',
55+ headers: {
66+ 'User-Agent': 'Travis/1.0'
77+ }
88});
991010var branch = process.env.TRAVIS_BRANCH;
1111var tag = process.env.TRAVIS_TAG;
1212-var pr = process.env.TRAVIS_PULL_REQUEST;
1212+var pr = process.env.TRAVIS_PULL_REQUEST;
13131414-if (pr !== "false") {
1515- console.log("Skipping docs deployment, detected pull request");
1616- return;
1414+if (pr !== 'false') {
1515+ console.log('Skipping docs deployment, detected pull request');
1616+ return;
1717}
18181919-// build docs for tags and master only
1919+// build docs for tags and main only
2020if (tag) {
2121- console.log("Current tag is `" + tag + "`");
2222-} else if (branch == "master") {
2323- console.log("Current branch is `" + branch + "`");
2121+ console.log('Current tag is `' + tag + '`');
2222+} else if (branch == 'main') {
2323+ console.log('Current branch is `' + branch + '`');
2424} else {
2525- console.log("Current branch is `" + branch + "`, skipping docs deployment...");
2626- return;
2525+ console.log('Current branch is `' + branch + '`, skipping docs deployment...');
2626+ return;
2727}
28282929-console.log("Triggering remote build of edge docs...");
2929+console.log('Triggering remote build of edge docs...');
30303131-travis.authenticate({
3232- github_token: process.env.GH_TOKEN
3333-},
3434- function (err, res) {
3131+travis.authenticate(
3232+ {
3333+ github_token: process.env.GH_TOKEN
3434+ },
3535+ function (err, res) {
3636+ if (err) {
3737+ return console.error(err);
3838+ }
3939+4040+ travis.repos(repo.split('/')[0], repo.split('/')[1]).builds.get(function (err, res) {
3541 if (err) {
3636- return console.error(err);
4242+ return console.error(err);
3743 }
38443939- travis.repos(repo.split('/')[0], repo.split('/')[1]).builds.get(
4040- function (err, res) {
4141- if (err) {
4242- return console.error(err);
4343- }
4444-4545- travis.requests.post({
4646- build_id: res.builds[0].id
4747- }, function (err, res) {
4848- if (err) {
4949- return console.error(err);
5050- }
5151- console.log(res.flash[0].notice);
5252- });
5353- }
4545+ travis.requests.post(
4646+ {
4747+ build_id: res.builds[0].id
4848+ },
4949+ function (err, res) {
5050+ if (err) {
5151+ return console.error(err);
5252+ }
5353+ console.log(res.flash[0].notice);
5454+ }
5455 );
5555- }
5656-);5656+ });
5757+ }
5858+);