amyspark-ng / kaplay-template

0 stars 1 forks source link

Kaplay Template (by amyspark-ng & niceEli)

Template for the web game library KAPLAY, which helps you to make games fast and fun!

It works with vite and tauri for desktop builds

Development

Structure

Building

Setup

  1. Have a pc
  2. Have node downloaded
  3. Have rust downloaded (to use tauri)
  4. Have pnpm downloaded (for managing packages)
  5. Clone this using git clone https://github.com/amyspark-ng/kaplay-template, remember to update the remote if you're planning to use github!
  6. After downloading, do pnpm install on the root of the project on a cmd (command prompt) to install all the dependencies needed for it to work
  7. After that, you're going to do pnpm dev or pnpm web:dev
    ^ pnpm dev for desktop might take a bit the first time
  8. When you're done working, you can do pnpm build or pnpm web:build to build the project
    • WEB: It will be on /dist/, you can zip it (having the index.html on the root) and upload it to itch.io or newgrounds if you wish
    • DESKTOP: It will be on src-tauri/target/release/, only the .exe file is needed to run the game.
      ^ If you want an installer such as msi or nsis they're on src-tauri/target/release/bundle/

^ You can use the vscode tasks i've set up to zip them and send them to /builds/, there's also one for zipping and sending directly to itch.io!

  1. That's it! Happy coding ;)

BIG NOTE:

Desktop builds are 100% safe, don't believe me? You're looking the repository with the source code for the template, and also:

If you want windows defender to not bother you, you'll have to pay a very very expensive fine!!

Other

Game identification:

Dev:


Repost if you dip your  in the wendy's frosty