Browse Source

change minigame images

Arnaud Vergnet 4 months ago
parent
commit
498f6ef1d3

+ 1
- 0
mini-game/MiniGame.gd View File

@@ -33,6 +33,7 @@ func _ready():
33 33
 
34 34
 
35 35
 func setup(mode: String, goal: int, difficulty: String, next_lose: String, next_win: String, version: int):
36
+	version = 4
36 37
 	game_goal = goal
37 38
 	if(difficulty == "hard"):
38 39
 		game_difficulty = "hard"

BIN
mini-game/ressources/backgrounds/background.png View File


+ 0
- 34
mini-game/ressources/backgrounds/background.png.import View File

@@ -1,34 +0,0 @@
1
-[remap]
2
-
3
-importer="texture"
4
-type="StreamTexture"
5
-path="res://.import/background.png-505e23e85d466d6becabf2def4a53663.stex"
6
-metadata={
7
-"vram_texture": false
8
-}
9
-
10
-[deps]
11
-
12
-source_file="res://mini-game/ressources/backgrounds/background.png"
13
-dest_files=[ "res://.import/background.png-505e23e85d466d6becabf2def4a53663.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

mini-game/ressources/backgrounds/road.png.import → mini-game/ressources/backgrounds/bg1.png.import View File

@@ -2,15 +2,15 @@
2 2
 
3 3
 importer="texture"
4 4
 type="StreamTexture"
5
-path="res://.import/road.png-a47382164ab08d2b16ee5556b011c7ae.stex"
5
+path="res://.import/bg1.png-8ae713bba3ad2ecc3258923cae812490.stex"
6 6
 metadata={
7 7
 "vram_texture": false
8 8
 }
9 9
 
10 10
 [deps]
11 11
 
12
-source_file="res://mini-game/ressources/backgrounds/road.png"
13
-dest_files=[ "res://.import/road.png-a47382164ab08d2b16ee5556b011c7ae.stex" ]
12
+source_file="res://mini-game/ressources/backgrounds/bg1.png"
13
+dest_files=[ "res://.import/bg1.png-8ae713bba3ad2ecc3258923cae812490.stex" ]
14 14
 
15 15
 [params]
16 16
 

mini-game/ressources/backgrounds/road3.png.import → mini-game/ressources/backgrounds/bg2.png.import View File

@@ -2,15 +2,15 @@
2 2
 
3 3
 importer="texture"
4 4
 type="StreamTexture"
5
-path="res://.import/road3.png-648b2e9aa7ca850c48819c6380f474a0.stex"
5
+path="res://.import/bg2.png-ed986a1e6aeff7730721b86542dccb83.stex"
6 6
 metadata={
7 7
 "vram_texture": false
8 8
 }
9 9
 
10 10
 [deps]
11 11
 
12
-source_file="res://mini-game/ressources/backgrounds/road3.png"
13
-dest_files=[ "res://.import/road3.png-648b2e9aa7ca850c48819c6380f474a0.stex" ]
12
+source_file="res://mini-game/ressources/backgrounds/bg2.png"
13
+dest_files=[ "res://.import/bg2.png-ed986a1e6aeff7730721b86542dccb83.stex" ]
14 14
 
15 15
 [params]
16 16
 

mini-game/ressources/backgrounds/road2.png.import → mini-game/ressources/backgrounds/bg3.png.import View File

@@ -2,15 +2,15 @@
2 2
 
3 3
 importer="texture"
4 4
 type="StreamTexture"
5
-path="res://.import/road2.png-e0bf36dfcd897889f0653f61c752133d.stex"
5
+path="res://.import/bg3.png-85672fb13dbe4d129faf660cb55f24ec.stex"
6 6
 metadata={
7 7
 "vram_texture": false
8 8
 }
9 9
 
10 10
 [deps]
11 11
 
12
-source_file="res://mini-game/ressources/backgrounds/road2.png"
13
-dest_files=[ "res://.import/road2.png-e0bf36dfcd897889f0653f61c752133d.stex" ]
12
+source_file="res://mini-game/ressources/backgrounds/bg3.png"
13
+dest_files=[ "res://.import/bg3.png-85672fb13dbe4d129faf660cb55f24ec.stex" ]
14 14
 
15 15
 [params]
16 16
 

mini-game/ressources/backgrounds/ground.png.import → mini-game/ressources/backgrounds/bg4.png.import View File

@@ -2,15 +2,15 @@
2 2
 
3 3
 importer="texture"
4 4
 type="StreamTexture"
5
-path="res://.import/ground.png-4932cc62bec22f379d126a8ed00b8065.stex"
5
+path="res://.import/bg4.png-aa6a9a6fa47fc463e4971b9c2630ff93.stex"
6 6
 metadata={
7 7
 "vram_texture": false
8 8
 }
9 9
 
10 10
 [deps]
11 11
 
12
-source_file="res://mini-game/ressources/backgrounds/ground.png"
13
-dest_files=[ "res://.import/ground.png-4932cc62bec22f379d126a8ed00b8065.stex" ]
12
+source_file="res://mini-game/ressources/backgrounds/bg4.png"
13
+dest_files=[ "res://.import/bg4.png-aa6a9a6fa47fc463e4971b9c2630ff93.stex" ]
14 14
 
15 15
 [params]
16 16
 

+ 34
- 0
mini-game/ressources/backgrounds/bg5.png.import View File

@@ -0,0 +1,34 @@
1
+[remap]
2
+
3
+importer="texture"
4
+type="StreamTexture"
5
+path="res://.import/bg5.png-2cd6ea5f2184bb027b7b24e45141bb4e.stex"
6
+metadata={
7
+"vram_texture": false
8
+}
9
+
10
+[deps]
11
+
12
+source_file="res://mini-game/ressources/backgrounds/bg5.png"
13
+dest_files=[ "res://.import/bg5.png-2cd6ea5f2184bb027b7b24e45141bb4e.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

+ 34
- 0
mini-game/ressources/backgrounds/bg6.png.import View File

@@ -0,0 +1,34 @@
1
+[remap]
2
+
3
+importer="texture"
4
+type="StreamTexture"
5
+path="res://.import/bg6.png-e7c1c3681ff5618e64b93ab189acb346.stex"
6
+metadata={
7
+"vram_texture": false
8
+}
9
+
10
+[deps]
11
+
12
+source_file="res://mini-game/ressources/backgrounds/bg6.png"
13
+dest_files=[ "res://.import/bg6.png-e7c1c3681ff5618e64b93ab189acb346.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

+ 34
- 0
mini-game/ressources/backgrounds/fg1.png.import View File

@@ -0,0 +1,34 @@
1
+[remap]
2
+
3
+importer="texture"
4
+type="StreamTexture"
5
+path="res://.import/fg1.png-1223bd947bc074f762b942936a2c3080.stex"
6
+metadata={
7
+"vram_texture": false
8
+}
9
+
10
+[deps]
11
+
12
+source_file="res://mini-game/ressources/backgrounds/fg1.png"
13
+dest_files=[ "res://.import/fg1.png-1223bd947bc074f762b942936a2c3080.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

+ 34
- 0
mini-game/ressources/backgrounds/fg2.png.import View File

@@ -0,0 +1,34 @@
1
+[remap]
2
+
3
+importer="texture"
4
+type="StreamTexture"
5
+path="res://.import/fg2.png-3c5c1093a1643c1ef511181761a72e0c.stex"
6
+metadata={
7
+"vram_texture": false
8
+}
9
+
10
+[deps]
11
+
12
+source_file="res://mini-game/ressources/backgrounds/fg2.png"
13
+dest_files=[ "res://.import/fg2.png-3c5c1093a1643c1ef511181761a72e0c.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

+ 34
- 0
mini-game/ressources/backgrounds/fg3.png.import View File

@@ -0,0 +1,34 @@
1
+[remap]
2
+
3
+importer="texture"
4
+type="StreamTexture"
5
+path="res://.import/fg3.png-ace556d90c80e77c61204459f3601219.stex"
6
+metadata={
7
+"vram_texture": false
8
+}
9
+
10
+[deps]
11
+
12
+source_file="res://mini-game/ressources/backgrounds/fg3.png"
13
+dest_files=[ "res://.import/fg3.png-ace556d90c80e77c61204459f3601219.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

+ 34
- 0
mini-game/ressources/backgrounds/fg4.png.import View File

@@ -0,0 +1,34 @@
1
+[remap]
2
+
3
+importer="texture"
4
+type="StreamTexture"
5
+path="res://.import/fg4.png-2d72d37b23620ce49094263e1cd72ade.stex"
6
+metadata={
7
+"vram_texture": false
8
+}
9
+
10
+[deps]
11
+
12
+source_file="res://mini-game/ressources/backgrounds/fg4.png"
13
+dest_files=[ "res://.import/fg4.png-2d72d37b23620ce49094263e1cd72ade.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

+ 34
- 0
mini-game/ressources/backgrounds/fg5.png.import View File

@@ -0,0 +1,34 @@
1
+[remap]
2
+
3
+importer="texture"
4
+type="StreamTexture"
5
+path="res://.import/fg5.png-c061aecd9606bd3aa6f8c79d2f3080f1.stex"
6
+metadata={
7
+"vram_texture": false
8
+}
9
+
10
+[deps]
11
+
12
+source_file="res://mini-game/ressources/backgrounds/fg5.png"
13
+dest_files=[ "res://.import/fg5.png-c061aecd9606bd3aa6f8c79d2f3080f1.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

+ 34
- 0
mini-game/ressources/backgrounds/fg6.png.import View File

@@ -0,0 +1,34 @@
1
+[remap]
2
+
3
+importer="texture"
4
+type="StreamTexture"
5
+path="res://.import/fg6.png-5d1e4f373d56fd25324325e27a4d63ab.stex"
6
+metadata={
7
+"vram_texture": false
8
+}
9
+
10
+[deps]
11
+
12
+source_file="res://mini-game/ressources/backgrounds/fg6.png"
13
+dest_files=[ "res://.import/fg6.png-5d1e4f373d56fd25324325e27a4d63ab.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/backgrounds/ground.png View File


BIN
mini-game/ressources/backgrounds/road.png View File


BIN
mini-game/ressources/backgrounds/road2.png View File


BIN
mini-game/ressources/backgrounds/road3.png View File


+ 12
- 5
mini-game/scenes/decor/ForegroundSprite.tscn View File

@@ -1,8 +1,11 @@
1
-[gd_scene load_steps=6 format=2]
1
+[gd_scene load_steps=10 format=2]
2 2
 
3
-[ext_resource path="res://mini-game/ressources/backgrounds/road3.png" type="Texture" id=1]
4 3
 [ext_resource path="res://mini-game/scenes/decor/ForegroundSprite.gd" type="Script" id=2]
5
-[ext_resource path="res://mini-game/ressources/backgrounds/road.png" type="Texture" id=3]
4
+[ext_resource path="res://mini-game/ressources/backgrounds/fg6.png" type="Texture" id=3]
5
+[ext_resource path="res://mini-game/ressources/backgrounds/fg2.png" type="Texture" id=5]
6
+[ext_resource path="res://mini-game/ressources/backgrounds/fg1.png" type="Texture" id=6]
7
+[ext_resource path="res://mini-game/ressources/backgrounds/fg3.png" type="Texture" id=7]
8
+[ext_resource path="res://mini-game/ressources/backgrounds/fg5.png" type="Texture" id=8]
6 9
 
7 10
 [sub_resource type="Shader" id=1]
8 11
 code = "shader_type canvas_item;
@@ -21,15 +24,19 @@ void fragment(){
21 24
 shader = SubResource( 1 )
22 25
 shader_param/scroll_speed = 0.0
23 26
 
27
+[sub_resource type="StreamTexture" id=3]
28
+flags = 4
29
+load_path = "res://.import/road3.png-648b2e9aa7ca850c48819c6380f474a0.stex"
30
+
24 31
 [node name="ForegroundSprite" type="Sprite"]
25 32
 material = SubResource( 2 )
26
-texture = ExtResource( 1 )
33
+texture = SubResource( 3 )
27 34
 offset = Vector2( 960, 540 )
28 35
 script = ExtResource( 2 )
29 36
 __meta__ = {
30 37
 "_editor_description_": ""
31 38
 }
32
-textures = [ ExtResource( 1 ), ExtResource( 3 ) ]
39
+textures = [ ExtResource( 6 ), ExtResource( 5 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 3 ) ]
33 40
 
34 41
 [node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
35 42
 position = Vector2( 1930, 540 )

+ 9
- 4
mini-game/scenes/decor/background.tscn View File

@@ -1,17 +1,22 @@
1
-[gd_scene load_steps=4 format=2]
1
+[gd_scene load_steps=8 format=2]
2 2
 
3 3
 [ext_resource path="res://mini-game/ressources/backgrounds/city.png" type="Texture" id=1]
4 4
 [ext_resource path="res://mini-game/scenes/decor/background.gd" type="Script" id=2]
5
-[ext_resource path="res://mini-game/ressources/backgrounds/background.png" type="Texture" id=3]
5
+[ext_resource path="res://mini-game/ressources/backgrounds/bg1.png" type="Texture" id=3]
6
+[ext_resource path="res://mini-game/ressources/backgrounds/bg3.png" type="Texture" id=4]
7
+[ext_resource path="res://mini-game/ressources/backgrounds/bg5.png" type="Texture" id=5]
8
+[ext_resource path="res://mini-game/ressources/backgrounds/bg6.png" type="Texture" id=6]
9
+[ext_resource path="res://mini-game/ressources/backgrounds/bg2.png" type="Texture" id=7]
6 10
 
7 11
 [node name="background" type="Control"]
8 12
 anchor_right = 1.0
9 13
 anchor_bottom = 1.0
10 14
 script = ExtResource( 2 )
11 15
 __meta__ = {
12
-"_edit_use_anchors_": false
16
+"_edit_use_anchors_": false,
17
+"_editor_description_": ""
13 18
 }
14
-textures = [ ExtResource( 1 ), ExtResource( 3 ) ]
19
+textures = [ ExtResource( 3 ), ExtResource( 7 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ) ]
15 20
 
16 21
 [node name="TextureRect" type="TextureRect" parent="."]
17 22
 anchor_right = 1.0

+ 2
- 2
mini-game/scenes/decor/foreground.tscn View File

@@ -3,7 +3,7 @@
3 3
 [ext_resource path="res://mini-game/scenes/decor/foreground.gd" type="Script" id=1]
4 4
 [ext_resource path="res://mini-game/scenes/decor/ForegroundSprite.tscn" type="PackedScene" id=2]
5 5
 
6
-[sub_resource type="RectangleShape2D" id=3]
6
+[sub_resource type="RectangleShape2D" id=1]
7 7
 extents = Vector2( 958.398, 78.6175 )
8 8
 
9 9
 [node name="foreground" type="Node2D"]
@@ -13,7 +13,7 @@ script = ExtResource( 1 )
13 13
 
14 14
 [node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
15 15
 position = Vector2( 960, 1080 )
16
-shape = SubResource( 3 )
16
+shape = SubResource( 1 )
17 17
 
18 18
 [node name="ForegroundSprite" parent="." instance=ExtResource( 2 )]
19 19
 

Loading…
Cancel
Save