Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/remarkablegames/code-arcade

🕹ī¸ Learn how to program with Code Arcade
https://github.com/remarkablegames/code-arcade

arcade code educational-game game javascript kaboomjs learning puzzle

Last synced: about 22 hours ago
JSON representation

🕹ī¸ Learn how to program with Code Arcade

Awesome Lists containing this project

README

        


Code Arcade

# Code Arcade

![release](https://img.shields.io/github/v/release/remarkablegames/code-arcade)
[![build](https://github.com/remarkablegames/code-arcade/actions/workflows/build.yml/badge.svg)](https://github.com/remarkablegames/code-arcade/actions/workflows/build.yml)

🕹ī¸ Learn how to program with Code Arcade.

Play the game on:

- [remarkablegames](https://remarkablegames.org/code-arcade)
- [itch.io](https://remarkablegames.itch.io/code-arcade)
- [newgrounds](https://www.newgrounds.com/portal/view/934247)

Read the [blog post](https://remarkablegames.org/posts/code-arcade/).

## Credits

- Assets from [Kaboom](https://kaboomjs.com/)
- Editor from [CodeMirror](https://codemirror.net/)
- Inspired by [Untrusted](https://alexnisnevich.github.io/untrusted/)

## Prerequisites

- [nvm](https://github.com/nvm-sh/nvm#readme)

## Install

Clone the repository:

```sh
git clone https://github.com/remarkablegames/code-arcade.git
cd code-arcade
```

Use the Node.js version:

```sh
nvm use
```

Install the dependencies:

```sh
npm install
```

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the game in the development mode.

Open [http://localhost:5173](http://localhost:5173) to view it in the browser.

The page will reload if you make edits.

You will also see any errors in the console.

### `npm run build`

Builds the game for production to the `dist` folder.

It correctly bundles in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

Your game is ready to be deployed!

### `npm run bundle`

Builds the game and packages it into a Zip file in the `dist` folder.

Your game can be uploaded to your server, [Itch.io](https://itch.io/), [Newgrounds](https://www.newgrounds.com/), etc.

### `npm run increment-levels`

Increments a level and renames the file:

```sh
npm run increment-levels -- --level=
```

## License

[MIT](LICENSE)