a tic tac toe webxdc app.
- Multiple games at once
- spectate running games
- rudimentary "Matchmaking"
- Sound (some tone's to test sound)
- add resilience against message loss
- code quality (it's a bit messy for my tastes)
- player-tags are not aligned on long names
- update player names when they change during a game
After cloning this repo for the first time, install dependecies:
npm install
npm run format:check
npm test
type-check the project
npm i -g typescript
tsc --noEmit --allowJs --lib es2015,dom *.js
To test your work in your browser (with hot reloading!) while developing:
npm run dev-mini
# Alternatively to test in a more advanced WebXDC emulator:
npm run dev
To package your WebXDC file:
npm run build
To package your WebXDC with developer tools inside to debug in Delta Chat, set the NODE_ENV
environment variable to "debug":
NODE_ENV=debug npm run build
The resulting optimized .xdc
file is saved in dist-xdc/
folder.
To automatically build and create a new GitHub release with your .xdc
file:
git tag -a v1.0.1
git push origin v1.0.1