Bastien Sevajol e17d0b4f22 troops selection: add remove troop button | 6 лет назад | |
---|---|---|
maps | 6 лет назад | |
medias | 6 лет назад | |
opencombat | 6 лет назад | |
tests | 6 лет назад | |
.gitignore | 6 лет назад | |
.travis.yml | 6 лет назад | |
README.md | 6 лет назад | |
config.yaml | 6 лет назад | |
requirements.txt | 6 лет назад | |
run.py | 6 лет назад | |
select_troops.py | 6 лет назад | |
test_config.yaml | 6 лет назад |
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.
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).
Start troops selection GUI with:
python select_troops.py --country URSS --country DE
You must: specify a map and a state and --placement
option:
python run.py maps/001 --state maps/001/state1.xml --placement
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.
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.
When unit selected (click with mouse on soldier):
r
: runc
: crouchm
: movef
: fire (not implemented)And you can:
s
: Save current state into OpenCombat dir (or dir specified with --state-save-dir
)