2D puzzle "Biohazard"
Tags: gamedev, indiedev, puzzle, love2d
Published: 2021-12-04 04:04:31

Here is a technical demo of my game. It lacks a menu and any settings, and the graphics are highly sketchy. My main goal was to test the idea of the gameplay.

![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sgf0kt8m1gnl9jfmmx76.png)

- **Title:** Biohazard.
- **Genre:** 2D puzzle.
- **Date of start of work:** Tue Jul 21, 2020.
- **Date of release:** Tue Apr 20, 2021.
- **Developers:** only me.
- **Game engine:** [LÖVE](https://love2d.org/).

**Summary:**

The game field is represented by a set of **blue** cells. Above them, there is the second layer of **green** cells. The player can control this group — move, rotate, and put it with the blue cells (only on the free spaces). After merging, the cells evolve according to the rules of the ["Life"](https://en.wikipedia.org/wiki/Conway's_Game_of_Life) game for one generation, then new green cells are created. The player's goal is to minimize the amount of blue cells.

**Description:** [https://github.com/thewizardplusplus/biohazard/blob/master/docs/gameplay.md](https://github.com/thewizardplusplus/biohazard/blob/master/docs/gameplay.md).

**Controls:**

- movement:
    - to the left:
        - via a keyboard: <kbd>Left Arrow</kbd>, <kbd>A</kbd>;
        - via a mouse/a touchscreen: <kbd><</kbd>;
    - to the right:
        - via a keyboard: <kbd>Right Arrow</kbd>, <kbd>D</kbd>;
        - via a mouse/a touchscreen: <kbd>></kbd>;
    - upward:
        - via a keyboard: <kbd>Up Arrow</kbd>, <kbd>W</kbd>;
        - via a mouse/a touchscreen: <kbd>^</kbd>;
    - downward:
        - via a keyboard: <kbd>Down Arrow</kbd>, <kbd>S</kbd>;
        - via a mouse/a touchscreen: <kbd>v</kbd>;
- rotation:
    - via a keyboard: <kbd>Left Shift</kbd>, <kbd>Right Shift</kbd>, <kbd>R</kbd>, <kbd>E</kbd>;
    - via a mouse/a touchscreen: <kbd>@</kbd>;
- merging with the primary field:
    - via a keyboard: <kbd>Enter</kbd>, <kbd>Space</kbd>;
    - via a mouse/a touchscreen: <kbd>+</kbd>.

**Builds:**

- [LÖVE game file](https://love2d.org/wiki/L%C3%96VE_Game_File) (348 KiB): [https://github.com/thewizardplusplus/biohazard/releases/download/v1.6.4/biohazard.love](https://github.com/thewizardplusplus/biohazard/releases/download/v1.6.4/biohazard.love)
- Windows (4.04 MiB): [https://github.com/thewizardplusplus/biohazard/releases/download/v1.6.4/biohazard-win64.zip](https://github.com/thewizardplusplus/biohazard/releases/download/v1.6.4/biohazard-win64.zip)
- macOS (5.61 MiB): [https://github.com/thewizardplusplus/biohazard/releases/download/v1.6.4/biohazard-macos.zip](https://github.com/thewizardplusplus/biohazard/releases/download/v1.6.4/biohazard-macos.zip)
- Linux (in [AppImage](https://appimage.org/) format; 4.09 MiB): [https://github.com/thewizardplusplus/biohazard/releases/download/v1.6.4/biohazard.AppImage](https://github.com/thewizardplusplus/biohazard/releases/download/v1.6.4/biohazard.AppImage)

**Source:**

- this game (MIT license): [https://github.com/thewizardplusplus/biohazard](https://github.com/thewizardplusplus/biohazard)
- the library that implements the business logic of this game (MIT license): [https://github.com/thewizardplusplus/biohazardcore](https://github.com/thewizardplusplus/biohazardcore)
- the library that implements the ["Life"](https://en.wikipedia.org/wiki/Conway's_Game_of_Life) game (MIT license): [https://github.com/thewizardplusplus/lualife](https://github.com/thewizardplusplus/lualife)