diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..4d339b4 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,30 @@ +name-template: 'v$RESOLVED_VERSION 🌈' +tag-template: 'v$RESOLVED_VERSION' +categories: + - title: '🚀 Features' + labels: + - 'feature' + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '🧰 Maintenance' + label: 'chore' +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + patch: + labels: + - 'patch' + default: patch +template: | + ## Changes + + $CHANGES diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..cd460e0 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,19 @@ +name: Release Drafter + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - main + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into ${{ branches }} from above. + - uses: release-drafter/release-drafter@v5 + with: + # Specify config name to use, relative to .github/. + config-name: release-drafter.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..44b4b8c --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,5 @@ +* @ROMANIUKNATALIA @MATHTEACH-STAR +#/.github/ @ROMANIUKNATALIA +#/.github/CODEOWNERS @MATHTEACH-STAR +#*CODEOWNERS @MATHTEACH-STAR +*.js @MATHTEACH-STAR diff --git a/README.md b/README.md index fd8da0a..e4f4798 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,9 @@ A project based learning activity for people who are getting started with Git and GitHub. -You can play the game at: https://githubschool.github.io/github-games/ +You can play the game at (new URL444 from git): https://github.com/RomaniukNatalia/github-games >> _*SUPPORTED BROWSERS*: Chrome, Firefox, Safari, Opera and IE9+_ This fun open source game was cloned from: https://github.com/jakesgordon/javascript-tetris +Modified during a training by @RomaniukNatalia diff --git a/texture.jpg b/images/texture.jpg similarity index 100% rename from texture.jpg rename to images/texture.jpg diff --git a/inde.html b/index.html similarity index 98% rename from inde.html rename to index.html index 87e71f8..2d3ec5b 100644 --- a/inde.html +++ b/index.html @@ -6,7 +6,7 @@ body { font-family: Helvetica, sans-serif; } #tetris { margin: 1em auto; padding: 1em; border: 4px solid black; border-radius: 10px; background-color: #F8F8F8; } #stats { display: inline-block; vertical-align: top; } - #canvas { display: inline-block; vertical-align: top; background: url(texture.jpg); box-shadow: 10px 10px 10px #999; border: 2px solid #333; } + #canvas { display: inline-block; vertical-align: top; background: url(images/texture.jpg); box-shadow: 10px 10px 10px #999; border: 2px solid #333; } #menu { display: inline-block; vertical-align: top; position: relative; } #menu p { margin: 0.5em 0; text-align: center; } #menu p a { text-decoration: none; color: black; } @@ -75,7 +75,7 @@ ctx = canvas.getContext('2d'), ucanvas = get('upcoming'), uctx = ucanvas.getContext('2d'), - speed = { start: 0.6, decrement: 0.005, min: 0.1 }, // how long before piece drops by 1 row (seconds) + speed = { start: 0.6, decrement: 0.025, min: 0.1 }, // how long before piece drops by 1 row (seconds) nx = 10, // width of tetris court (in blocks) ny = 20, // height of tetris court (in blocks) nu = 5; // width/height of upcoming preview (in blocks) @@ -113,13 +113,13 @@ // //------------------------------------------------------------------------- - var i = { size: 4, blocks: [0x0F00, 0x2222, 0x00F0, 0x4444], color: 'purple' }; - var j = { size: 3, blocks: [0x44C0, 0x8E00, 0x6440, 0x0E20], color: 'pink' }; - var l = { size: 3, blocks: [0x4460, 0x0E80, 0xC440, 0x2E00], color: 'salmon' }; - var o = { size: 2, blocks: [0xCC00, 0xCC00, 0xCC00, 0xCC00], color: 'lime' }; - var s = { size: 3, blocks: [0x06C0, 0x8C40, 0x6C00, 0x4620], color: 'teal' }; - var t = { size: 3, blocks: [0x0E40, 0x4C40, 0x4E00, 0x4640], color: 'coral' }; - var z = { size: 3, blocks: [0x0C60, 0x4C80, 0xC600, 0x2640], color: 'olive' }; + var i = { size: 4, blocks: [0x0F00, 0x2222, 0x00F0, 0x4444], color: 'blue' }; + var j = { size: 3, blocks: [0x44C0, 0x8E00, 0x6440, 0x0E20], color: 'red' }; + var l = { size: 3, blocks: [0x4460, 0x0E80, 0xC440, 0x2E00], color: 'green' }; + var o = { size: 2, blocks: [0xCC00, 0xCC00, 0xCC00, 0xCC00], color: 'yellow' }; + var s = { size: 3, blocks: [0x06C0, 0x8C40, 0x6C00, 0x4620], color: 'gray' }; + var t = { size: 3, blocks: [0x0E40, 0x4C40, 0x4E00, 0x4640], color: 'braun' }; + var z = { size: 3, blocks: [0x0C60, 0x4C80, 0xC600, 0x2640], color: 'black' }; //------------------------------------------------ // do the bit manipulation and iterate through each