Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cyclic Tag

A real-time pursuit-evasion game built on top of the Game GUI Framework, where you control one of three players locked in a closed chase: each player simultaneously hunts one opponent while fleeing another.

🎮 Play it live

Cyclic Tag screenshot


The Game

Three players are arranged in a cycle: you (blue) chase green, green chases red, and red chases you. Use the arrow keys to control blue.

The game ends the instant any player catches its target. Whoever catches their target wins; whoever gets caught loses; the third player — who didn't catch anyone — also comes away without a win. From your seat as blue:

  • You win — you catch green.
  • You lose — red catches you.
  • You neither win nor lose — green catches red before you catch green; the round ends with neither outcome touching you directly.

Green and red are computer-controlled, each following a simple pursuit/evasion heuristic: move toward its target, away from its predator.


Tech Stack

  • JavaScript — game logic and AI movement, built on the Game GUI Framework
  • HTML / CSS — UI and layout

Running Locally

git clone https://github.com/avikpln/cyclic-tag.git
cd cyclic-tag
open index.html   # or drag into your browser

Project Structure

cyclic-tag/
├── audio/
│   └── stroke.mp3
├── css/
│   └── styles.css
├── images/
│   ├── cover.jpg
│   ├── favicon.ico
│   └── screenshot.png
├── script/
│   ├── game/            # Cyclic Tag game logic
│   │   ├── direction.js
│   │   ├── game.js
│   │   └── position.js
│   ├── gui/             # Graphical user interface
│   │   ├── canvas.js
│   │   ├── displayer.js
│   │   ├── events.js
│   │   ├── gui.js
│   │   └── timer.js
│   ├── lib/             # Shared utilities
│   │   ├── graph.js
│   │   ├── linkedlist.js
│   │   ├── random.js
│   │   └── unionfind.js
│   └── main.js
├── index.html
├── LICENSE
└── README.md

About

Cyclic Tag — a 3-player pursuit-evasion game

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages