diff --git a/.github/workflows/CommentOnIssueClose.yml b/.github/workflows/CommentOnIssueClose.yml new file mode 100644 index 0000000..243a14c --- /dev/null +++ b/.github/workflows/CommentOnIssueClose.yml @@ -0,0 +1,30 @@ +name: Comment on Issue Close + +on: + issues: + types: [closed] + +jobs: + comment: + runs-on: ubuntu-latest + + steps: + - name: Comment on Closed Issue + uses: actions/github-script@v3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const response = await github.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: ` + Thank you for your contribution! If you have any questions or need further assistance, feel free to reach out to us on our Discord server: [Discord](https://discord.gg/rZb46cCMmK). We have separate channels for all projects. Happy coding! 🚀 + + Connect with us on social media: + - **GitHub**: [ChromeGaming](https://github.com/ChromeGaming) + - **LinkedIn**: [ChromeGaming](https://www.linkedin.com/company/chromegaming) + - **Instagram**: [@chromegamingon](https://www.instagram.com/chromegamingon/) + ` + }); + console.log(response); diff --git a/404.html b/404.html new file mode 100644 index 0000000..c502870 --- /dev/null +++ b/404.html @@ -0,0 +1,77 @@ + + + + + + 404:Page not found + + + + +
+ 404 pic + +
+ + + \ No newline at end of file diff --git a/404pic2.png b/404pic2.png new file mode 100644 index 0000000..8b9891f Binary files /dev/null and b/404pic2.png differ diff --git a/PACKABUNCHAS b/PACKABUNCHAS new file mode 160000 index 0000000..80f5105 --- /dev/null +++ b/PACKABUNCHAS @@ -0,0 +1 @@ +Subproject commit 80f51050e5022be2b17afa57a6646b2205926786 diff --git a/README.md b/README.md index 9e679a4..b760f1d 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ # Game Description 🎮 - To every game enthusiast, here in PACKBUNCHES you are spacey, a group of space rangers specialised in packing and rescuing cretures around the galaxy! This is a stimulating brain game Built using core tech-stacks HTML and JavaScript that requires strategy and spatial intelligence. Players must strategically drag different shaped pieces onto the spaceship grid and aim to save the creatures! 🚀 + To every game enthusiast, here in PACKABUNCHAS you are spacey, a group of space rangers specialised in packing and rescuing cretures around the galaxy! This is a stimulating brain game Built using core tech-stacks HTML and JavaScript that requires strategy and spatial intelligence. Players must strategically drag different shaped pieces onto the spaceship grid and aim to save the creatures! 🚀 ### Features 📃 diff --git a/game.js b/game.js index fe6e1af..57a917a 100644 --- a/game.js +++ b/game.js @@ -3914,3 +3914,10 @@ function applyGradient() { document.querySelector('.content').style.background = `linear-gradient(${direction}, ${color1}, ${color2})`; toggleGradientSelector(); // Close the selector container after applying the gradient } + +// Function to display instructions + +document.querySelector('.instructions').addEventListener('click', () => { + const instructionsBox = document.getElementById('instructionsBox'); + instructionsBox.style.display = instructionsBox.style.display === 'none' || instructionsBox.style.display === '' ? 'block' : 'none'; +}); \ No newline at end of file diff --git a/index.html b/index.html index 4d710cf..0a41a8a 100644 --- a/index.html +++ b/index.html @@ -1,9 +1,14 @@ + PACKABUNCHAS - + +
- + +
+
+ +
- - - - - - + + + + - + +
+
+

Game Instructions

+

Welcome to the game! Here are the instructions:

+
- -
- + \ No newline at end of file