kumarabhirup / center_throw

Official Koji Center Throw Game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Center Throw

Start your day by defending the center!

⚒️ Customizations

Take a look at VCC for customizations.

📖 Notes

Avoid resizing the game window while playing, weird stuff happens.

☕ For developers

For setting scores, use the following code snippet 👇

window.setScore(score)
window.setAppView("setScore")

Similarly, the app view can be set to game, mainMenu and so on.

Develop locally

  • Developing locally on VSCode gives you perks of ESLint and Prettier and having them lint code automatically is fun!

  • Just do git clone <REMOTE_GIT_URL> <PROJECT_NAME>

  • Then do $ npm i in the frontend and backend directories.

  • Now, run the $ env command in the online Koji editor terminal and copy the result.

  • Create .env file in the root directory of the project and paste the content in it. Now, your environment variables will be filled with the necessary tokens needed to run the Leaderboard.

  • Run $ npm start and $ npm run start-dev in the frontend and backend directories respectively.

  • That's how you get your local dev environment.

  • As per now, there are problems with Leaderboard working locally. But you don't have to worry as Leaderboard will always work when you deploy your changes.

Save to GitHub

  • Create a New Repository

  • Run the following commands Local Terminal or on Online Koji Editor terminal

$ git remote add github https://github.com/<GITHUB_USERNAME>/<REPO_NAME>.git
$ git push -u github master
  • And now everytime you make changes, do the following
$ git add .
$ git commit -m "Save changes"
$ git push origin master
$ git push github master
  • On GitHub, for better development processes, you are advised to use Branches and Pull Requests instead of directly commiting to master. Learn more here.

Deploying the changes made locally

  • Run the following commands
$ git add .
$ git commit -m "Save changes"
$ git push origin master
$ git push github master # <- only if you also maintain a GitHub Repository
  • Now open the online Koji Editor and get the changes you made by running the following command 👉 $ git pull origin master

  • To officially deploy your project, you can Publish the project using the Koji GUI.

🤙 Wanna contribute❓

Just shoot a Pull Request at the official GitHub repository of this game 📦

Or follow me and DM on Twitter @kumar_abhirup 🙌

Or hit me up on Koji's official Discord server, username: kumar_abhirup 🌱

📝 Licence

GPL © Kumar Abhirup

Follow me 👋 on TwitterTwitter

Credits for assets

OpenGameArt 👉 https://opengameart.org

If you see your assets being used without your permission, DM me for getting credited or remove the asset altogether!

About

Official Koji Center Throw Game


Languages

Language:JavaScript 83.8%Language:CSS 11.9%Language:HTML 3.5%Language:Dockerfile 0.7%Language:Shell 0.0%