* Structure de l'histoire principale
* Line sur le perso principal
* Agrandissement de la zone de détection des cellules
* Ajout du spray de Talion (+1 points de plante de base)
* Ajout de feedback sur l'usage des cellules d'énergie
This commit is contained in:
2026-07-06 23:05:39 +02:00
parent d0446e8826
commit 22b753c6a9
78 changed files with 1464 additions and 208 deletions

View File

@@ -48,26 +48,26 @@ var data_last_updated = 0.
var plant_grid : PlantGrid
# Cheat Code
# func _input(_e):
# if (
# Input.is_action_pressed("drop")
# and Input.is_action_pressed("move_right")
# and Input.is_action_pressed("move_left")
# and Input.is_action_just_pressed("action")
# ):
# if data.state != RegionData.State.SUCCEEDED:
# data.succeded.emit()
# data.state = RegionData.State.SUCCEEDED
# # data.update()
func _input(_e):
if (
Input.is_action_pressed("drop")
and Input.is_action_pressed("move_right")
and Input.is_action_pressed("move_left")
and Input.is_action_just_pressed("action")
):
if data.state != RegionData.State.SUCCEEDED:
data.succeded.emit()
data.state = RegionData.State.SUCCEEDED
# data.update()
# if (
# Input.is_action_pressed("drop")
# and Input.is_action_pressed("move_right")
# and Input.is_action_pressed("move_left")
# and Input.is_action_just_pressed("move_pointer")
# ):
# data.charges = 0
# data.state = RegionData.State.FAILED
if (
Input.is_action_pressed("drop")
and Input.is_action_pressed("move_right")
and Input.is_action_pressed("move_left")
and Input.is_action_just_pressed("move_pointer")
):
data.charges = 0
data.state = RegionData.State.FAILED
func _init():
data = GameInfo.game_data.current_region_data