123456789101112131415161718192021222324252627282930313233 |
- [gd_scene load_steps=5 format=3 uid="uid://b56og44flraar"]
- [ext_resource type="Script" path="res://projector/slide/Slide.gd" id="1_orknp"]
- [ext_resource type="Texture2D" uid="uid://3i6oj4q3qeam" path="res://slides/272/VisualShaderNodeFloatFunc.svg" id="2_kg7eu"]
- [ext_resource type="PackedScene" uid="uid://bvrtmyq4g1qes" path="res://common/components/title/title.tscn" id="3_erhoj"]
- [ext_resource type="PackedScene" uid="uid://dogtm6fdbp3wl" path="res://common/components/gdedit/GdScriptEdit.tscn" id="4_ai8iv"]
- [node name="ScriptFunc" type="Node2D"]
- script = ExtResource("1_orknp")
- [node name="Sprite2D" type="Sprite2D" parent="."]
- position = Vector2(1607, 612)
- scale = Vector2(2, 2)
- texture = ExtResource("2_kg7eu")
- [node name="Title" parent="." instance=ExtResource("3_erhoj")]
- offset_left = 85.0
- offset_top = 26.0
- offset_right = 1847.0
- offset_bottom = 194.0
- text = "Les fonctions"
- [node name="GdScriptEdit" parent="." instance=ExtResource("4_ai8iv")]
- offset_right = 1403.0
- offset_bottom = 1033.0
- text = "func _ready():
- var penguin_speed: float = 40.0 # km/h
- penguin_speed = accelerate(penguin_speed)
- penguin_speed = accelerate(penguin_speed)
- func accelerate(initial_speed: float) -> float:
- var new_speed: float = initial_speed + 2.0
- return new_speed"
|