whitesource-bolt-for-github[bot] 97a8c0ffd8 Initial WhiteSource configuration file 6 gadus atpakaļ
maps troops in map for placement 6 gadus atpakaļ
medias man firing when crawl mode 6 gadus atpakaļ
opencombat place troops with troops xml 6 gadus atpakaļ
tests fix tests 6 gadus atpakaļ
.gitignore weapon images 6 gadus atpakaļ
.travis.yml keep testing only linux. Travis fail on osx 6 gadus atpakaļ
.whitesource Initial WhiteSource configuration file 6 gadus atpakaļ
LICENSE Create LICENSE 6 gadus atpakaļ
README.md typo 6 gadus atpakaļ
config.yaml placement with troops 6 gadus atpakaļ
requirements.txt update tmx lib dep 6 gadus atpakaļ
run.py place troops with troops xml 6 gadus atpakaļ
select_troops.py troops in map for placement 6 gadus atpakaļ
test_config.yaml troop selection: dump troop file 6 gadus atpakaļ

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 python3-tk 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

Troops selection

Start troops selection GUI with:

python select_troops.py --country USSR --country DE

Select troops for every countries then generate a troops file.

Troops Placement phase

You must: specify a map and a state and --placement option:

python run.py maps/001 --troops troops.xml --placement

troops.xml must be previously (at Troops selection phase) generated troops file.

Map will be loaded with state file troops and you will be able to move (drag and drop with your mouse) troops.

Press s key will generate a state file in current dir.

Combat phase

You must: specify a map and a state:

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

Map will be loaded with state file troops and you will be able to order them.

Actual keys / Give orders

When unit selected (click with mouse on soldier):

  • r: run
  • c: crouch
  • m: move
  • f: fire (not implemented)

And you can:

  • s: Save current state into OpenCombat dir (or dir specified with --state-save-dir)