2D puzzle "Gravity Duel"
Tags: gamedev, indiedev, puzzle, love2d
Published: 2022-12-16 00:08:09

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/75o6vldpetwmusoj6aff.png)

- **Title:** Gravity Duel.
- **Genre:** 2D puzzle.
- **Date of start of work:** Sun Apr 25, 2021.
- **Date of release:** Sat Dec 10, 2022.
- **Developers:** only me.
- **Game engine:** [LÖVE](https://love2d.org/).

**Summary:**

The game field is represented by the player ship, targets, and black and white holes. The player can control the position of his ship and produce the energy pulses. The targets and black and white holes appear at a random location and have a limited lifetime. The black and white holes have gravitational effects on the energy pulses of the player (but **not** on the player ship). The game goal is to hit as many of the targets as possible with the energy pulses.

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

**Controls:**

- movement:
    - upward:
        - via a keyboard: <kbd>W</kbd>;
        - via a mouse/a touchscreen: _left joystick upwards_;
    - downward:
        - via a keyboard: <kbd>S</kbd>;
        - via a mouse/a touchscreen: _left joystick downwards_;
    - to the right:
        - via a keyboard: <kbd>D</kbd>;
        - via a mouse/a touchscreen: _left joystick to the right_;
    - to the left:
        - via a keyboard: <kbd>A</kbd>;
        - via a mouse/a touchscreen: _left joystick to the left_;
- rotation:
    - to the right:
        - via a keyboard: <kbd>Right Arrow</kbd>, <kbd>L</kbd>;
        - via a mouse/a touchscreen: _clockwise rotation of the right joystick_;
    - to the left:
        - via a keyboard: <kbd>Left Arrow</kbd>, <kbd>J</kbd>;
        - via a mouse/a touchscreen: _counterclockwise rotation of the right joystick_;
- production of the energy pulses:
    - 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) (523 KiB): [https://github.com/thewizardplusplus/gravity-duel/releases/download/v1.3.3/gravity-duel.love](https://github.com/thewizardplusplus/gravity-duel/releases/download/v1.3.3/gravity-duel.love)
- Windows (4.09 MiB): [https://github.com/thewizardplusplus/gravity-duel/releases/download/v1.3.3/gravity-duel-win64.zip](https://github.com/thewizardplusplus/gravity-duel/releases/download/v1.3.3/gravity-duel-win64.zip)
- macOS (5.78 MiB): [https://github.com/thewizardplusplus/gravity-duel/releases/download/v1.3.3/gravity-duel-macos.zip](https://github.com/thewizardplusplus/gravity-duel/releases/download/v1.3.3/gravity-duel-macos.zip)
- Linux (in [AppImage](https://appimage.org/) format; 4.13 MiB): [https://github.com/thewizardplusplus/gravity-duel/releases/download/v1.3.3/gravity-duel.AppImage](https://github.com/thewizardplusplus/gravity-duel/releases/download/v1.3.3/gravity-duel.AppImage)

**Source:** [https://github.com/thewizardplusplus/gravity-duel](https://github.com/thewizardplusplus/gravity-duel) (MIT license).