[READ-ONLY] Mirror of https://github.com/excaliburjs/Excalibur. 🎮 Your friendly TypeScript 2D game engine for the web 🗡️ excaliburjs.com
excalibur excaliburjs game-development game-engine game-framework gamedev games html5-canvas typescript
2

Configure Feed

Select the types of activity you want to include in your feed.

chore: Switch to main

Erik Onarheim (Sep 5, 2020, 10:31 AM -0500) 2e98ae6a 855ce516

+68 -58
+8 -2
.github/ISSUE_TEMPLATE/bug_report.md
··· 3 3 about: Something not working as expected? Tell us about it! 4 4 --- 5 5 6 - <!-- ::: IMPORTANT NOTE ::: 6 + <!-- ::: IMPORTANT NOTE ::: 7 7 8 8 Hi, this is the Excalibur development team. Please take a moment to read the instructions below: 9 9 10 10 Please ask any questions you have in our forum: https://groups.google.com/forum/#!forum/excaliburjs 11 11 12 12 Please 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. 13 - https://github.com/excaliburjs/Excalibur/blob/master/.github/CONTRIBUTING.md#reporting-bugs 13 + https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md#reporting-bugs 14 14 --> 15 15 16 16 <!-- Please follow the format below to make it easier for us to help you --> 17 17 <!-- Add relevant pictures/gifs as appropriate --> 18 18 19 19 ### Steps to Reproduce 20 + 20 21 <!-- Detailed steps for reproducing the problem --> 21 22 <!-- If possible, please include a self-contained code snippet that demonstrates the problem --> 22 23 23 24 ### Expected Result 25 + 24 26 <!-- What you expected to happen --> 25 27 26 28 ### Actual Result 29 + 27 30 <!-- What happened instead --> 28 31 29 32 ### Environment 33 + 30 34 <!-- Please fill out these fields --> 35 + 31 36 - browsers and versions: <!-- e.x. Chrome (50.0.2883.87), Firefox (50.1.0), Edge (38.14393.0.0), etc. --> 32 37 - operating system: <!-- What OS are you using? --> 33 38 - Excalibur versions: <!-- which version(s) of Excalibur contain the bug?--> 34 39 - (anything else that may be relevant) <!-- Are there versions of Excalibur that don't contain the bug?, etc. --> 35 40 36 41 ### Current Workaround 42 + 37 43 <!-- If you have determined a workaround for this issue, please detail it here -->
+4 -2
.github/ISSUE_TEMPLATE/feature_request.md
··· 3 3 about: Suggest a new feature or improvement 4 4 --- 5 5 6 - <!-- ::: IMPORTANT NOTE ::: 6 + <!-- ::: IMPORTANT NOTE ::: 7 7 8 8 Hi, this is the Excalibur development team. Please take a moment to read the instructions below: 9 9 10 10 Please ask any questions you have in our forum: https://groups.google.com/forum/#!forum/excaliburjs 11 11 12 12 Please 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. 13 - https://github.com/excaliburjs/Excalibur/blob/master/.github/CONTRIBUTING.md#suggesting-improvements 13 + https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md#suggesting-improvements 14 14 --> 15 15 16 16 <!-- 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. --> ··· 19 19 <!-- Add relevant pictures/gifs as appropriate --> 20 20 21 21 ### Context 22 + 22 23 <!-- Explain the background information for this request --> 23 24 24 25 ### Proposal 26 + 25 27 <!-- Your idea for the new feature, improvement, etc. --> 26 28 <!-- If you have any ideas for implementation or next steps, add those here -->
+5 -5
.github/PULL_REQUEST_TEMPLATE.md
··· 1 1 <!-- 2 2 Hi, and thanks for contributing to Excalibur! 3 - Before you go any further, please read our contributing guide: https://github.com/excaliburjs/Excalibur/blob/master/.github/CONTRIBUTING.md 3 + Before you go any further, please read our contributing guide: https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md 4 4 especially the "Submitting Changes" section: 5 - https://github.com/excaliburjs/Excalibur/blob/master/.github/CONTRIBUTING.md#submitting-changes 5 + https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md#submitting-changes 6 6 --- 7 7 A quick summary checklist is included below for convenience: 8 8 --> ··· 11 11 12 12 - [ ] :pushpin: issue exists in github for these changes 13 13 - [ ] :microscope: existing tests still pass 14 - - [ ] :see_no_evil: code conforms to the [style guide](https://github.com/excaliburjs/Excalibur/blob/master/STYLEGUIDE.md) 14 + - [ ] :see_no_evil: code conforms to the [style guide](https://github.com/excaliburjs/Excalibur/blob/main/STYLEGUIDE.md) 15 15 - [ ] :triangular_ruler: new tests written and passing / old tests updated with new scenario(s) 16 16 - [ ] :page_facing_up: changelog entry added (or not needed) 17 17 18 18 ================== 19 19 20 - <!-- 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. --> 20 + <!-- 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. --> 21 21 22 - <!--Please format your pull request title according to our commit message styleguide: https://github.com/excaliburjs/Excalibur/blob/master/.github/CONTRIBUTING.md#commit-messages --> 22 + <!--Please format your pull request title according to our commit message styleguide: https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md#commit-messages --> 23 23 24 24 <!-- Thanks again! --> 25 25
+3 -3
.travis.yml
··· 17 17 - npm run travis 18 18 after_success: 19 19 - node deploy-docs.js 20 - - if [[ "$TRAVIS_PULL_REQUEST" = "false" && ( "$TRAVIS_BRANCH" = "master" || "$TRAVIS_TAG" != "" ) ]]; then node_modules/.bin/grunt dists; fi 20 + - if [[ "$TRAVIS_PULL_REQUEST" = "false" && ( "$TRAVIS_BRANCH" = "main" || "$TRAVIS_TAG" != "" ) ]]; then node_modules/.bin/grunt dists; fi 21 21 before_deploy: 22 22 - npm run build-storybook 23 23 deploy: ··· 26 26 github_token: $GH_TOKEN 27 27 local_dir: ./build-storybook 28 28 repo: excaliburjs/examples 29 - target_branch: master 29 + target_branch: main 30 30 on: 31 - branch: master 31 + branch: main 32 32 notifications: 33 33 slack: 34 34 secure: aQXFk2/MxX5eR2JM90xWAA9YX03QArY1ejUmnP/NkFHbB4zzKZblACjEeDTDTDCThZpXhrganX2nDWrWFrrXbOG28wKrRhEZSULPAgyiWGpfkMoT44fKmgh+eZ5C/isMF2eeQCrYo3EQCMxfCKxNaBhyLc+jr/Sm232zU2LaXo8=
+2 -2
CHANGELOG.md
··· 406 406 407 407 ### Added 408 408 409 - - 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)) 409 + - 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)) 410 410 411 411 <!-----------------------------------------------------------------------------------------------> 412 412 ··· 728 728 729 729 - `Actor.addChild()` changed to `Actor.add()` ([#519](https://github.com/excaliburjs/Excalibur/issues/519)) 730 730 - `Actor.removeChild()` changed to `Actor.remove()` ([#519](https://github.com/excaliburjs/Excalibur/issues/519)) 731 - - Documentation is only deployed on changes to the master git branch ([#483](https://github.com/excaliburjs/Excalibur/issues/483)) 731 + - Documentation is only deployed on changes to the main git branch ([#483](https://github.com/excaliburjs/Excalibur/issues/483)) 732 732 - A warning message is now displayed if no supported audio format is provided for a browser ([#476](https://github.com/excaliburjs/Excalibur/issues/476)) 733 733 - 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)) 734 734 - Deprecated older methods ([#399](https://github.com/excaliburjs/Excalibur/issues/399))
+2 -2
Excalibur.nuspec
··· 6 6 <version>$version$</version> 7 7 <authors>Excalibur.js</authors> 8 8 <projectUrl>https://github.com/excaliburjs/Excalibur</projectUrl> 9 - <licenseUrl>https://github.com/excaliburjs/Excalibur/master/blob/LICENSE.md</licenseUrl> 10 - <iconUrl>https://raw.github.com/excaliburjs/Excalibur/master/assets/icon.png</iconUrl> 9 + <licenseUrl>https://github.com/excaliburjs/Excalibur/main/blob/LICENSE.md</licenseUrl> 10 + <iconUrl>https://raw.github.com/excaliburjs/Excalibur/main/assets/icon.png</iconUrl> 11 11 <requireLicenseAcceptance>false</requireLicenseAcceptance> 12 12 <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> 13 13 </metadata>
+1 -1
GruntFile.js
··· 30 30 // continuous integration dists 31 31 dist: { 32 32 options: { 33 - branch: 'master', 33 + branch: 'main', 34 34 remote: 'https://github.com/excaliburjs/excalibur-dist', 35 35 login: 'kamranayub', 36 36 token: process.env.GH_DIST_TOKEN,
+3 -3
README.md
··· 1 1 ![Logo](/assets/logo.png?raw=true) 2 2 3 - [![Build Status](https://img.shields.io/travis/excaliburjs/Excalibur/master.svg)](https://travis-ci.org/excaliburjs/Excalibur) 4 - [![Appveyor status](https://img.shields.io/appveyor/ci/eonarheim/excalibur/master.svg)](https://ci.appveyor.com/project/eonarheim/excalibur) 3 + [![Build Status](https://img.shields.io/travis/excaliburjs/Excalibur/main.svg)](https://travis-ci.org/excaliburjs/Excalibur) 4 + [![Appveyor status](https://img.shields.io/appveyor/ci/eonarheim/excalibur/main.svg)](https://ci.appveyor.com/project/eonarheim/excalibur) 5 5 [![Coverage Status](https://coveralls.io/repos/github/excaliburjs/Excalibur/badge.svg)](https://coveralls.io/github/excaliburjs/Excalibur) 6 6 [![npm version](https://img.shields.io/npm/v/excalibur.svg)](https://www.npmjs.com/package/excalibur) 7 7 [![npm downloads](https://img.shields.io/npm/dt/excalibur.svg)](https://www.npmjs.com/package/excalibur) ··· 31 31 # Questions 32 32 33 33 - :question: Ask us anything in the [Excalibur.js forum](https://groups.google.com/forum/#!forum/excaliburjs) 34 - - :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)). 34 + - :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)). 35 35 - :mega: You can also follow us on Twitter [@excaliburjs](http://twitter.com/excaliburjs) or [read the blog](http://blog.excaliburjs.com). 36 36 37 37 # Samples
+40 -38
deploy-docs.js
··· 1 1 var Travis = require('travis-ci'); 2 - var repo = "excaliburjs/excaliburjs.github.io"; 2 + var repo = 'excaliburjs/excaliburjs.github.io'; 3 3 var travis = new Travis({ 4 - version: '2.0.0', 5 - headers: { 6 - 'User-Agent': 'Travis/1.0' 7 - } 4 + version: '2.0.0', 5 + headers: { 6 + 'User-Agent': 'Travis/1.0' 7 + } 8 8 }); 9 9 10 10 var branch = process.env.TRAVIS_BRANCH; 11 11 var tag = process.env.TRAVIS_TAG; 12 - var pr = process.env.TRAVIS_PULL_REQUEST; 12 + var pr = process.env.TRAVIS_PULL_REQUEST; 13 13 14 - if (pr !== "false") { 15 - console.log("Skipping docs deployment, detected pull request"); 16 - return; 14 + if (pr !== 'false') { 15 + console.log('Skipping docs deployment, detected pull request'); 16 + return; 17 17 } 18 18 19 - // build docs for tags and master only 19 + // build docs for tags and main only 20 20 if (tag) { 21 - console.log("Current tag is `" + tag + "`"); 22 - } else if (branch == "master") { 23 - console.log("Current branch is `" + branch + "`"); 21 + console.log('Current tag is `' + tag + '`'); 22 + } else if (branch == 'main') { 23 + console.log('Current branch is `' + branch + '`'); 24 24 } else { 25 - console.log("Current branch is `" + branch + "`, skipping docs deployment..."); 26 - return; 25 + console.log('Current branch is `' + branch + '`, skipping docs deployment...'); 26 + return; 27 27 } 28 28 29 - console.log("Triggering remote build of edge docs..."); 29 + console.log('Triggering remote build of edge docs...'); 30 30 31 - travis.authenticate({ 32 - github_token: process.env.GH_TOKEN 33 - }, 34 - function (err, res) { 31 + travis.authenticate( 32 + { 33 + github_token: process.env.GH_TOKEN 34 + }, 35 + function (err, res) { 36 + if (err) { 37 + return console.error(err); 38 + } 39 + 40 + travis.repos(repo.split('/')[0], repo.split('/')[1]).builds.get(function (err, res) { 35 41 if (err) { 36 - return console.error(err); 42 + return console.error(err); 37 43 } 38 44 39 - travis.repos(repo.split('/')[0], repo.split('/')[1]).builds.get( 40 - function (err, res) { 41 - if (err) { 42 - return console.error(err); 43 - } 44 - 45 - travis.requests.post({ 46 - build_id: res.builds[0].id 47 - }, function (err, res) { 48 - if (err) { 49 - return console.error(err); 50 - } 51 - console.log(res.flash[0].notice); 52 - }); 53 - } 45 + travis.requests.post( 46 + { 47 + build_id: res.builds[0].id 48 + }, 49 + function (err, res) { 50 + if (err) { 51 + return console.error(err); 52 + } 53 + console.log(res.flash[0].notice); 54 + } 54 55 ); 55 - } 56 - ); 56 + }); 57 + } 58 + );