This repository has been archived on 2023-05-28. You can view files and clone it, but cannot push or open issues or pull requests.
YokaiSurvive/GODOT/Main.tscn

90 lines
3.1 KiB
Text
Raw Normal View History

2021-01-03 11:05:02 +01:00
[gd_scene load_steps=12 format=2]
[ext_resource path="res://Player.tscn" type="PackedScene" id=1]
[ext_resource path="res://Main.gd" type="Script" id=2]
[ext_resource path="res://Ennemi.tscn" type="PackedScene" id=3]
[ext_resource path="res://Menu.tscn" type="PackedScene" id=4]
[ext_resource path="res://imgs/background.png" type="Texture" id=5]
[ext_resource path="res://sounds/music_background.wav" type="AudioStream" id=6]
[ext_resource path="res://sounds/gameover.wav" type="AudioStream" id=7]
[ext_resource path="res://Coin.tscn" type="PackedScene" id=8]
[ext_resource path="res://Vie.tscn" type="PackedScene" id=9]
[ext_resource path="res://sounds/pickupcoin.wav" type="AudioStream" id=10]
[sub_resource type="Curve2D" id=1]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, -1.09833, -1.42838, 0, 0, 0, 0, 480, 0, 0, 0, 0, 0, 480, 720, 0, 0, 0, 0, 0, 720, 0, 0, 0, 0, -1.09833, -1.42838 )
}
[node name="Main" type="Node"]
script = ExtResource( 2 )
Ennemi = ExtResource( 3 )
Coin = ExtResource( 8 )
[node name="TextureRect" type="TextureRect" parent="."]
margin_right = 480.0
margin_bottom = 720.0
texture = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Joueur" parent="." instance=ExtResource( 1 )]
[node name="TimerEnnemi" type="Timer" parent="."]
wait_time = 0.2
[node name="TimerScore" type="Timer" parent="."]
[node name="TimerDebut" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="TimerCoin" type="Timer" parent="."]
wait_time = 5.0
[node name="TimerIsostasieVie" type="Timer" parent="."]
one_shot = true
[node name="PositionDebut" type="Position2D" parent="."]
position = Vector2( 240, 320 )
[node name="Path2D" type="Path2D" parent="."]
curve = SubResource( 1 )
[node name="SpawnEnnemi" type="PathFollow2D" parent="Path2D"]
position = Vector2( -1.09833, -1.42838 )
rotation = 0.00296902
[node name="Menu" parent="." instance=ExtResource( 4 )]
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )
volume_db = -24.233
[node name="AudioGameOver" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 7 )
[node name="Vie" parent="." instance=ExtResource( 9 )]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -72.5
margin_top = -36.0
margin_right = -35.5
margin_bottom = -27.0
[node name="AudioPiece" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 10 )
volume_db = 3.0
[connection signal="perdu" from="Joueur" to="." method="perdu"]
[connection signal="piece" from="Joueur" to="." method="piece"]
[connection signal="touche" from="Joueur" to="." method="_on_Joueur_touche"]
[connection signal="timeout" from="TimerEnnemi" to="." method="_on_TimerEnnemi_timeout"]
[connection signal="timeout" from="TimerScore" to="." method="_on_TimerScore_timeout"]
[connection signal="timeout" from="TimerDebut" to="." method="_on_TimerDebut_timeout"]
[connection signal="timeout" from="TimerCoin" to="." method="_on_TimerCoin_timeout"]
[connection signal="lancement_partie" from="Menu" to="." method="nouvelle_partie"]
[connection signal="musicoff" from="Menu" to="." method="_on_Menu_musicoff"]