Skip to content

2D puzzle game for Android inspired by various shoot 'em up games reduced to a duel of two players and combined with gravity effects (but only for impulses)

License

thewizardplusplus/gravity-duel

Repository files navigation

Gravity Duel

2D puzzle game for Android inspired by various shoot 'em up games reduced to a duel of two players and combined with gravity effects (but only for impulses).

Disclaimer: this game was written directly on an Android smartphone with the QLua IDE and the LÖVE for Android app.

Features

  • entities:
    • the player:
      • the player can only perform one possible action at a time;
      • the possible actions:
        • movement:
          • forward;
          • backward;
          • to the right;
          • to the left;
        • rotation:
          • to the right;
          • to the left;
        • player impulse performing;
    • the target:
      • appearance:
        • at a random point in time;
        • in the segment in front of the player;
      • restricted lifetime:
        • by duration;
        • by quantity of hits of player impulses;
    • the hole:
      • kinds:
        • the black holes;
        • the white holes;
      • appearance:
        • at a random point in time;
        • in the segment in front of the player;
      • restricted lifetime:
        • by duration;
      • change trajectories of player impulses in accordance with gravity effects:
        • the black hole attracts them;
        • the white hole pulls away them;
  • game stats:
    • metrics:
      • current:
        • quantity of performed player impulses;
        • quantity of hit targets;
        • accuracy of player impulses;
        • quantity of destroyed targets;
      • best:
        • accuracy of player impulses;
        • quantity of destroyed targets;
    • storing the game stats in the FlatDB database:
      • save only the best metrics;
      • save only when the best metrics change.

Building

Clone this repository:

$ git clone https://github.com/thewizardplusplus/gravity-duel.git
$ cd gravity-duel

Build the game with the makelove tool:

$ makelove ( win64 | macos | appimage )

Take the required build from the corresponding subdirectory of the created builds directory.

Running

See for details: https://love2d.org/wiki/Getting_Started#Running_Games

On the Android

Clone this repository:

$ git clone https://github.com/thewizardplusplus/gravity-duel.git
$ cd gravity-duel

Make a ZIP archive containing it:

$ git archive --format zip --output gravity_duel.zip HEAD

Change its extension from .zip to .love:

$ mv gravity_duel.zip gravity_duel.love

Transfer the resulting file to the Android device.

Open it with the LÖVE for Android app.

On the PC

Clone this repository:

$ git clone https://github.com/thewizardplusplus/gravity-duel.git
$ cd gravity-duel

Then run the game with the LÖVE engine:

$ love .

Documentation

  • Table of Contents (EN / RU):

License

The MIT License (MIT)

Copyright © 2021-2022 thewizardplusplus

About

2D puzzle game for Android inspired by various shoot 'em up games reduced to a duel of two players and combined with gravity effects (but only for impulses)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages