Skip to main content

(not so) small python curses space game

Project description

Build Status codecov.io

XOInvader

Attempt to create small but serious game using python and ncurses.

Requirements

General

  • Python3

  • Tornado 4.x

  • ncurses >=5.9

Optional requirements (for graphics)

  • Pygame >=1.9.0 (pygame.Mixer)

  • SDL with devel (for compiling pygame from sources)

  • gcc with devel (for compiling pygame from sources)

  • python devel files (for compiling pygame from sources)

Development

Installation

# install virtualenv
$ make devel
$ source .venv/bin/activate
$ pip install -e .

$ xoigame  # ASCII with sound (Pygame.Mixer required)
$ xoigame -ns  # ASCII without sound (pygame not required)
$ xoigame -vd pygame-sdl  # Pygame-based version

Testing

$ make test  # for all tests
$ make view_cov  # run all tests and view coverage
$ # pass additional arguments to pytest via PYTEST_ARGS env variable
$ # you can pass args such way to test and view_cov make targets
$ make test PYTEST_ARGS='-m "not slow"'  # don't run slow tests
$ py.test --markers  # show all markers
$ py.test xoinvader/path/to/test_file.py  # run separate file

Documentation

  • Autogenerated from sources here.

  • Development wiki.

  • Build documentation from sources:

    $ make docs
    $ make view_docs  # build and open in firefox

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xoinvader-0.1.3.tar.gz (159.5 kB view details)

Uploaded Source

Built Distribution

xoinvader-0.1.3-py3-none-any.whl (179.4 kB view details)

Uploaded Python 3

File details

Details for the file xoinvader-0.1.3.tar.gz.

File metadata

  • Download URL: xoinvader-0.1.3.tar.gz
  • Upload date:
  • Size: 159.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.7.6 Linux/5.4.16-gentoo

File hashes

Hashes for xoinvader-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4635570be348a7e782502d8c228e734370d1a976105f86ac462149a2ce5b67a8
MD5 86f601da4655a481905406950d20c546
BLAKE2b-256 d9c489afae7cd989fbb80e4e3e7636ac86a2226f120f01e812c30489795bdc78

See more details on using hashes here.

File details

Details for the file xoinvader-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: xoinvader-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 179.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.7.6 Linux/5.4.16-gentoo

File hashes

Hashes for xoinvader-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3d4adc0813a863a15c356878e505a13187f3273052bc0c302792908c98d6f66d
MD5 ba3cc4074df168e3f33676b0316c0b9e
BLAKE2b-256 62092ebd85d8913bbac5a350afc9c6baa7093217446ff210af9cca343344f789

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page