(不是这样)小蟒蛇诅咒太空游戏
xoinvader的Python项目详细描述
异能入侵者
尝试使用python创建小型但严肃的游戏 ncurses。
要求
概述
- Python3
- 龙卷风4.x
- ncurses>;=5.9
可选要求(图形)
- pygame>;=1.9.0(pygame.mixer)
- sdl with devel(用于从源代码编译pygame)
- 带有devel的gcc(用于从源代码编译pygame)
- python-devel文件(用于从源代码编译pygame)
(不是这样)小蟒蛇诅咒太空游戏
尝试使用python创建小型但严肃的游戏 ncurses。
# 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
$ 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 testPYTEST_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