Bastien Sevajol a85615ab5a Merge branch 'master' of https://github.com/buxx/OpenCombat vor 6 Jahren
maps dump subjects + use properties instead side vor 6 Jahren
medias man firing when crawl mode vor 6 Jahren
opencombat Merge branch 'feature/dump_state' vor 6 Jahren
tests save state with S key vor 6 Jahren
.gitignore weapon images vor 7 Jahren
.travis.yml Create .travis.yml vor 7 Jahren
README.md Merge branch 'master' of https://github.com/buxx/OpenCombat vor 6 Jahren
config.yaml save state with S key vor 6 Jahren
requirements.txt Issue #46: write xml file and xsd, begin state loader vor 6 Jahren
run.py save state with S key vor 6 Jahren
test_config.yaml Adopt new move algorithms and add move with rotation vor 6 Jahren

README.md

OpenCombat

Build Status Coverage Status Codacy Badge Known Vulnerabilities

Open source close combat inspired game. Presentation here: http://www.closecombatseries.net/CCS/modules.php?name=Forums&file=viewtopic&t=11696

Important note: OpenCombat is in development and is developed under linux. Windows support is planned but not actually tested.

Install

Tested only under linux, debian/Ubuntu. Before install project, install OS packages:

build-essential libsdl1.2debian libsdl-image1.2 libsdl-image1.2-dev libsdl-ttf2.0-0 libsdl-ttf2.0-dev libsdl-mixer1.2 libsdl-mixer1.2-dev redis-server

Python version: 3.5+

Considering in your virtual environment, install synergine2:

git clone https://github.com/buxx/synergine2.git
cd synergine2
python setup.py develop
pip install -e ".[cocos2d]"

Then install additional or specific version of development environment:

pip install -r requirements.txt

You also need a running redis server (used db number is 0, soon configurable).

Run

Example run:

python run.py maps/001 --state maps/001/state1.xml

Actual keys

When unit selected:

  • R: run
  • C: crouch
  • M: move
  • F: fire (not implemented)
  • S: Save current state into OpenCombat dir (or dir specified with --state-save-dir)