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:
@@ -124,6 +124,7 @@ horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="CPUParticles3D" type="CPUParticles3D" parent="." unique_id=1470634574]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.66324395, 0)
|
||||
amount = 5
|
||||
mesh = SubResource("PlaneMesh_0oeag")
|
||||
|
||||
@@ -7,6 +7,7 @@ const POINTER_ACTION_TEXTURE = preload("res://common/icons/hand-finger.svg")
|
||||
@export var pointer_texture_rect : TextureRect
|
||||
|
||||
@export var speed := 4.0
|
||||
@export var gravity_factor = 1.
|
||||
const MOUSE_SENSIVITY = 0.002
|
||||
const RAY_LENGTH = 10.
|
||||
const PUSH_FORCE = 0.6
|
||||
@@ -85,9 +86,11 @@ func _physics_process(delta):
|
||||
else :
|
||||
velocity = Vector3.ZERO
|
||||
|
||||
%CPUParticles3D.emitting = is_on_floor()
|
||||
|
||||
# Add the gravity.
|
||||
if not is_on_floor():
|
||||
velocity += get_gravity() * delta
|
||||
velocity += get_gravity() * gravity_factor * delta
|
||||
|
||||
move_and_slide()
|
||||
for i in get_slide_collision_count():
|
||||
|
||||
Reference in New Issue
Block a user