Browse Source

added mini game sprites

Nabzzz 5 months ago
parent
commit
f2bbe20b61

+ 2
- 0
mini-game/MiniGame.tscn View File

@@ -21,6 +21,8 @@ position = Vector2( 2015.43, 970.395 )
21 21
 
22 22
 [node name="player2" parent="." instance=ExtResource( 3 )]
23 23
 position = Vector2( 183.674, 888.367 )
24
+jump_vitesse = 1100.0
25
+gravite = 45.0
24 26
 
25 27
 [node name="scoreUI" parent="." instance=ExtResource( 7 )]
26 28
 

BIN
mini-game/ressources/sprites/bonus/oreille.png View File


+ 34
- 0
mini-game/ressources/sprites/bonus/oreille.png.import View File

@@ -0,0 +1,34 @@
1
+[remap]
2
+
3
+importer="texture"
4
+type="StreamTexture"
5
+path="res://.import/oreille.png-f2d272746fa193d0fca41873050731b0.stex"
6
+metadata={
7
+"vram_texture": false
8
+}
9
+
10
+[deps]
11
+
12
+source_file="res://mini-game/ressources/sprites/bonus/oreille.png"
13
+dest_files=[ "res://.import/oreille.png-f2d272746fa193d0fca41873050731b0.stex" ]
14
+
15
+[params]
16
+
17
+compress/mode=0
18
+compress/lossy_quality=0.7
19
+compress/hdr_mode=0
20
+compress/bptc_ldr=0
21
+compress/normal_map=0
22
+flags/repeat=0
23
+flags/filter=true
24
+flags/mipmaps=false
25
+flags/anisotropic=false
26
+flags/srgb=2
27
+process/fix_alpha_border=true
28
+process/premult_alpha=false
29
+process/HDR_as_SRGB=false
30
+process/invert_color=false
31
+stream=false
32
+size_limit=0
33
+detect_3d=true
34
+svg/scale=1.0

BIN
mini-game/ressources/sprites/bonus/peinture.png View File


+ 34
- 0
mini-game/ressources/sprites/bonus/peinture.png.import View File

@@ -0,0 +1,34 @@
1
+[remap]
2
+
3
+importer="texture"
4
+type="StreamTexture"
5
+path="res://.import/peinture.png-d607dd013e8469f4842977e676b5514a.stex"
6
+metadata={
7
+"vram_texture": false
8
+}
9
+
10
+[deps]
11
+
12
+source_file="res://mini-game/ressources/sprites/bonus/peinture.png"
13
+dest_files=[ "res://.import/peinture.png-d607dd013e8469f4842977e676b5514a.stex" ]
14
+
15
+[params]
16
+
17
+compress/mode=0
18
+compress/lossy_quality=0.7
19
+compress/hdr_mode=0
20
+compress/bptc_ldr=0
21
+compress/normal_map=0
22
+flags/repeat=0
23
+flags/filter=true
24
+flags/mipmaps=false
25
+flags/anisotropic=false
26
+flags/srgb=2
27
+process/fix_alpha_border=true
28
+process/premult_alpha=false
29
+process/HDR_as_SRGB=false
30
+process/invert_color=false
31
+stream=false
32
+size_limit=0
33
+detect_3d=true
34
+svg/scale=1.0

BIN
mini-game/ressources/sprites/bonus/telephonebrillant.png View File


+ 34
- 0
mini-game/ressources/sprites/bonus/telephonebrillant.png.import View File

@@ -0,0 +1,34 @@
1
+[remap]
2
+
3
+importer="texture"
4
+type="StreamTexture"
5
+path="res://.import/telephonebrillant.png-c2bf9c2f77603d032a8b74079a0b8d89.stex"
6
+metadata={
7
+"vram_texture": false
8
+}
9
+
10
+[deps]
11
+
12
+source_file="res://mini-game/ressources/sprites/bonus/telephonebrillant.png"
13
+dest_files=[ "res://.import/telephonebrillant.png-c2bf9c2f77603d032a8b74079a0b8d89.stex" ]
14
+
15
+[params]
16
+
17
+compress/mode=0
18
+compress/lossy_quality=0.7
19
+compress/hdr_mode=0
20
+compress/bptc_ldr=0
21
+compress/normal_map=0
22
+flags/repeat=0
23
+flags/filter=true
24
+flags/mipmaps=false
25
+flags/anisotropic=false
26
+flags/srgb=2
27
+process/fix_alpha_border=true
28
+process/premult_alpha=false
29
+process/HDR_as_SRGB=false
30
+process/invert_color=false
31
+stream=false
32
+size_limit=0
33
+detect_3d=true
34
+svg/scale=1.0

BIN
mini-game/ressources/sprites/obstacle/dessin.png View File


+ 34
- 0
mini-game/ressources/sprites/obstacle/dessin.png.import View File

@@ -0,0 +1,34 @@
1
+[remap]
2
+
3
+importer="texture"
4
+type="StreamTexture"
5
+path="res://.import/dessin.png-8c2ac0e6c14733182e75b2dfeb0ee1de.stex"
6
+metadata={
7
+"vram_texture": false
8
+}
9
+
10
+[deps]
11
+
12
+source_file="res://mini-game/ressources/sprites/obstacle/dessin.png"
13
+dest_files=[ "res://.import/dessin.png-8c2ac0e6c14733182e75b2dfeb0ee1de.stex" ]
14
+
15
+[params]
16
+
17
+compress/mode=0
18
+compress/lossy_quality=0.7
19
+compress/hdr_mode=0
20
+compress/bptc_ldr=0
21
+compress/normal_map=0
22
+flags/repeat=0
23
+flags/filter=true
24
+flags/mipmaps=false
25
+flags/anisotropic=false
26
+flags/srgb=2
27
+process/fix_alpha_border=true
28
+process/premult_alpha=false
29
+process/HDR_as_SRGB=false
30
+process/invert_color=false
31
+stream=false
32
+size_limit=0
33
+detect_3d=true
34
+svg/scale=1.0

BIN
mini-game/ressources/sprites/obstacle/telephoneconférence.png View File


+ 34
- 0
mini-game/ressources/sprites/obstacle/telephoneconférence.png.import View File

@@ -0,0 +1,34 @@
1
+[remap]
2
+
3
+importer="texture"
4
+type="StreamTexture"
5
+path="res://.import/telephoneconférence.png-d66222ccce62dddf3b35154365531d21.stex"
6
+metadata={
7
+"vram_texture": false
8
+}
9
+
10
+[deps]
11
+
12
+source_file="res://mini-game/ressources/sprites/obstacle/telephoneconférence.png"
13
+dest_files=[ "res://.import/telephoneconférence.png-d66222ccce62dddf3b35154365531d21.stex" ]
14
+
15
+[params]
16
+
17
+compress/mode=0
18
+compress/lossy_quality=0.7
19
+compress/hdr_mode=0
20
+compress/bptc_ldr=0
21
+compress/normal_map=0
22
+flags/repeat=0
23
+flags/filter=true
24
+flags/mipmaps=false
25
+flags/anisotropic=false
26
+flags/srgb=2
27
+process/fix_alpha_border=true
28
+process/premult_alpha=false
29
+process/HDR_as_SRGB=false
30
+process/invert_color=false
31
+stream=false
32
+size_limit=0
33
+detect_3d=true
34
+svg/scale=1.0

BIN
mini-game/ressources/sprites/obstacle/telephoneflamme.png View File


+ 34
- 0
mini-game/ressources/sprites/obstacle/telephoneflamme.png.import View File

@@ -0,0 +1,34 @@
1
+[remap]
2
+
3
+importer="texture"
4
+type="StreamTexture"
5
+path="res://.import/telephoneflamme.png-755fe5060fdf5745db3a73a7fa8d76f6.stex"
6
+metadata={
7
+"vram_texture": false
8
+}
9
+
10
+[deps]
11
+
12
+source_file="res://mini-game/ressources/sprites/obstacle/telephoneflamme.png"
13
+dest_files=[ "res://.import/telephoneflamme.png-755fe5060fdf5745db3a73a7fa8d76f6.stex" ]
14
+
15
+[params]
16
+
17
+compress/mode=0
18
+compress/lossy_quality=0.7
19
+compress/hdr_mode=0
20
+compress/bptc_ldr=0
21
+compress/normal_map=0
22
+flags/repeat=0
23
+flags/filter=true
24
+flags/mipmaps=false
25
+flags/anisotropic=false
26
+flags/srgb=2
27
+process/fix_alpha_border=true
28
+process/premult_alpha=false
29
+process/HDR_as_SRGB=false
30
+process/invert_color=false
31
+stream=false
32
+size_limit=0
33
+detect_3d=true
34
+svg/scale=1.0

+ 25
- 0
mini-game/scenes/bonuses/bonus3.tscn View File

@@ -0,0 +1,25 @@
1
+[gd_scene load_steps=5 format=2]
2
+
3
+[ext_resource path="res://mini-game/scripts/bonus1.gd" type="Script" id=1]
4
+[ext_resource path="res://mini-game/ressources/sprites/bonus/oreille.png" type="Texture" id=2]
5
+[ext_resource path="res://mini-game/scenes/effets/pick_bonus.tscn" type="PackedScene" id=3]
6
+
7
+[sub_resource type="RectangleShape2D" id=1]
8
+extents = Vector2( 44.6127, 47.0458 )
9
+
10
+[node name="bonus3" type="Node2D"]
11
+script = ExtResource( 1 )
12
+
13
+[node name="Sprite" type="Sprite" parent="."]
14
+position = Vector2( 0.627587, -14.6332 )
15
+scale = Vector2( 0.101666, 0.101666 )
16
+texture = ExtResource( 2 )
17
+
18
+[node name="pick_bonus" parent="." instance=ExtResource( 3 )]
19
+
20
+[node name="CollisionShape2D" type="CollisionShape2D" parent="pick_bonus"]
21
+position = Vector2( 1.00113, -11.3461 )
22
+shape = SubResource( 1 )
23
+
24
+[node name="notifier" type="VisibilityNotifier2D" parent="."]
25
+[connection signal="body_entered" from="pick_bonus" to="." method="_on_pick_bonus_body_entered"]

+ 25
- 0
mini-game/scenes/bonuses/bonus4.tscn View File

@@ -0,0 +1,25 @@
1
+[gd_scene load_steps=5 format=2]
2
+
3
+[ext_resource path="res://mini-game/scripts/bonus1.gd" type="Script" id=1]
4
+[ext_resource path="res://mini-game/ressources/sprites/bonus/telephonebrillant.png" type="Texture" id=2]
5
+[ext_resource path="res://mini-game/scenes/effets/pick_bonus.tscn" type="PackedScene" id=3]
6
+
7
+[sub_resource type="RectangleShape2D" id=1]
8
+extents = Vector2( 25.9386, 54.0271 )
9
+
10
+[node name="bonus4" type="Node2D"]
11
+script = ExtResource( 1 )
12
+
13
+[node name="Sprite" type="Sprite" parent="."]
14
+position = Vector2( -0.453356, -18.8551 )
15
+scale = Vector2( 0.0729584, 0.0729585 )
16
+texture = ExtResource( 2 )
17
+
18
+[node name="pick_bonus" parent="." instance=ExtResource( 3 )]
19
+
20
+[node name="CollisionShape2D" type="CollisionShape2D" parent="pick_bonus"]
21
+position = Vector2( -0.594162, -14.2551 )
22
+shape = SubResource( 1 )
23
+
24
+[node name="notifier" type="VisibilityNotifier2D" parent="."]
25
+[connection signal="body_entered" from="pick_bonus" to="." method="_on_pick_bonus_body_entered"]

+ 28
- 0
mini-game/scenes/bonuses/bonus5.tscn View File

@@ -0,0 +1,28 @@
1
+[gd_scene load_steps=5 format=2]
2
+
3
+[ext_resource path="res://mini-game/scripts/bonus1.gd" type="Script" id=1]
4
+[ext_resource path="res://mini-game/ressources/sprites/bonus/peinture.png" type="Texture" id=2]
5
+[ext_resource path="res://mini-game/scenes/effets/pick_bonus.tscn" type="PackedScene" id=3]
6
+
7
+[sub_resource type="RectangleShape2D" id=1]
8
+extents = Vector2( 30.5774, 94.4143 )
9
+
10
+[node name="bonus5" type="Node2D"]
11
+script = ExtResource( 1 )
12
+__meta__ = {
13
+"_edit_horizontal_guides_": [ -97.9765 ]
14
+}
15
+
16
+[node name="Sprite" type="Sprite" parent="."]
17
+position = Vector2( 0.0226159, -21.252 )
18
+scale = Vector2( 0.101622, 0.101622 )
19
+texture = ExtResource( 2 )
20
+
21
+[node name="pick_bonus" parent="." instance=ExtResource( 3 )]
22
+
23
+[node name="CollisionShape2D" type="CollisionShape2D" parent="pick_bonus"]
24
+position = Vector2( -0.759476, -7.68111 )
25
+shape = SubResource( 1 )
26
+
27
+[node name="notifier" type="VisibilityNotifier2D" parent="."]
28
+[connection signal="body_entered" from="pick_bonus" to="." method="_on_pick_bonus_body_entered"]

+ 25
- 0
mini-game/scenes/obstacles/obstacle3.tscn View File

@@ -0,0 +1,25 @@
1
+[gd_scene load_steps=5 format=2]
2
+
3
+[ext_resource path="res://mini-game/scripts/obstacle1.gd" type="Script" id=1]
4
+[ext_resource path="res://mini-game/ressources/sprites/obstacle/telephoneconférence.png" type="Texture" id=2]
5
+[ext_resource path="res://mini-game/scenes/effets/collision_obstacle.tscn" type="PackedScene" id=3]
6
+
7
+[sub_resource type="RectangleShape2D" id=1]
8
+extents = Vector2( 25.3346, 58.4363 )
9
+
10
+[node name="obstacle3" type="Node2D"]
11
+script = ExtResource( 1 )
12
+
13
+[node name="Sprite" type="Sprite" parent="."]
14
+position = Vector2( 1.45743, -10.024 )
15
+scale = Vector2( 0.0703989, 0.0703989 )
16
+texture = ExtResource( 2 )
17
+
18
+[node name="collision_obstacle" parent="." instance=ExtResource( 3 )]
19
+
20
+[node name="CollisionShape2D" type="CollisionShape2D" parent="collision_obstacle"]
21
+position = Vector2( -1.33633, 0 )
22
+shape = SubResource( 1 )
23
+
24
+[node name="notifier" type="VisibilityNotifier2D" parent="."]
25
+[connection signal="body_entered" from="collision_obstacle" to="." method="_on_collision_obstacle_body_entered"]

+ 25
- 0
mini-game/scenes/obstacles/obstacle4.tscn View File

@@ -0,0 +1,25 @@
1
+[gd_scene load_steps=5 format=2]
2
+
3
+[ext_resource path="res://mini-game/scripts/obstacle1.gd" type="Script" id=1]
4
+[ext_resource path="res://mini-game/ressources/sprites/obstacle/telephoneflamme.png" type="Texture" id=2]
5
+[ext_resource path="res://mini-game/scenes/effets/collision_obstacle.tscn" type="PackedScene" id=3]
6
+
7
+[sub_resource type="RectangleShape2D" id=1]
8
+extents = Vector2( 24.4662, 65.2837 )
9
+
10
+[node name="obstacle4" type="Node2D"]
11
+script = ExtResource( 1 )
12
+
13
+[node name="Sprite" type="Sprite" parent="."]
14
+position = Vector2( 0.832382, -16.9321 )
15
+scale = Vector2( 0.0711866, 0.0711866 )
16
+texture = ExtResource( 2 )
17
+
18
+[node name="collision_obstacle" parent="." instance=ExtResource( 3 )]
19
+
20
+[node name="CollisionShape2D" type="CollisionShape2D" parent="collision_obstacle"]
21
+position = Vector2( 1.08099, -1.5749 )
22
+shape = SubResource( 1 )
23
+
24
+[node name="notifier" type="VisibilityNotifier2D" parent="."]
25
+[connection signal="body_entered" from="collision_obstacle" to="." method="_on_collision_obstacle_body_entered"]

+ 28
- 0
mini-game/scenes/obstacles/obstacle5.tscn View File

@@ -0,0 +1,28 @@
1
+[gd_scene load_steps=5 format=2]
2
+
3
+[ext_resource path="res://mini-game/scripts/obstacle1.gd" type="Script" id=1]
4
+[ext_resource path="res://mini-game/ressources/sprites/obstacle/dessin.png" type="Texture" id=2]
5
+[ext_resource path="res://mini-game/scenes/effets/collision_obstacle.tscn" type="PackedScene" id=3]
6
+
7
+[sub_resource type="RectangleShape2D" id=1]
8
+extents = Vector2( 25.9509, 82.5121 )
9
+
10
+[node name="obstacle5" type="Node2D"]
11
+script = ExtResource( 1 )
12
+__meta__ = {
13
+"_edit_horizontal_guides_": [  ]
14
+}
15
+
16
+[node name="Sprite" type="Sprite" parent="."]
17
+position = Vector2( -0.582159, -32.5956 )
18
+scale = Vector2( 0.073, 0.073 )
19
+texture = ExtResource( 2 )
20
+
21
+[node name="collision_obstacle" parent="." instance=ExtResource( 3 )]
22
+
23
+[node name="CollisionShape2D" type="CollisionShape2D" parent="collision_obstacle"]
24
+position = Vector2( -1.05112, 3.99426 )
25
+shape = SubResource( 1 )
26
+
27
+[node name="notifier" type="VisibilityNotifier2D" parent="."]
28
+[connection signal="body_entered" from="collision_obstacle" to="." method="_on_collision_obstacle_body_entered"]

+ 8
- 2
mini-game/scenes/spawner/spawner.tscn View File

@@ -1,14 +1,20 @@
1
-[gd_scene load_steps=6 format=2]
1
+[gd_scene load_steps=12 format=2]
2 2
 
3 3
 [ext_resource path="res://mini-game/scripts/spawner.gd" type="Script" id=1]
4 4
 [ext_resource path="res://mini-game/scenes/obstacles/obstacle1.tscn" type="PackedScene" id=2]
5 5
 [ext_resource path="res://mini-game/scenes/bonuses/bonus1.tscn" type="PackedScene" id=3]
6 6
 [ext_resource path="res://mini-game/scenes/bonuses/bonus2.tscn" type="PackedScene" id=4]
7 7
 [ext_resource path="res://mini-game/scenes/obstacles/obstacle2.tscn" type="PackedScene" id=5]
8
+[ext_resource path="res://mini-game/scenes/obstacles/obstacle3.tscn" type="PackedScene" id=6]
9
+[ext_resource path="res://mini-game/scenes/bonuses/bonus4.tscn" type="PackedScene" id=7]
10
+[ext_resource path="res://mini-game/scenes/obstacles/obstacle4.tscn" type="PackedScene" id=8]
11
+[ext_resource path="res://mini-game/scenes/bonuses/bonus5.tscn" type="PackedScene" id=9]
12
+[ext_resource path="res://mini-game/scenes/obstacles/obstacle5.tscn" type="PackedScene" id=10]
13
+[ext_resource path="res://mini-game/scenes/bonuses/bonus3.tscn" type="PackedScene" id=11]
8 14
 
9 15
 [node name="spawner" type="Node2D"]
10 16
 script = ExtResource( 1 )
11
-scenes = [ ExtResource( 3 ), ExtResource( 2 ), ExtResource( 4 ), ExtResource( 5 ) ]
17
+scenes = [ ExtResource( 3 ), ExtResource( 2 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 11 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 10 ) ]
12 18
 
13 19
 [node name="Timer" type="Timer" parent="."]
14 20
 wait_time = 2.094

+ 2
- 2
mini-game/scripts/player2.gd View File

@@ -5,8 +5,8 @@ var vitesse = Vector2.ZERO
5 5
 var score = 0
6 6
 var score_goal = 10
7 7
 
8
-export var jump_vitesse = 800.0
9
-export var gravite = 20.0
8
+export var jump_vitesse = 1100.0
9
+export var gravite = 45.0
10 10
 
11 11
 enum {
12 12
 	RUN,

Loading…
Cancel
Save