This repository has been archived on 2022-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
Tyra/scenes/Joueur.tscn

43 lines
1.3 KiB
Text

[gd_scene load_steps=7 format=2]
[ext_resource path="res://scripts/Joueur.gd" type="Script" id=1]
[ext_resource path="res://assets/sounds/background.wav" type="AudioStream" id=2]
[ext_resource path="res://assets/images/lumiere.png" type="Texture" id=3]
[ext_resource path="res://assets/images/joueur.png" type="Texture" id=4]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 8, 8 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 9, 9 )
[node name="Joueur" type="KinematicBody2D"]
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 4 )
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Area2D"]
shape = SubResource( 2 )
[node name="Camera2D" type="Camera2D" parent="."]
current = true
zoom = Vector2( 0.6, 0.6 )
smoothing_enabled = true
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="Camera2D"]
stream = ExtResource( 2 )
volume_db = -20.0
autoplay = true
[node name="Light2D" type="Light2D" parent="."]
texture = ExtResource( 3 )
energy = 1.5
mode = 2
shadow_enabled = true
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]