Skip to content

Commit

Permalink
Generate rst from org
Browse files Browse the repository at this point in the history
  • Loading branch information
pkulev committed Jan 6, 2025
1 parent bceeae3 commit f318627
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 72 deletions.
72 changes: 0 additions & 72 deletions README.org

This file was deleted.

114 changes: 114 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
=====
Tanki
=====

.. contents::

.. image:: file:https://github.com/pkulev/tanki/blob/main/images/logo.png
:target: logo

Submission for `itch.io <https://itch.io/jam/autumn-lisp-game-jam-2021>`_ Autumn Lisp Game Jam.

Little Flappy Birds inspired game made using ``hy`` lisp, beautiful ``raylib`` and my bad gamedev skills.

1 Installation
--------------

1.1 Development
~~~~~~~~~~~~~~~

Requires ``poetry``, raylib and python3.9+.

.. code:: bash
# clone the sources
git clone [email protected]:pkulev/tanki.git && cd tanki
# install poetry 1.2.0+
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python3 - --preview
# set venv to be in the project root
poetry config virtualenvs.in-project true
# create venv and install project
poetry install
# run
poetry run tanki
# do this if you want to use `poetry exec`
poetry plugin add poetry-exec-plugin
2 Build
-------

2.1 Pyinstaller
~~~~~~~~~~~~~~~

Requires ``poetry-exec-plugin`` (see `1.1 Development`_ section)

.. code:: bash
poetry exec pyinstaller
# run build
poetry exec tanki
3 Controls
----------

.. table::

+---------+---------------+
| Binding | Action |
+=========+===============+
| LSHIFT | jump engine |
+---------+---------------+
| SPACE | Alpha strike |
+---------+---------------+
| ESCAPE | Exit game |
+---------+---------------+
| P | Toggle pause |
+---------+---------------+
| D | Toggle debug |
+---------+---------------+
| R | Restart level |
+---------+---------------+
| M | Toggle music |
+---------+---------------+

4 Assets
--------

- Graphics
Made in Krita.

- Music
Made in `BeepBox <https://www.beepbox.co>`_
`This URL <https://www.beepbox.co/#8n32sbk4l00e0jt1Em0a7g0jj07i0r1o32100T1v1L4u71q1d1f8y4z1C1c0A1F9B4V1Q1003Pdb94E019bT1v3L4u71q1d1f8y4z1C1c0A1F9B4V1Q1003Pdb94E019bT1v3L4u57q1d5f4y4z2C1c0A0F9B4V8Q0040P9900E0111T4v2L4u04q1z6666ji8k8k3jSBKSJJAArriiiiii07JCABrzrrrrrrr00YrkqHrsrrrrjr005zrAqzrjzrrqr1jRjrqGGrrzsrsA099ijrABJJJIAzrrtirqrqjqixzsrAjrqjiqaqqysttAJqjikikrizrHtBJJAzArzrIsRCITKSS099ijrAJS____Qg99habbCAYrDzh00T4v1L4uf0q1z6666ji8k8k3jSBKSJJAArriiiiii07JCABrzrrrrrrr00YrkqHrsrrrrjr005zrAqzrjzrrqr1jRjrqGGrrzsrsA099ijrABJJJIAzrrtirqrqjqixzsrAjrqjiqaqqysttAJqjikikrizrHtBJJAzArzrIsRCITKSS099ijrAJS____Qg99habbCAYrDzh00bcPc0000g810w4h4h008y8y8y8y8i4zh4h4h4h4h44x8M000000000000014h4h4h4h4p23YKqfXGECyeyqECyeyqECydCzMAWpFCCqQWpFDClJ4QhQjl4QhQjl4QhVKQPjdcRXjenJwaqfWW0GxWGWqWGGGWqWMaqfWVdEU1yVlmkoLaGGGxWqWWGGGGWqWZliryuxkTgYyQQvldlltltdtllltdtomqcU0zFCCieCi-CieCq98W98WwdtAtcQOhQOhQPj97jd4At4AttXL8W9FARWc8WpFARMmqAXyBd6j0Aujipiifo8W7d6ll4qqcyw0>`_ is actually contains music.

- Sounds

Thunder
`freesound <https://freesound.org/people/Fission9/sounds/581124/>`_ (`Creative Commons 0 License <https://creativecommons.org/publicdomain/zero/1.0/>`_)

Jetpack
`freesound <https://freesound.org/people/thatjeffcarter/sounds/128075/>`_ (`Attribution License <https://creativecommons.org/licenses/by/3.0/>`_)
I've deleted initial ignition part, modified sound is ``jetpack-cut.wav``.

Rain
`freesound <https://freesound.org/people/InspectorJ/sounds/400402/>`_ (`Attribution License <https://creativecommons.org/licenses/by/3.0/>`_)

Other sounds generated in Bfxr.

5 Screenshots
-------------

.. image:: file:https://github.com/pkulev/tanki/blob/main/images/screenshot1.png
:target: paused
.. image:: file:https://github.com/pkulev/tanki/blob/main/images/screenshot2.png
:target: new score

6 Known bugs
------------

6.1 While holding ``jump engine`` button long enough sound restarts with hearable gap.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Maybe new function in ``raylib`` (``SeekMusicStream``) will fix this, but I can't use it in my version.
This behaviour is very unlikely to show up, because obstacles are close to each other and I restart
jetpack sound on ``jump engine`` key released when it is close to end.

0 comments on commit f318627

Please sign in to comment.