mirror of
https://forge.apps.education.fr/phroy/codetower.git
synced 2024-01-27 11:35:17 +01:00
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
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 <philippe.roy@ac-grenoble.fr>
|
|
# @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)
|