Code your tower (coding tower defense)
Go to file
Philippe Roy 76188446ce Migration de Forge AEIF -> Forge Apps.education 2024-01-21 17:02:51 +01:00
asset Add new function cards 2022-07-29 03:51:06 +02:00
doc Mise à jour de la convention de nommage des fonctions 2022-07-13 01:10:27 +02:00
img Migration de Forge AEIF -> Forge Apps.education 2024-01-21 16:58:13 +01:00
AUTHORS.md Move hud icons to the hud directory 2022-07-21 16:29:55 +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 Migration de Forge AEIF -> Forge Apps.education 2024-01-21 17:02:51 +01:00
UML.xmi Put kills into the pool 2022-07-21 00:13:52 +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
codetower-27.blend Mise à jour de la convention de nommage des fonctions 2022-07-13 01:10:27 +02:00
codetower-33.blend Hud en mode overlay 2022-07-17 14:50:46 +02:00
codetower-34.blend Tower bullet with 3d object and physic (not finished, bugged) 2022-07-20 00:18:04 +02:00
codetower-35.blend bullet et cast en 3D 2022-07-21 04:26:36 +02:00
codetower-36.blend Visualisation fixed in blender 2022-08-18 16:47:39 +02:00
codetower.png Ajout de l'icône 2023-07-15 23:56:46 +02:00
ct.py Add new function description 2022-07-31 04:10:28 +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 Visualisation fixed in blender 2022-08-18 16:47:39 +02:00
ct_doc.py Visualisation fixed in blender 2022-08-18 16:47:39 +02:00
ct_lib.py Add new function description 2022-07-31 04:10:28 +02:00
ct_map1.py Add new function description 2022-07-31 04:10:28 +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.

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)

Source repository

The sources files are in the "The Forge of Digital Educational Commons" repository with the personal projet Philippe Roy / CodeTower : https://forge.apps.education.fr/phroy/codetower .