Code your tower (coding tower defense)
Go to file
2022-07-10 16:18:18 +02:00
asset Add sounds swith on/switch off 2022-04-22 16:54:49 +02:00
doc update UML model 2022-07-10 16:18:18 +02:00
img Readme update 2022-04-26 12:10:04 +02:00
AUTHORS.md Readme update 2022-04-07 19:12:08 +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
codetower-25.blend wave minion put in cache before steering 2022-07-07 17:49:08 +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 wave minion put in cache before steering 2022-07-07 17:49:08 +02:00
ct_map1.py wave minion put in cache before steering 2022-07-07 17:49:08 +02:00
ct.py wave minion put in cache before steering 2022-07-07 17:49: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 Readme update 2022-04-27 05:02:10 +02:00
UML.xmi update UML model 2022-07-10 16:18:18 +02:00

CodeTower

Code your tower ! (coding tower defense)

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

Stop the minions waves with your favorite editing software !

CodeTower - Gameplay

It's a early prototype.

CodeTower is a open source software distributed under the terms of the GPLv3 license.

The game engine is open source : Blender / UPBGE.

Assets (3D models, sounds, icons) : Kenney and Kaylousberg.

Download

Python script

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

Map commands

The level points will be spent for build or upgrade. So you have to know your level before action.

  • Get your level : ct_level ()

    • Return your level (integer)
  • Time management (temporization) : ct_sleep (delay)

    • delay : duration in seconds (float)

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).

  • 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)