Skip to content

Cthulhu2/barbarian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

244 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Barbarian - The Ultimate Warrior

Amiga 500 game remake written in Python and PyGame CE.

preview

Installation

Linux

Download executable from releases.

Windows

Download executable from releases.

PIP

pip install barbariantuw

Launch:

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

Links

Build

Clone repo:

$ git clone https://codeberg.org/cthulhu/barbarian.git

Create virtual environment:

$ cd barbarian
$ python3 -m venv .venv
$ source .venv/bin/activate

Install dev-dependencies:

(.venv) $ pip install .[dev]

PIP

Package for pypi.org:

(.venv) $ python3 -m build

PygBag

WebAssembly zip-archive for itch.io:

(.venv) $ rm -rf pygbag/barbariantuw/* \
  && cp -r barbariantuw pygbag \
  && pygbag --archive pygbag

Nuitka

To reduce output filesize use virtual environment with nuitka package only.

$ python3 -m venv .venv-nuitka
$ source .venv-nuitka/bin/activate
(.venv-nuitka) $ pip install .[nuitka]

Executable:

(.venv-nuitka) $ python3 -m build_nuitka

Profiling

Memory:

(.venv) $ rm barbariantuw.bin
(.venv) $ python3 -m memray run -o barbariantuw.bin -m barbariantuw
(.venv) $ python3 -m memray flamegraph barbariantuw.bin
(.venv) $ <browser> memray-flamegraph-barbariantuw.html

NOTE: memray not available on Windows

CPU:

(.venv) $ python -m cProfile -o barbariantuw.prof -m barbariantuw
(.venv) $ snakeviz barbariantuw.prof

About

'Barbarian -- The Ultimate Warrior' game clone in Python and PyGame.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages