Code your tower (coding tower defense)
Go to file
2022-04-12 01:45:23 +02:00
asset modification du about 2022-04-03 21:15:43 +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
codetower-04.blend ajout des scripts/threads vagues et commandes, la manipulation 3D et le mode construction 2022-03-11 00:21:00 +01:00
codetower-07.blend ajout des scripts/threads vagues et commandes, la manipulation 3D et le mode construction 2022-03-11 00:21:00 +01:00
codetower-08.blend ajout des compteurs 2022-03-13 05:41:11 +01:00
codetower-10.blend ajout de la pause/vitesse, navmesh complet, sortie du parcour 2022-03-20 05:57:07 +01:00
codetower-11.blend information sur tour, tour erreur 2022-03-23 00:27:11 +01:00
codetower-12.blend ajout des minions (orc, mage, archer), des towers 2022-03-25 01:56:02 +01:00
codetower-13.blend animation des tours avec draw (sans objet 3d) 2022-03-27 10:28:03 +02:00
codetower-14.blend ajout de la bannière de fin 2022-03-29 14:16:16 +02:00
codetower-15.blend refonte de la gestion des vagues 2022-03-30 03:10:33 +02:00
codetower-17.blend ajout du paysage 2022-03-31 18:26:55 +02:00
codetower-18.blend gestion des casts (buff et debuff) 2022-04-01 01:34:54 +02:00
codetower-19.blend Bugfix : Near du end, crash avec le importlib.reload -> runpy 2022-04-06 06:25:03 +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
ct_cmd-exemple.py Add graphical mouse 2022-04-11 22:42:09 +02:00
ct_cmd.py Add graphical mouse 2022-04-11 22:42:09 +02:00
ct_comp.py Add graphical mouse 2022-04-11 22:42:09 +02:00
ct_config.xml Bugfix : Near du end, crash avec le importlib.reload -> runpy 2022-04-06 06:25:03 +02:00
ct_lib.py Add graphical mouse 2022-04-11 22:42:09 +02:00
ct_map1.py Add graphical mouse 2022-04-11 22:42:09 +02:00
ct.py Readme update 2022-04-12 01:45:23 +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 Readme update 2022-04-12 00:23:06 +02:00

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 : delay in seconds (float)