Skip to content
remarkablegamesPublic

About

⚡ ZAG is a tap-to-turn arcade game where you zigzag your way forward!

Topics

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ZAG

ZAG

release build

⚡ ZAG is a tap-to-turn arcade game where you zigzag your way forward!

Play in your browser:

Or download for desktop:

Read the blog post.

How to Play

The ball rolls along a narrow path that zigzags, turning 90 degrees with each line. Tap, click, or press Space to turn.

Time your turn just right. Turn too early or too late, and the ball falls off.

Earn 1 point for each line you cross. The ball speeds up as you play and your high score is saved.

Controls

Turn with:

  • Tap or click
  • Space, Enter, or ↑
  • Gamepad A

Features

  • Procedurally generated paths
  • Mouse, touch, keyboard, and gamepad support
  • Responsive design for desktop and mobile
  • Speed that ramps up as you play
  • A ball with a trail, squash-and-stretch turns, and a fall animation
  • Sound effects for turns, scoring, falling, and game over
  • High score is saved to localStorage
  • Online leaderboard, cloud saves, and achievements on Wavedash

Credits

Prerequisites

nvm:

brew install nvm

Install

Clone the repository:

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

Install the dependencies:

npm install

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

Testing

Cover

Add the cover query parameter to view an animated cover:

http://localhost:5173/?cover

About

⚡ ZAG is a tap-to-turn arcade game where you zigzag your way forward!

Topics

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages