[gd_scene load_steps=6 format=3 uid="uid://b56og44flraar"]

[ext_resource type="Script" path="res://addons/slide_show/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://b811jddpttnt4" path="res://common/components/subtitle/subtitle.tscn" id="5_g5ffp"]

[sub_resource type="CodeHighlighter" id="CodeHighlighter_2654d"]
number_color = Color(0.803922, 0, 0.803922, 1)
symbol_color = Color(0, 0, 1, 1)
function_color = Color(0, 0.615686, 0, 1)
member_variable_color = Color(0.8, 0.5, 0, 1)
keyword_colors = {
"InputEvent": Color(0, 0.4, 0, 1),
"RigidBody2D": Color(0, 0.4, 0, 1),
"String": Color(0, 0.4, 0, 1),
"Vector2": Color(0, 0.4, 0, 1),
"and": Color(1, 0, 0, 1),
"bool": Color(1, 0, 0, 1),
"class": Color(1, 0, 0, 1),
"class_name": Color(1, 0, 0, 1),
"extends": Color(1, 0, 0, 1),
"float": Color(1, 0, 0, 1),
"for": Color(1, 0, 0, 1),
"func": Color(1, 0, 0, 1),
"if": Color(1, 0, 0, 1),
"in": Color(1, 0, 0, 1),
"int": Color(1, 0, 0, 1),
"return": Color(1, 0, 0, 1),
"signal": Color(1, 0, 0, 1),
"var": Color(1, 0, 0, 1)
}

[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" type="CodeEdit" parent="."]
offset_left = 52.0
offset_top = 207.0
offset_right = 1346.0
offset_bottom = 942.0
theme_override_colors/background_color = Color(1, 1, 1, 1)
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 46
text = "func _ready():
	var penguin_speed: float = 40.0 # km/h
	penguin_speed = accelerate(penguin_speed)
	penguin_speed = accelerate(penguin_speed)
	print(\"Tux runs at \", penguin_speed)

func accelerate(initial_speed: float) -> float:
	var new_speed: float = initial_speed + 2.0
	return new_speed"
deselect_on_focus_loss_enabled = false
virtual_keyboard_enabled = false
syntax_highlighter = SubResource("CodeHighlighter_2654d")
gutters_draw_line_numbers = true
indent_use_spaces = true

[node name="Subtitle" parent="." instance=ExtResource("5_g5ffp")]
offset_left = 57.0
offset_top = 952.0
offset_right = 1326.0
offset_bottom = 1083.0
text = "Tux runs at 44"
