Code your tower (coding tower defense)
Go to file
Philippe Roy 3ea30d0f5a Bugfix : sound crash on windows -> no music for bill 2022-04-24 16:16:35 +02:00
asset Add sounds swith on/switch off 2022-04-22 16:54:49 +02:00
img Readme update 2022-04-06 22:18:26 +02:00
AUTHORS.md Readme update 2022-04-07 19:12:08 +02:00
IDEAS.md gestion des casts (buff et debuff) 2022-04-01 01:34:54 +02:00
LICENSE ajout de la licence du kaykit dungeon 2022-02-24 15:06:22 +01:00
README.md Bugfix : wave text animation 2022-04-24 03:34:27 +02:00
codetower-20.blend Bugfix : Arrêt des threads lors du stop 2022-04-06 17:28:16 +02:00
codetower-21.blend Readme update 2022-04-12 01:45:23 +02:00
codetower-22.blend Changement de police, ajout de l'aide en ligne (pseudo status bar) 2022-04-16 05:43:32 +02:00
codetower-23.blend Bugfix : sound crash on windows -> no music for bill 2022-04-24 16:16:35 +02:00
ct.py Bugfix : wave text animation 2022-04-24 04:36:43 +02:00
ct_cmd-exemple.py Add graphical mouse 2022-04-11 22:42:09 +02:00
ct_cmd.py Add documentation Book 2022-04-22 02:04:48 +02:00
ct_comp.py Add graphical mouse 2022-04-11 22:42:09 +02:00
ct_config.xml Bugfix : wave text animation 2022-04-24 03:34:27 +02:00
ct_doc.py Add sounds swith on/switch off 2022-04-22 16:54:49 +02:00
ct_lib.py Bugfix : sound crash on windows -> no music for bill 2022-04-24 16:16:35 +02:00
ct_map1.py Add documentation Book 2022-04-22 02:04:48 +02:00

README.md

CodeTower

Code your tower (coding tower defense)

CodeTower is a Tower Defense coding game where the towers are driven by Python code.

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.

Screenshot

Download

Source repository (Gitlab) : https://gitlab.com/phroy/codetower

Binaries (GNU/Linux and Windows) : www.phroy.org

Tower commands

With your Python script, 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).

The Python script is the file ct_cmd.py (in the game folder), you have to edit it with editing software (Spyder, Emacs, Atom, ...).

  • 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 without 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 : duration in seconds (float)