⚡ 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.
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.
Turn with:
- Tap or click
- Space, Enter, or ↑
- Gamepad A
- 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
nvm:
brew install nvmClone the repository:
git clone https://github.com/remarkablegames/zag.git
cd zagInstall the dependencies:
npm installIn the project directory, you can run:
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.
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!
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.
Add the cover query parameter to view an animated cover:
http://localhost:5173/?cover