mirror of
https://forge.apps.education.fr/phroy/codetower.git
synced 2024-01-27 11:35:17 +01:00
Code your tower (coding tower defense)
asset | ||
img | ||
AUTHORS.md | ||
codetower-04.blend | ||
codetower-07.blend | ||
codetower-08.blend | ||
codetower-10.blend | ||
codetower-11.blend | ||
codetower-12.blend | ||
codetower-13.blend | ||
codetower-14.blend | ||
codetower-15.blend | ||
codetower-17.blend | ||
codetower-18.blend | ||
codetower-19.blend | ||
codetower-20.blend | ||
ct_cmd-exemple.py | ||
ct_cmd.py | ||
ct_comp.py | ||
ct_config.xml | ||
ct_lib.py | ||
ct_map1.py | ||
ct.py | ||
IDEAS.md | ||
LICENSE | ||
README.md |
CodeTower
Code your tower (coding tower defense)
CodeTower is a Tower Defense coding game where the towers are driven by Python code.
With your code, you can build, remove and upgrade your towers. For each tower, you will be able to choose dynamically most appropriate techno (archer tower) or spell (mage tower).
It's a early prototype. CodeTower is a open source software distributed under the terms of the GPLv3 license. The game engine is Blender - UPGE.
Download
Source repository (Gitlab ) : https://gitlab.com/phroy/codetower
Binaries (GNU/Linux and Windows) : www.phroy.org
Tower commands
-
Build a tower : ct_build (x, y, category, name, color, style)
- x position (integer)
- y position (integer)
- category (string) : "Archer tower", "Mage tower" or "Barrack" (not implemented)
- name (string)
- color (RGB model) : purple, turquoise, magenta, orange, yellow, green, red or [R, G, B, 1]
- style : square or round and version (A,B or C), exemple : 'square-A'
- Return boolean flag
- True : builded with error
- False : not builded (error)
- Exemple : ct_build(1,1, "Archer tower", "Tower #1",yellow,"round-A")
-
Remove a tower : ct_remove (x, y)
- x position (integer)
- y position (integer)
-
Get your level : ct_level ()
- Return your level (integer)
-
Time management (temporization) : ct_sleep (delay)
- delay : delay in seconds (float)