12345678910111213141516171819202122232425262728293031323334353637 |
- [gd_scene load_steps=5 format=3 uid="uid://cmwicqr38kp2v"]
- [ext_resource type="Script" path="res://projector/slide/Slide.gd" id="1_kycmz"]
- [ext_resource type="Texture2D" uid="uid://jjrdfilvox4o" path="res://icon.svg" id="2_jaaua"]
- [ext_resource type="PackedScene" uid="uid://bvrtmyq4g1qes" path="res://common/components/title/title.tscn" id="3_lmauo"]
- [ext_resource type="PackedScene" uid="uid://dogtm6fdbp3wl" path="res://common/components/gdedit/GdScriptEdit.tscn" id="4_ia6x0"]
- [node name="ScriptControl" type="Node2D"]
- script = ExtResource("1_kycmz")
- [node name="Sprite2D" type="Sprite2D" parent="."]
- position = Vector2(1626, 652)
- scale = Vector2(2, 2)
- texture = ExtResource("2_jaaua")
- [node name="Title" parent="." instance=ExtResource("3_lmauo")]
- offset_left = 85.0
- offset_top = 26.0
- offset_right = 1847.0
- offset_bottom = 194.0
- text = "Les structures de contrôle"
- [node name="GdScriptEdit" parent="." instance=ExtResource("4_ia6x0")]
- offset_left = 58.0
- offset_top = 268.0
- offset_right = 1435.0
- offset_bottom = 1050.0
- text = "func _ready():
- var penguin_speed: float = 40.0 # km/h
- for increment in range(4):
- penguin_speed = accelerate(penguin_speed)
- if penguin_speed > 100:
- print(\"Tux flies!\")
- func accelerate(initial_speed: float) -> float:
- var new_speed: float = initial_speed + 2.0
- return new_speed"
|