Dev 0.1
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user