Skip to content

js13kGames/laser-pointer-cat

 
 

Repository files navigation

Laser Pointer Cat

This game is an unfinished demo made for the js13kGames 2025 jam, WebXR category, using PlayCanvas.

The project base was generated from https://github.com/svntax/js13k-webpack-typescript-playcanvas-starter

Below is the original README.

Purpose

The purpose of this project is to help make building JS13k projects easier for folks who are familiar with the JavaScript ecosystem but don't want to go through the hassle of setting up a JS13k-specific build environment. The bulk of this project is a Webpack config that does the following:

  • Transpiles TypeScript (if any)
  • Minifies the resulting JavaScript
  • Inlines the JavaScript into an index.html file (in production)
  • Zips the index.html file
  • Checks that the zip file is under 13k
  • Runs webpack-bundle-analyzer

Requirements

The commands assume Node and NPM are installed.

Commands

npm install

Installs dependencies.

npm start

Starts webpack-dev-server at http://0.0.0.0:8081. You should be able to access the server on your mobile device from your home network by going to your computer's IP address (e.g. http://192.168.0.2:8081).

npm run build

Builds, minifies, and inlines the game to ./dist/index.html. This command also runs webpack-bundle-analyzer, and places the report in ./dist/report.html. This report may be handy in figuring out which of your source files is putting you over the edge of 13k.

npm run party

Builds, minifies, inlines, and zips the game to ./zipped/game.zip. This command finishes with a log message letting you know if the zip file is under 13k.

Notes

  • Put your TS or JS in src/index.ts
  • Put your css in src/index.html
  • Put your images or other assets in assets/
  • This starter uses Roadroller to pack the js

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.9%
  • JavaScript 7.2%
  • HTML 0.9%