import bge # Bibliothèque Blender Game Engine (UPBGE) from ct_lib import * # Bibliothèque CodeTower ############################################################################### # ct_map.py # @title: Map definition # @project: CodeTower # @lang: fr,en # @authors: Philippe Roy # @copyright: Copyright (C) 2022 Philippe Roy # @license: GNU GPL # # This game is a tower defense coding game. The towers are driven with Python code. # # The file is the the waves definition # ############################################################################### ############################################################################### # Carte 1 ############################################################################### def map1_init(): # Taille de la carte scene.objects['Terrain']['taille'] = [-15,15,-10,10] # Navmesh scene.objects['Terrain']['navmesh'] = "Navmesh.004" # Ajout des sorties scene.objects['Terrain']['endtile'] = "tile_straight.036" ct_map_end(1,-10) ct_map_endflag(0.5,-10) ct_map_endflag(1.5,-10)