Metadata-Version: 2.4
Name: barbariantuw
Version: 0.1.0
Summary: 'Barbarian - The Ultimate Warrior' game clone
Author: Cthulhu Fhtagn
License-Expression: MIT
Project-URL: Homepage, https://codeberg.org/cthulhu/barbarian
Project-URL: Issues, https://codeberg.org/cthulhu/barbarian/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Games/Entertainment
Classifier: Topic :: Games/Entertainment :: Arcade
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pygame-ce
Provides-Extra: dev
Requires-Dist: psutil; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: nuitka; extra == "dev"
Requires-Dist: pygbag; extra == "dev"
Dynamic: license-file

# Barbarian - The Ultimate Warrior

Amiga 500 game remake written in Python and [PyGame CE][0].

![preview](https://codeberg.org/cthulhu/barbarian/raw/branch/master/readme/preview.png)
<video src="https://codeberg.org/cthulhu/barbarian/raw/branch/master/readme/demo.mp4"
       width="640" height="480" controls>
</video>

## Installation

### Linux
Download executable from [releases](https://codeberg.org/cthulhu/barbarian/releases).

### Windows
Download executable from [releases](https://codeberg.org/cthulhu/barbarian/releases).

### PIP
```shell
pip install barbariantuw
```
Launch:
```shell
barbariantuw
```

## Controls

* `ESC` - close window and exit

|           | Player 1             | Player 2 |
|-----------|----------------------|----------|
| **LEFT**  | `Left`, `Numpad 4`   | `J`      |
| **RIGHT** | `Right`, `Numpad 6`  | `L`      |
| **UP**    | `Up`, `Numpad 8`     | `I`      |
| **DOWN**  | `Down`, `Numpad 2`   | `K`      |
| **FIRE**  | `RShift`, `Numpad 0` | `Space`  |

## Credits

* Font "PressStart2P". Thanks very much to [CodeMan38][1] for a fonts.
  Also see [SIL OPEN FONT LICENSE Version 1.1][2]
* Thanks very much to [F.L.][3] for BASIC source code of Barbarian.

## Links

* [PyGame CE][0]
* [F.L. remakes][3]

[0]: https://pyga.me/
[1]: https://github.com/codeman38
[2]: barbariantuw/fnt/OFL.txt?raw=true
[3]: http://barbarian.1987.free.fr/indexEN.htm

## Build

Clone repo:
```shell
$ git clone https://codeberg.org/cthulhu/barbarian.git
```
Create virtual environment:
```shell
$ cd barbarian
$ python3 -m venv .venv
$ source .venv/bin/activate
```
Install dev-dependencies:
```shell
(.venv) $ pip install .[dev]
```

### PIP
Package for pypi.org:
```shell
(.venv) $ python3 -m build
```

### PygBag
WebAssembly zip-archive for itch.io:
```shell
(.venv) $ rm -rf pygbag/barbariantuw/* \
  && cp -r barbariantuw pygbag \
  && pygbag --archive pygbag
```

### Nuitka
Executable:
```shell
(.venv) $ nuitka barbariantuw
```
