update
This commit is contained in:
parent
8c8ad0d451
commit
4d17c3399f
3 changed files with 21 additions and 5 deletions
|
@ -3,15 +3,14 @@
|
||||||
[ext_resource path="res://assets/images/balle.png" type="Texture" id=1]
|
[ext_resource path="res://assets/images/balle.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://scripts/Balle.gd" type="Script" id=2]
|
[ext_resource path="res://scripts/Balle.gd" type="Script" id=2]
|
||||||
|
|
||||||
|
[sub_resource type="RectangleShape2D" id=1]
|
||||||
[sub_resource type="RectangleShape2D" id=2]
|
|
||||||
extents = Vector2( 4, 1.5 )
|
extents = Vector2( 4, 1.5 )
|
||||||
|
|
||||||
[node name="Area2D" type="Area2D"]
|
[node name="Area2D" type="Area2D"]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
shape = SubResource( 2 )
|
shape = SubResource( 1 )
|
||||||
|
|
||||||
[node name="Sprite" type="Sprite" parent="."]
|
[node name="Sprite" type="Sprite" parent="."]
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource( 1 )
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
[ext_resource path="res://assets/images/mechant.png" type="Texture" id=1]
|
[ext_resource path="res://assets/images/mechant.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://scripts/Ennemi.gd" type="Script" id=2]
|
[ext_resource path="res://scripts/Ennemi.gd" type="Script" id=2]
|
||||||
|
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=1]
|
[sub_resource type="RectangleShape2D" id=1]
|
||||||
extents = Vector2( 6.5, 6.5 )
|
extents = Vector2( 6.5, 6.5 )
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=11 format=2]
|
[gd_scene load_steps=14 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://assets/images/joueur.png" type="Texture" id=1]
|
[ext_resource path="res://assets/images/joueur.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://scripts/Joueur.gd" type="Script" id=2]
|
[ext_resource path="res://scripts/Joueur.gd" type="Script" id=2]
|
||||||
|
@ -7,6 +7,8 @@
|
||||||
[ext_resource path="res://scenes/mur.tres" type="TileSet" id=5]
|
[ext_resource path="res://scenes/mur.tres" type="TileSet" id=5]
|
||||||
[ext_resource path="res://assets/images/lumiere.png" type="Texture" id=6]
|
[ext_resource path="res://assets/images/lumiere.png" type="Texture" id=6]
|
||||||
[ext_resource path="res://assets/sounds/background.wav" type="AudioStream" id=7]
|
[ext_resource path="res://assets/sounds/background.wav" type="AudioStream" id=7]
|
||||||
|
[ext_resource path="res://assets/images/sortie.png" type="Texture" id=8]
|
||||||
|
[ext_resource path="res://scripts/PortailDeFin.gd" type="Script" id=9]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=1]
|
[sub_resource type="RectangleShape2D" id=1]
|
||||||
extents = Vector2( 8, 8 )
|
extents = Vector2( 8, 8 )
|
||||||
|
@ -17,6 +19,9 @@ extents = Vector2( 9, 9 )
|
||||||
[sub_resource type="CanvasItemMaterial" id=3]
|
[sub_resource type="CanvasItemMaterial" id=3]
|
||||||
light_mode = 2
|
light_mode = 2
|
||||||
|
|
||||||
|
[sub_resource type="CircleShape2D" id=4]
|
||||||
|
radius = 35.9876
|
||||||
|
|
||||||
[node name="Monde" type="Node2D"]
|
[node name="Monde" type="Node2D"]
|
||||||
|
|
||||||
[node name="Joueur" type="KinematicBody2D" parent="."]
|
[node name="Joueur" type="KinematicBody2D" parent="."]
|
||||||
|
@ -168,4 +173,17 @@ tile_data = PoolIntArray( -1376258, 0, 0, -1376257, 0, 0, -1441792, 0, 0, -14417
|
||||||
|
|
||||||
[node name="CanvasModulate" type="CanvasModulate" parent="."]
|
[node name="CanvasModulate" type="CanvasModulate" parent="."]
|
||||||
color = Color( 0.27451, 0.27451, 0.27451, 1 )
|
color = Color( 0.27451, 0.27451, 0.27451, 1 )
|
||||||
|
|
||||||
|
[node name="Portail de fin" type="Area2D" parent="."]
|
||||||
|
script = ExtResource( 9 )
|
||||||
|
|
||||||
|
[node name="Sprite" type="Sprite" parent="Portail de fin"]
|
||||||
|
position = Vector2( 1150, 860 )
|
||||||
|
scale = Vector2( 1.5, 1.5 )
|
||||||
|
texture = ExtResource( 8 )
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Portail de fin"]
|
||||||
|
position = Vector2( 1150, 860 )
|
||||||
|
shape = SubResource( 4 )
|
||||||
[connection signal="body_entered" from="Joueur/Area2D" to="Joueur" method="_on_Area2D_body_entered"]
|
[connection signal="body_entered" from="Joueur/Area2D" to="Joueur" method="_on_Area2D_body_entered"]
|
||||||
|
[connection signal="body_entered" from="Portail de fin" to="Portail de fin" method="_on_Portail_de_fin_body_entered"]
|
||||||
|
|
Reference in a new issue