Skip to content

remarkablegames/linkit

Repository files navigation

Linkit

Linkit

release build

πŸ”΄ Linkit is a puzzle where you connect the dots. Read the blog post.

This game was made for Gamedev.js Jam 2024, which the theme was power.

Play the game on:

Credits

Ideation

Prerequisites

Install

Clone the repository:

git clone https://github.com/remarkablegames/linkit.git
cd linkit

Install the dependencies:

npm install

Environment Variables

Set the environment variables:

less .env

Update the Secrets in the repository Settings.

Available Scripts

In the project directory, you can run:

npm start

Runs the game in the development mode.

Open 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, Newgrounds, etc.

npm run generate-level

Randomly generates a level.

Note

Make sure to playtest the level by appending ?level=<number> to the URL.

Examples

2x2 grid that is filled 100% with 1 color:

npm run generate-level -- --columns=2 --rows=2 --colors=1 --fill=1

Output:

[
  [M, M],
  [M, M],
];

4x4 grid that is filled 50% with 2 colors:

npm run generate-level -- --columns=4 --rows=4 --colors=2 --fill=.5

Output:

[
  [_, _, M, M],
  [_, Y, M, Y],
  [M, _, _, _],
  [Y, _, M, _],
];

License

MIT