From 322035d047f45bb245d97e98f22f3e95a6c00ba3 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 7 Apr 2021 18:52:42 +0200 Subject: [PATCH] moving to assets folder --- {images => assets/images}/Batiment.png | 0 {images => assets/images}/Fond.png | 0 {images => assets/images}/Lumière.png | 0 {images => assets/images}/balle.png | 0 {images => assets/images}/joueur.png | 0 {images => assets/images}/mechant.png | 0 scenes/Balle.tscn | 2 +- scenes/Ennemi.tscn | 2 +- scenes/Monde.tscn | 13 +++++++++---- scenes/mur.tres | 2 +- scenes/mur.tscn | 2 +- 11 files changed, 13 insertions(+), 8 deletions(-) rename {images => assets/images}/Batiment.png (100%) rename {images => assets/images}/Fond.png (100%) rename {images => assets/images}/Lumière.png (100%) rename {images => assets/images}/balle.png (100%) rename {images => assets/images}/joueur.png (100%) rename {images => assets/images}/mechant.png (100%) diff --git a/images/Batiment.png b/assets/images/Batiment.png similarity index 100% rename from images/Batiment.png rename to assets/images/Batiment.png diff --git a/images/Fond.png b/assets/images/Fond.png similarity index 100% rename from images/Fond.png rename to assets/images/Fond.png diff --git a/images/Lumière.png b/assets/images/Lumière.png similarity index 100% rename from images/Lumière.png rename to assets/images/Lumière.png diff --git a/images/balle.png b/assets/images/balle.png similarity index 100% rename from images/balle.png rename to assets/images/balle.png diff --git a/images/joueur.png b/assets/images/joueur.png similarity index 100% rename from images/joueur.png rename to assets/images/joueur.png diff --git a/images/mechant.png b/assets/images/mechant.png similarity index 100% rename from images/mechant.png rename to assets/images/mechant.png diff --git a/scenes/Balle.tscn b/scenes/Balle.tscn index 2d50348..16f768f 100644 --- a/scenes/Balle.tscn +++ b/scenes/Balle.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=4 format=2] -[ext_resource path="res://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] [sub_resource type="RectangleShape2D" id=2] diff --git a/scenes/Ennemi.tscn b/scenes/Ennemi.tscn index 9440357..519ad22 100644 --- a/scenes/Ennemi.tscn +++ b/scenes/Ennemi.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=5 format=2] -[ext_resource path="res://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] [sub_resource type="RectangleShape2D" id=1] diff --git a/scenes/Monde.tscn b/scenes/Monde.tscn index 496e22c..6179b7e 100644 --- a/scenes/Monde.tscn +++ b/scenes/Monde.tscn @@ -1,11 +1,12 @@ -[gd_scene load_steps=10 format=2] +[gd_scene load_steps=11 format=2] -[ext_resource path="res://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://scenes/Ennemi.tscn" type="PackedScene" id=3] -[ext_resource path="res://images/Fond.png" type="Texture" id=4] +[ext_resource path="res://assets/images/Fond.png" type="Texture" id=4] [ext_resource path="res://scenes/mur.tres" type="TileSet" id=5] -[ext_resource path="res://images/Lumière.png" type="Texture" id=6] +[ext_resource path="res://assets/images/Lumière.png" type="Texture" id=6] +[ext_resource path="res://assets/sounds/background.wav" type="AudioStream" id=7] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 8, 8 ) @@ -163,4 +164,8 @@ tile_data = PoolIntArray( -1376258, 0, 0, -1376257, 0, 0, -1441792, 0, 0, -14417 [node name="CanvasModulate" type="CanvasModulate" parent="."] color = Color( 0.27451, 0.27451, 0.27451, 1 ) + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = ExtResource( 7 ) +autoplay = true [connection signal="body_entered" from="Joueur/Area2D" to="Joueur" method="_on_Area2D_body_entered"] diff --git a/scenes/mur.tres b/scenes/mur.tres index 020b420..defa5c8 100644 --- a/scenes/mur.tres +++ b/scenes/mur.tres @@ -1,6 +1,6 @@ [gd_resource type="TileSet" load_steps=4 format=2] -[ext_resource path="res://images/Batiment.png" type="Texture" id=1] +[ext_resource path="res://assets/images/Batiment.png" type="Texture" id=1] [sub_resource type="OccluderPolygon2D" id=1] polygon = PoolVector2Array( -8.00226, -7.97379, -7.99188, 7.99426, 8.00321, 7.99426, 8.01305, -8.00083 ) diff --git a/scenes/mur.tscn b/scenes/mur.tscn index 9ff6f60..5df15c8 100644 --- a/scenes/mur.tscn +++ b/scenes/mur.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=4 format=2] -[ext_resource path="res://images/Batiment.png" type="Texture" id=1] +[ext_resource path="res://assets/images/Batiment.png" type="Texture" id=1] [sub_resource type="RectangleShape2D" id=2] extents = Vector2( 8, 8 )