Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rebrand readme to feature new links #43

Merged
merged 1 commit into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ desktop/
.vscode
src-tauri/target/
.replit
replit.nix
replit.nix
/.obsidian
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
> For now, there's links to the Kaboom documentation and examples, but in the future, they will be linked
> to our own site.

[**Kaboom**](https://kaboomjs.com) is a JavaScript library that helps you make games fast and fun!
[**Kaplay**](https://kaplaydocs.pages.dev/) is a JavaScript library that helps you make games fast and fun!

Start playing around with it in the [Kaboom Playground](https://kaboomjs.com/play)
Start playing around with it in the [Kaplayground](https://kaplay.pages.dev/)

## Examples

Expand Down Expand Up @@ -37,7 +37,7 @@ onKeyPress("space", () => {
});
```

Kaboom uses a powerful component system to compose game objects and behaviors.
kaplay uses a powerful component system to compose game objects and behaviors.

```js
// add a game obj to the scene from a list of component
Expand Down Expand Up @@ -119,11 +119,11 @@ Then open http://localhost:5173 and edit `src/game.js`
### Install as NPM Package

```sh
$ npm install kaboom
$ npm install kaplay
```

```js
import kaboom from "kaboom";
import kaboom from "kaplay";

kaboom();

Expand All @@ -136,7 +136,7 @@ add([
also works with CommonJS

```js
const kaboom = require("kaboom");
const kaboom = require("kaplay");
```

Note that you'll need to use a bundler like `esbuild` or `webpack` to use Kaboom with NPM
Expand All @@ -146,7 +146,7 @@ Note that you'll need to use a bundler like `esbuild` or `webpack` to use Kaboom
This exports a global `kaboom` function

```html
<script src="https://unpkg.com/kaboom@3000/dist/kaboom.js"></script>
<script src="https://unpkg.com/kaplay@3001/dist/kaboom.js"></script>
<script>
kaboom()
</script>
Expand All @@ -156,7 +156,7 @@ or use with es modules

```html
<script type="module">
import kaboom from "https://unpkg.com/kaboom@3000/dist/kaboom.mjs"
import kaboom from "https://unpkg.com/kaplay@3001/dist/kaboom.mjs"
kaboom()
</script>
```
Expand All @@ -165,6 +165,7 @@ works all CDNs that supports NPM packages, e.g. jsdelivr, skypack

## Documentation

- **v3001**: https://kaplaydocs.pages.dev/
- **v3000**: https://kaboomjs.com/
- **v2000**: https://2000.kaboomjs.com/
- **v0.5.0**: https://legacy.kaboomjs.com/
Expand All @@ -181,7 +182,7 @@ Check out [CONTRIBUTION.md](CONTRIBUTING.md) for full info.
## Community

- [Discord Server](https://discord.gg/aQ6RuQm3TF)
- [GitHub Discussions](https://github.com/replit/kaboom/discussions)
- [GitHub Discussions](https://github.com/marklovers/kaplay/discussions)
- [Twitter](https://twitter.com/Kaboomjs)

### Games
Expand Down