rune

Build multiplayer web games played by millions! 👾 You focus on your game, Rune handles everything else, incl. backend and networking 🚀 Make your game using JavaScript / TypeScript and any frontend web framework such as React, Svelte, Vue, Threejs, PixiJS, Phaser. You can even use plain HTML and CSS. Perfect for web devs interested in gamedev.

MIT License

Downloads
6.8K
Stars
273
Committers
17

Bot releases are hidden (Show)

rune - v1.5.1 (2022-05-05)

Published by bfelbo over 2 years ago

Changes

  • Added better postMessage support with validation.
  • Refactored tests to avoid avoid cluttering global context.
rune - v1.5.0 (2022-05-03)

Published by bfelbo over 2 years ago

Changes

  • Embed event bridge code into the SDK.
  • Remove mockEvents() used for testing.
  • Add CI for testing new PRs.
rune - v1.4.8 (2022-04-13)

Published by bfelbo over 2 years ago

Changes

  • Reset the deterministic random number generator on game restarts.
rune - v1.4.7 (2022-04-04)

Published by bfelbo over 2 years ago

Changes

  • Allow use of localStorage but clear it on load to prevent issues with the games.
rune - v1.4.6 (2022-03-30)

Published by bfelbo over 2 years ago

Changes

  • Refactoring of the build system to support bundling multiple files.
  • Disable localStorage when using the SDK to prevent issues with the games.
rune - v1.4.5 (2022-03-14)

Published by bfelbo over 2 years ago

Changes

  • Fix force overlay dimensions for browser support.
rune - v1.4.4 (2022-03-14)

Published by bfelbo over 2 years ago

Changes

  • Update internal events naming. Used for a better user experience in browsers.
rune - v1.4.3 (2022-03-10)

Published by bfelbo over 2 years ago

Changes

  • Add internal events for a better user experience in browsers.
rune - v1.4.2 (2022-03-04)

Published by bfelbo over 2 years ago

Changes

  • Provide Rune.deterministicRandom() to make it easy for games using randomness to provide the same experience for all players. The random values from deterministicRandom() depend on the challenge number so games can keep providing new exciting experiences.
  • Simplify SDK by removing internal RuneLib. Those methods are now inside the Rune object prefixed with _.
rune - v1.4.1 (2022-02-12)

Published by bfelbo over 2 years ago

Changes

  • Return challenge number as part of SCORE and GAME_SCORE events
  • Simplify the docs and make it more clear that using the challenge number is optional
rune - v1.4.0 (2022-02-09)

Published by bfelbo over 2 years ago

Changes

  • New getChallengeNumber() function to support changing the game content each day (e.g. changing the map)
  • Renaming of internal getScore() function to _getScore() to make it clear that it's not needed for developers using the SDK
rune - v1.3.1 (2021-10-29)

Published by bfelbo almost 3 years ago

Changes

  • Export to es3 to support older devices
rune - v1.2.2 (2021-10-28)

Published by bfelbo almost 3 years ago

Changes

  • Export to es3 to support older devices
rune - v1.3.0 (2021-10-28)

Published by bfelbo almost 3 years ago

Changes

  • Require new getScore function passed to init() for getting the score at any time
rune - v1.2.0 (2021-10-28)

Published by bfelbo almost 3 years ago

Changes

  • Only publish the dist folder
  • Refactoring to clearly separate internal and external-facing code
rune - v1.1.2 (2021-10-25)

Published by bfelbo almost 3 years ago

Changes

  • Send events to Rune to avoid race conditions where Rune and SDK cannot communicate properly.
  • Switch from process.env to globalThis for detecting when running inside Rune.
  • Ease development by detecting multiple calls to init and providing wrong type of input to gameOver({ score }).
rune - v1.1.1 (2021-10-05)

Published by bfelbo about 3 years ago

Changes

  • The game should not start until the SDK has called startGame(). This simplifies the game logic to not needing "tap to start" logic and allows more custom control of game starting logic inside Rune. See https://github.com/rune/rune-games-sdk/pull/8 for more details.
  • The SDK is now attached to the window object when imported using the script tag. See https://github.com/rune/rune-games-sdk/pull/5 for more details.
  • Other minor improvements to documentation etc.
Package Rankings
Top 7.49% on Npmjs.org
Badges
Extracted from project README
Discord Follow
Related Projects