# Pandemic

**A roughly designed mini-game without any artwork. You simply control a red dot, and has to evacuate from site A to site B. Don't get caught by the black dots. Note: when you move, the black dot moves, when you stop, the black dot stops too. So make your next move wisely.**

## How to control
- Keyboard - use arrow keys.
- Mouse - drag and move.
- Touchscreen - tap any direction to move.

## System requirement
Any modern web browser which fully supports HTML5 Canvas should be able to run this game. The game has been tested on the latest version of Mozilla Firefox and Google Chrome.

## Abandoned ideas
- Make the zombies (the black dots) move faster than the player in some circumstances. I found it could be frustrating if the player doesn't expect that happens.
- Randomly assign dramatically different behavior/personality to the zombies, not just chase the player or walk around. But it may too depend on luck, confuse the player and not really fun.
- Further reduce the chance that the zombies will run into the 'electric fences', or even completely remove this function. I still prefer to have a way to paralyze the zombies, makes the game easier to play. So the zombies should not be too smart.

## ChangeLog

20241210:
 - Fix the gamepad control issue.

20200507:
 - Implement the optional 'dark mode' in the source code, and this option is not enabled by default. You can press the key 'D' to toggle this option. The idea is come from a potential sequel (*Pandemic II: Dark Territory*). But since I think the current sequel ideas are not good/mature enough to make another game, I decided to put the additional code snippet in this game instead.

20200416:
 - Remove some unnecessary conditions in the mouse/touchscreen code.
 - Add basic gamepad support. Although I only tested it on Linux with a PS3 Dualshock 3 controller. You may have to press any button to activate the controller on the web browser. Then use the first detected analog stick to move.

20200409:
 - The first release.

#### Author: DarkRanger (https://darkranger.no-ip.org)
#### License: MIT License
