Browse Source

Instauration du mini-jeu

Nabzzz 6 months ago
parent
commit
6ed3322d62
82 changed files with 1458 additions and 0 deletions
  1. BIN
      mini-game/ressources/backgrounds/background.png
  2. 34
    0
      mini-game/ressources/backgrounds/background.png.import
  3. BIN
      mini-game/ressources/backgrounds/city.png
  4. 34
    0
      mini-game/ressources/backgrounds/city.png.import
  5. BIN
      mini-game/ressources/backgrounds/ground.png
  6. 34
    0
      mini-game/ressources/backgrounds/ground.png.import
  7. BIN
      mini-game/ressources/backgrounds/road.png
  8. 34
    0
      mini-game/ressources/backgrounds/road.png.import
  9. BIN
      mini-game/ressources/backgrounds/road2.png
  10. 34
    0
      mini-game/ressources/backgrounds/road2.png.import
  11. BIN
      mini-game/ressources/backgrounds/road3.png
  12. 34
    0
      mini-game/ressources/backgrounds/road3.png.import
  13. BIN
      mini-game/ressources/font/joystix/ot/joystix monospace.otf
  14. BIN
      mini-game/ressources/font/joystix/tt/joystix monospace.ttf
  15. 202
    0
      mini-game/ressources/font/open-sans/LICENSE.txt
  16. BIN
      mini-game/ressources/font/open-sans/OpenSans-Bold.ttf
  17. BIN
      mini-game/ressources/font/open-sans/OpenSans-BoldItalic.ttf
  18. BIN
      mini-game/ressources/font/open-sans/OpenSans-ExtraBold.ttf
  19. BIN
      mini-game/ressources/font/open-sans/OpenSans-ExtraBoldItalic.ttf
  20. BIN
      mini-game/ressources/font/open-sans/OpenSans-Italic.ttf
  21. BIN
      mini-game/ressources/font/open-sans/OpenSans-Light.ttf
  22. BIN
      mini-game/ressources/font/open-sans/OpenSans-LightItalic.ttf
  23. BIN
      mini-game/ressources/font/open-sans/OpenSans-Regular.ttf
  24. BIN
      mini-game/ressources/font/open-sans/OpenSans-Semibold.ttf
  25. BIN
      mini-game/ressources/font/open-sans/OpenSans-SemiboldItalic.ttf
  26. BIN
      mini-game/ressources/sprites/bonus/bone.png
  27. 34
    0
      mini-game/ressources/sprites/bonus/bone.png.import
  28. BIN
      mini-game/ressources/sprites/obstacle/barrel.png
  29. 34
    0
      mini-game/ressources/sprites/obstacle/barrel.png.import
  30. BIN
      mini-game/ressources/sprites/player/dino/dino_jump0.png
  31. 34
    0
      mini-game/ressources/sprites/player/dino/dino_jump0.png.import
  32. BIN
      mini-game/ressources/sprites/player/dino/dino_jump1.png
  33. 34
    0
      mini-game/ressources/sprites/player/dino/dino_jump1.png.import
  34. BIN
      mini-game/ressources/sprites/player/dino/dino_jump2.png
  35. 34
    0
      mini-game/ressources/sprites/player/dino/dino_jump2.png.import
  36. BIN
      mini-game/ressources/sprites/player/dino/dino_run0.png
  37. 34
    0
      mini-game/ressources/sprites/player/dino/dino_run0.png.import
  38. BIN
      mini-game/ressources/sprites/player/dino/dino_run1.png
  39. 34
    0
      mini-game/ressources/sprites/player/dino/dino_run1.png.import
  40. BIN
      mini-game/ressources/sprites/player/dino/dino_run2.png
  41. 34
    0
      mini-game/ressources/sprites/player/dino/dino_run2.png.import
  42. BIN
      mini-game/ressources/sprites/player/dino/dino_run3.png
  43. 34
    0
      mini-game/ressources/sprites/player/dino/dino_run3.png.import
  44. BIN
      mini-game/ressources/sprites/player/dino/dino_run4.png
  45. 34
    0
      mini-game/ressources/sprites/player/dino/dino_run4.png.import
  46. BIN
      mini-game/ressources/sprites/player/dino/dino_run5.png
  47. 34
    0
      mini-game/ressources/sprites/player/dino/dino_run5.png.import
  48. BIN
      mini-game/ressources/sprites/player/dino/dino_run6.png
  49. 34
    0
      mini-game/ressources/sprites/player/dino/dino_run6.png.import
  50. BIN
      mini-game/ressources/sprites/player/dino/dino_run7.png
  51. 34
    0
      mini-game/ressources/sprites/player/dino/dino_run7.png.import
  52. BIN
      mini-game/ressources/sprites/player/dog.png
  53. 34
    0
      mini-game/ressources/sprites/player/dog.png.import
  54. BIN
      mini-game/ressources/sprites/player/dog1.png
  55. 34
    0
      mini-game/ressources/sprites/player/dog1.png.import
  56. BIN
      mini-game/ressources/sprites/player/dog2.png
  57. 34
    0
      mini-game/ressources/sprites/player/dog2.png.import
  58. BIN
      mini-game/ressources/sprites/player/dog4.png
  59. 34
    0
      mini-game/ressources/sprites/player/dog4.png.import
  60. BIN
      mini-game/ressources/sprites/player/dog5.png
  61. 34
    0
      mini-game/ressources/sprites/player/dog5.png.import
  62. 21
    0
      mini-game/scenes/bonuses/bonus1.tscn
  63. 16
    0
      mini-game/scenes/decor/background.tscn
  64. 23
    0
      mini-game/scenes/decor/foreground.tscn
  65. 38
    0
      mini-game/scenes/decor/scoreUI.tscn
  66. 28
    0
      mini-game/scenes/effets/ScrollingBG.tscn
  67. 3
    0
      mini-game/scenes/effets/collision_obstacle.tscn
  68. 3
    0
      mini-game/scenes/effets/pick_bonus.tscn
  69. 26
    0
      mini-game/scenes/main.tscn
  70. 21
    0
      mini-game/scenes/obstacles/obstacle1.tscn
  71. 6
    0
      mini-game/scenes/players/player1.tscn
  72. 55
    0
      mini-game/scenes/players/player2.tscn
  73. 11
    0
      mini-game/scenes/spawner/spawner.tscn
  74. 19
    0
      mini-game/scripts/ScrollingBG.gd
  75. 5
    0
      mini-game/scripts/Signals.gd
  76. 12
    0
      mini-game/scripts/bonus1.gd
  77. 12
    0
      mini-game/scripts/obstacle1.gd
  78. 16
    0
      mini-game/scripts/player1.gd
  79. 77
    0
      mini-game/scripts/player2.gd
  80. 13
    0
      mini-game/scripts/scroll_movement.gd
  81. 25
    0
      mini-game/scripts/spawner.gd
  82. 10
    0
      mini-game/scripts/update_score.gd

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


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

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


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

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


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

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


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

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


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

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


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

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


BIN
mini-game/ressources/font/joystix/tt/joystix monospace.ttf View File


+ 202
- 0
mini-game/ressources/font/open-sans/LICENSE.txt View File

@@ -0,0 +1,202 @@
1
+
2
+                                 Apache License
3
+                           Version 2.0, January 2004
4
+                        http://www.apache.org/licenses/
5
+
6
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+   1. Definitions.
9
+
10
+      "License" shall mean the terms and conditions for use, reproduction,
11
+      and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+      "Licensor" shall mean the copyright owner or entity authorized by
14
+      the copyright owner that is granting the License.
15
+
16
+      "Legal Entity" shall mean the union of the acting entity and all
17
+      other entities that control, are controlled by, or are under common
18
+      control with that entity. For the purposes of this definition,
19
+      "control" means (i) the power, direct or indirect, to cause the
20
+      direction or management of such entity, whether by contract or
21
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+      outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+      "You" (or "Your") shall mean an individual or Legal Entity
25
+      exercising permissions granted by this License.
26
+
27
+      "Source" form shall mean the preferred form for making modifications,
28
+      including but not limited to software source code, documentation
29
+      source, and configuration files.
30
+
31
+      "Object" form shall mean any form resulting from mechanical
32
+      transformation or translation of a Source form, including but
33
+      not limited to compiled object code, generated documentation,
34
+      and conversions to other media types.
35
+
36
+      "Work" shall mean the work of authorship, whether in Source or
37
+      Object form, made available under the License, as indicated by a
38
+      copyright notice that is included in or attached to the work
39
+      (an example is provided in the Appendix below).
40
+
41
+      "Derivative Works" shall mean any work, whether in Source or Object
42
+      form, that is based on (or derived from) the Work and for which the
43
+      editorial revisions, annotations, elaborations, or other modifications
44
+      represent, as a whole, an original work of authorship. For the purposes
45
+      of this License, Derivative Works shall not include works that remain
46
+      separable from, or merely link (or bind by name) to the interfaces of,
47
+      the Work and Derivative Works thereof.
48
+
49
+      "Contribution" shall mean any work of authorship, including
50
+      the original version of the Work and any modifications or additions
51
+      to that Work or Derivative Works thereof, that is intentionally
52
+      submitted to Licensor for inclusion in the Work by the copyright owner
53
+      or by an individual or Legal Entity authorized to submit on behalf of
54
+      the copyright owner. For the purposes of this definition, "submitted"
55
+      means any form of electronic, verbal, or written communication sent
56
+      to the Licensor or its representatives, including but not limited to
57
+      communication on electronic mailing lists, source code control systems,
58
+      and issue tracking systems that are managed by, or on behalf of, the
59
+      Licensor for the purpose of discussing and improving the Work, but
60
+      excluding communication that is conspicuously marked or otherwise
61
+      designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+      "Contributor" shall mean Licensor and any individual or Legal Entity
64
+      on behalf of whom a Contribution has been received by Licensor and
65
+      subsequently incorporated within the Work.
66
+
67
+   2. Grant of Copyright License. Subject to the terms and conditions of
68
+      this License, each Contributor hereby grants to You a perpetual,
69
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+      copyright license to reproduce, prepare Derivative Works of,
71
+      publicly display, publicly perform, sublicense, and distribute the
72
+      Work and such Derivative Works in Source or Object form.
73
+
74
+   3. Grant of Patent License. Subject to the terms and conditions of
75
+      this License, each Contributor hereby grants to You a perpetual,
76
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+      (except as stated in this section) patent license to make, have made,
78
+      use, offer to sell, sell, import, and otherwise transfer the Work,
79
+      where such license applies only to those patent claims licensable
80
+      by such Contributor that are necessarily infringed by their
81
+      Contribution(s) alone or by combination of their Contribution(s)
82
+      with the Work to which such Contribution(s) was submitted. If You
83
+      institute patent litigation against any entity (including a
84
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+      or a Contribution incorporated within the Work constitutes direct
86
+      or contributory patent infringement, then any patent licenses
87
+      granted to You under this License for that Work shall terminate
88
+      as of the date such litigation is filed.
89
+
90
+   4. Redistribution. You may reproduce and distribute copies of the
91
+      Work or Derivative Works thereof in any medium, with or without
92
+      modifications, and in Source or Object form, provided that You
93
+      meet the following conditions:
94
+
95
+      (a) You must give any other recipients of the Work or
96
+          Derivative Works a copy of this License; and
97
+
98
+      (b) You must cause any modified files to carry prominent notices
99
+          stating that You changed the files; and
100
+
101
+      (c) You must retain, in the Source form of any Derivative Works
102
+          that You distribute, all copyright, patent, trademark, and
103
+          attribution notices from the Source form of the Work,
104
+          excluding those notices that do not pertain to any part of
105
+          the Derivative Works; and
106
+
107
+      (d) If the Work includes a "NOTICE" text file as part of its
108
+          distribution, then any Derivative Works that You distribute must
109
+          include a readable copy of the attribution notices contained
110
+          within such NOTICE file, excluding those notices that do not
111
+          pertain to any part of the Derivative Works, in at least one
112
+          of the following places: within a NOTICE text file distributed
113
+          as part of the Derivative Works; within the Source form or
114
+          documentation, if provided along with the Derivative Works; or,
115
+          within a display generated by the Derivative Works, if and
116
+          wherever such third-party notices normally appear. The contents
117
+          of the NOTICE file are for informational purposes only and
118
+          do not modify the License. You may add Your own attribution
119
+          notices within Derivative Works that You distribute, alongside
120
+          or as an addendum to the NOTICE text from the Work, provided
121
+          that such additional attribution notices cannot be construed
122
+          as modifying the License.
123
+
124
+      You may add Your own copyright statement to Your modifications and
125
+      may provide additional or different license terms and conditions
126
+      for use, reproduction, or distribution of Your modifications, or
127
+      for any such Derivative Works as a whole, provided Your use,
128
+      reproduction, and distribution of the Work otherwise complies with
129
+      the conditions stated in this License.
130
+
131
+   5. Submission of Contributions. Unless You explicitly state otherwise,
132
+      any Contribution intentionally submitted for inclusion in the Work
133
+      by You to the Licensor shall be under the terms and conditions of
134
+      this License, without any additional terms or conditions.
135
+      Notwithstanding the above, nothing herein shall supersede or modify
136
+      the terms of any separate license agreement you may have executed
137
+      with Licensor regarding such Contributions.
138
+
139
+   6. Trademarks. This License does not grant permission to use the trade
140
+      names, trademarks, service marks, or product names of the Licensor,
141
+      except as required for reasonable and customary use in describing the
142
+      origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+   7. Disclaimer of Warranty. Unless required by applicable law or
145
+      agreed to in writing, Licensor provides the Work (and each
146
+      Contributor provides its Contributions) on an "AS IS" BASIS,
147
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+      implied, including, without limitation, any warranties or conditions
149
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+      PARTICULAR PURPOSE. You are solely responsible for determining the
151
+      appropriateness of using or redistributing the Work and assume any
152
+      risks associated with Your exercise of permissions under this License.
153
+
154
+   8. Limitation of Liability. In no event and under no legal theory,
155
+      whether in tort (including negligence), contract, or otherwise,
156
+      unless required by applicable law (such as deliberate and grossly
157
+      negligent acts) or agreed to in writing, shall any Contributor be
158
+      liable to You for damages, including any direct, indirect, special,
159
+      incidental, or consequential damages of any character arising as a
160
+      result of this License or out of the use or inability to use the
161
+      Work (including but not limited to damages for loss of goodwill,
162
+      work stoppage, computer failure or malfunction, or any and all
163
+      other commercial damages or losses), even if such Contributor
164
+      has been advised of the possibility of such damages.
165
+
166
+   9. Accepting Warranty or Additional Liability. While redistributing
167
+      the Work or Derivative Works thereof, You may choose to offer,
168
+      and charge a fee for, acceptance of support, warranty, indemnity,
169
+      or other liability obligations and/or rights consistent with this
170
+      License. However, in accepting such obligations, You may act only
171
+      on Your own behalf and on Your sole responsibility, not on behalf
172
+      of any other Contributor, and only if You agree to indemnify,
173
+      defend, and hold each Contributor harmless for any liability
174
+      incurred by, or claims asserted against, such Contributor by reason
175
+      of your accepting any such warranty or additional liability.
176
+
177
+   END OF TERMS AND CONDITIONS
178
+
179
+   APPENDIX: How to apply the Apache License to your work.
180
+
181
+      To apply the Apache License to your work, attach the following
182
+      boilerplate notice, with the fields enclosed by brackets "[]"
183
+      replaced with your own identifying information. (Don't include
184
+      the brackets!)  The text should be enclosed in the appropriate
185
+      comment syntax for the file format. We also recommend that a
186
+      file or class name and description of purpose be included on the
187
+      same "printed page" as the copyright notice for easier
188
+      identification within third-party archives.
189
+
190
+   Copyright [yyyy] [name of copyright owner]
191
+
192
+   Licensed under the Apache License, Version 2.0 (the "License");
193
+   you may not use this file except in compliance with the License.
194
+   You may obtain a copy of the License at
195
+
196
+       http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+   Unless required by applicable law or agreed to in writing, software
199
+   distributed under the License is distributed on an "AS IS" BASIS,
200
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+   See the License for the specific language governing permissions and
202
+   limitations under the License.

BIN
mini-game/ressources/font/open-sans/OpenSans-Bold.ttf View File


BIN
mini-game/ressources/font/open-sans/OpenSans-BoldItalic.ttf View File


BIN
mini-game/ressources/font/open-sans/OpenSans-ExtraBold.ttf View File


BIN
mini-game/ressources/font/open-sans/OpenSans-ExtraBoldItalic.ttf View File


BIN
mini-game/ressources/font/open-sans/OpenSans-Italic.ttf View File


BIN
mini-game/ressources/font/open-sans/OpenSans-Light.ttf View File


BIN
mini-game/ressources/font/open-sans/OpenSans-LightItalic.ttf View File


BIN
mini-game/ressources/font/open-sans/OpenSans-Regular.ttf View File


BIN
mini-game/ressources/font/open-sans/OpenSans-Semibold.ttf View File


BIN
mini-game/ressources/font/open-sans/OpenSans-SemiboldItalic.ttf View File


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


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

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


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

@@ -0,0 +1,34 @@
1
+[remap]
2
+
3
+importer="texture"
4
+type="StreamTexture"
5
+path="res://.import/barrel.png-44faee0c2515f02e61601d93efda09e4.stex"
6
+metadata={
7
+"vram_texture": false
8
+}
9
+
10
+[deps]
11
+
12
+source_file="res://ressources/sprites/obstacle/barrel.png"
13
+dest_files=[ "res://.import/barrel.png-44faee0c2515f02e61601d93efda09e4.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/player/dino/dino_jump0.png View File


+ 34
- 0
mini-game/ressources/sprites/player/dino/dino_jump0.png.import View File

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


+ 34
- 0
mini-game/ressources/sprites/player/dino/dino_jump1.png.import View File

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


+ 34
- 0
mini-game/ressources/sprites/player/dino/dino_jump2.png.import View File

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


+ 34
- 0
mini-game/ressources/sprites/player/dino/dino_run0.png.import View File

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


+ 34
- 0
mini-game/ressources/sprites/player/dino/dino_run1.png.import View File

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


+ 34
- 0
mini-game/ressources/sprites/player/dino/dino_run2.png.import View File

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


+ 34
- 0
mini-game/ressources/sprites/player/dino/dino_run3.png.import View File

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


+ 34
- 0
mini-game/ressources/sprites/player/dino/dino_run4.png.import View File

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


+ 34
- 0
mini-game/ressources/sprites/player/dino/dino_run5.png.import View File

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


+ 34
- 0
mini-game/ressources/sprites/player/dino/dino_run6.png.import View File

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


+ 34
- 0
mini-game/ressources/sprites/player/dino/dino_run7.png.import View File

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


+ 34
- 0
mini-game/ressources/sprites/player/dog.png.import View File

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


+ 34
- 0
mini-game/ressources/sprites/player/dog1.png.import View File

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


+ 34
- 0
mini-game/ressources/sprites/player/dog2.png.import View File

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


+ 34
- 0
mini-game/ressources/sprites/player/dog4.png.import View File

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


+ 34
- 0
mini-game/ressources/sprites/player/dog5.png.import View File

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

+ 21
- 0
mini-game/scenes/bonuses/bonus1.tscn View File

@@ -0,0 +1,21 @@
1
+[gd_scene load_steps=5 format=2]
2
+
3
+[ext_resource path="res://scripts/bonus1.gd" type="Script" id=1]
4
+[ext_resource path="res://ressources/sprites/bonus/bone.png" type="Texture" id=2]
5
+[ext_resource path="res://scenes/effets/pick_bonus.tscn" type="PackedScene" id=3]
6
+
7
+[sub_resource type="RectangleShape2D" id=1]
8
+extents = Vector2( 24.0183, 9.31512 )
9
+
10
+[node name="bonus1" type="Node2D"]
11
+script = ExtResource( 1 )
12
+
13
+[node name="Sprite" type="Sprite" parent="."]
14
+scale = Vector2( 0.119644, 0.119644 )
15
+texture = ExtResource( 2 )
16
+
17
+[node name="pick_bonus" parent="." instance=ExtResource( 3 )]
18
+
19
+[node name="CollisionShape2D" type="CollisionShape2D" parent="pick_bonus"]
20
+shape = SubResource( 1 )
21
+[connection signal="body_entered" from="pick_bonus" to="." method="_on_pick_bonus_body_entered"]

+ 16
- 0
mini-game/scenes/decor/background.tscn View File

@@ -0,0 +1,16 @@
1
+[gd_scene load_steps=2 format=2]
2
+
3
+[ext_resource path="res://ressources/backgrounds/city.png" type="Texture" id=1]
4
+
5
+[node name="background" type="Node2D"]
6
+
7
+[node name="TextureRect" type="TextureRect" parent="."]
8
+margin_left = -314.408
9
+margin_top = 2.29705
10
+margin_right = 765.592
11
+margin_bottom = 352.297
12
+rect_scale = Vector2( 1.69012, 1.70829 )
13
+texture = ExtResource( 1 )
14
+__meta__ = {
15
+"_edit_use_anchors_": false
16
+}

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

@@ -0,0 +1,23 @@
1
+[gd_scene load_steps=4 format=2]
2
+
3
+[ext_resource path="res://scenes/effets/ScrollingBG.tscn" type="PackedScene" id=1]
4
+[ext_resource path="res://ressources/backgrounds/road3.png" type="Texture" id=2]
5
+
6
+[sub_resource type="RectangleShape2D" id=1]
7
+extents = Vector2( 552.889, 78.6175 )
8
+
9
+[node name="foreground" type="Node2D"]
10
+
11
+[node name="ScrollingBG" parent="." instance=ExtResource( 1 )]
12
+margin_left = 0.734742
13
+margin_top = -356.907
14
+margin_right = 1920.73
15
+margin_bottom = 723.093
16
+rect_scale = Vector2( 0.533041, 0.912837 )
17
+texture = ExtResource( 2 )
18
+
19
+[node name="StaticBody2D" type="StaticBody2D" parent="."]
20
+
21
+[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
22
+position = Vector2( 497.671, 612.885 )
23
+shape = SubResource( 1 )

+ 38
- 0
mini-game/scenes/decor/scoreUI.tscn View File

@@ -0,0 +1,38 @@
1
+[gd_scene load_steps=4 format=2]
2
+
3
+[ext_resource path="res://scripts/update_score.gd" type="Script" id=1]
4
+
5
+[sub_resource type="DynamicFontData" id=1]
6
+antialiased = false
7
+font_path = "res://ressources/font/joystix/ot/joystix monospace.otf"
8
+
9
+[sub_resource type="DynamicFont" id=2]
10
+size = 27
11
+outline_color = Color( 0, 0, 0, 1 )
12
+font_data = SubResource( 1 )
13
+
14
+[node name="scoreUI" type="Control"]
15
+__meta__ = {
16
+"_edit_use_anchors_": false
17
+}
18
+
19
+[node name="RichTextLabel" type="RichTextLabel" parent="."]
20
+anchor_left = -0.484
21
+anchor_right = -0.162
22
+anchor_bottom = 1.0
23
+margin_left = 308.509
24
+margin_top = 16.6272
25
+margin_right = 387.509
26
+margin_bottom = 51.6272
27
+grow_horizontal = 0
28
+rect_scale = Vector2( 6.28409, 6.63013 )
29
+custom_fonts/normal_font = SubResource( 2 )
30
+custom_colors/default_color = Color( 0, 0, 0, 1 )
31
+tab_size = 1
32
+text = "0"
33
+fit_content_height = true
34
+scroll_active = false
35
+script = ExtResource( 1 )
36
+__meta__ = {
37
+"_edit_use_anchors_": false
38
+}

+ 28
- 0
mini-game/scenes/effets/ScrollingBG.tscn View File

@@ -0,0 +1,28 @@
1
+[gd_scene load_steps=4 format=2]
2
+
3
+[ext_resource path="res://scripts/ScrollingBG.gd" type="Script" id=1]
4
+
5
+[sub_resource type="Shader" id=1]
6
+code = "shader_type canvas_item;
7
+
8
+uniform float scroll_speed;
9
+
10
+void fragment(){
11
+	vec2 u = UV;
12
+	u.x += scroll_speed*TIME;
13
+	vec4 color = texture(TEXTURE,u);
14
+	COLOR = color;
15
+}
16
+"
17
+
18
+[sub_resource type="ShaderMaterial" id=2]
19
+shader = SubResource( 1 )
20
+shader_param/scroll_speed = 0.2
21
+
22
+[node name="ScrollingBG" type="TextureRect"]
23
+material = SubResource( 2 )
24
+stretch_mode = 2
25
+script = ExtResource( 1 )
26
+__meta__ = {
27
+"_edit_use_anchors_": false
28
+}

+ 3
- 0
mini-game/scenes/effets/collision_obstacle.tscn View File

@@ -0,0 +1,3 @@
1
+[gd_scene format=2]
2
+
3
+[node name="collision_obstacle" type="Area2D"]

+ 3
- 0
mini-game/scenes/effets/pick_bonus.tscn View File

@@ -0,0 +1,3 @@
1
+[gd_scene format=2]
2
+
3
+[node name="pick_bonus" type="Area2D"]

+ 26
- 0
mini-game/scenes/main.tscn View File

@@ -0,0 +1,26 @@
1
+[gd_scene load_steps=8 format=2]
2
+
3
+[ext_resource path="res://scenes/decor/background.tscn" type="PackedScene" id=1]
4
+[ext_resource path="res://scenes/decor/foreground.tscn" type="PackedScene" id=2]
5
+[ext_resource path="res://scenes/players/player2.tscn" type="PackedScene" id=3]
6
+[ext_resource path="res://scenes/obstacles/obstacle1.tscn" type="PackedScene" id=4]
7
+[ext_resource path="res://scenes/bonuses/bonus1.tscn" type="PackedScene" id=5]
8
+[ext_resource path="res://scenes/spawner/spawner.tscn" type="PackedScene" id=6]
9
+[ext_resource path="res://scenes/decor/scoreUI.tscn" type="PackedScene" id=7]
10
+
11
+[node name="main" type="Node2D"]
12
+
13
+[node name="background" parent="." instance=ExtResource( 1 )]
14
+position = Vector2( 1, -125 )
15
+
16
+[node name="foreground" parent="." instance=ExtResource( 2 )]
17
+
18
+[node name="spawner" parent="." instance=ExtResource( 6 )]
19
+position = Vector2( 1112.97, 525.9 )
20
+scenes = [ ExtResource( 4 ), ExtResource( 5 ) ]
21
+
22
+[node name="player2" parent="." instance=ExtResource( 3 )]
23
+position = Vector2( 139.557, 526.191 )
24
+scale = Vector2( 4.7029, 4.7029 )
25
+
26
+[node name="scoreUI" parent="." instance=ExtResource( 7 )]

+ 21
- 0
mini-game/scenes/obstacles/obstacle1.tscn View File

@@ -0,0 +1,21 @@
1
+[gd_scene load_steps=5 format=2]
2
+
3
+[ext_resource path="res://scripts/obstacle1.gd" type="Script" id=1]
4
+[ext_resource path="res://ressources/sprites/obstacle/barrel.png" type="Texture" id=2]
5
+[ext_resource path="res://scenes/effets/collision_obstacle.tscn" type="PackedScene" id=3]
6
+
7
+[sub_resource type="RectangleShape2D" id=1]
8
+extents = Vector2( 28.3542, 36.1379 )
9
+
10
+[node name="obstacle1" type="Node2D"]
11
+script = ExtResource( 1 )
12
+
13
+[node name="Sprite" type="Sprite" parent="."]
14
+scale = Vector2( 0.202437, 0.202437 )
15
+texture = ExtResource( 2 )
16
+
17
+[node name="collision_obstacle" parent="." instance=ExtResource( 3 )]
18
+
19
+[node name="CollisionShape2D" type="CollisionShape2D" parent="collision_obstacle"]
20
+shape = SubResource( 1 )
21
+[connection signal="body_entered" from="collision_obstacle" to="." method="_on_collision_obstacle_body_entered"]

+ 6
- 0
mini-game/scenes/players/player1.tscn View File

@@ -0,0 +1,6 @@
1
+[gd_scene load_steps=2 format=2]
2
+
3
+[ext_resource path="res://scripts/player1.gd" type="Script" id=1]
4
+
5
+[node name="player1" type="Node2D"]
6
+script = ExtResource( 1 )

+ 55
- 0
mini-game/scenes/players/player2.tscn View File

@@ -0,0 +1,55 @@
1
+[gd_scene load_steps=16 format=2]
2
+
3
+[ext_resource path="res://ressources/sprites/player/dino/dino_run0.png" type="Texture" id=1]
4
+[ext_resource path="res://ressources/sprites/player/dino/dino_run3.png" type="Texture" id=2]
5
+[ext_resource path="res://ressources/sprites/player/dino/dino_run5.png" type="Texture" id=3]
6
+[ext_resource path="res://ressources/sprites/player/dino/dino_jump0.png" type="Texture" id=4]
7
+[ext_resource path="res://ressources/sprites/player/dino/dino_run4.png" type="Texture" id=5]
8
+[ext_resource path="res://scripts/player2.gd" type="Script" id=6]
9
+[ext_resource path="res://ressources/sprites/player/dino/dino_run7.png" type="Texture" id=7]
10
+[ext_resource path="res://ressources/sprites/player/dino/dino_run2.png" type="Texture" id=8]
11
+[ext_resource path="res://ressources/sprites/player/dino/dino_run6.png" type="Texture" id=9]
12
+[ext_resource path="res://ressources/sprites/player/dino/dino_jump1.png" type="Texture" id=10]
13
+[ext_resource path="res://ressources/sprites/player/dino/dino_jump2.png" type="Texture" id=11]
14
+[ext_resource path="res://ressources/sprites/player/dino/dino_run1.png" type="Texture" id=12]
15
+
16
+[sub_resource type="SpriteFrames" id=1]
17
+animations = [ {
18
+"frames": [ ExtResource( 1 ), ExtResource( 12 ), ExtResource( 8 ), ExtResource( 2 ), ExtResource( 5 ), ExtResource( 3 ), ExtResource( 9 ), ExtResource( 7 ) ],
19
+"loop": true,
20
+"name": "New Anim",
21
+"speed": 5.0
22
+}, {
23
+"frames": [ ExtResource( 11 ), ExtResource( 4 ), ExtResource( 10 ) ],
24
+"loop": true,
25
+"name": "jump",
26
+"speed": 5.0
27
+} ]
28
+
29
+[sub_resource type="RectangleShape2D" id=2]
30
+extents = Vector2( 7.99984, 8.75317 )
31
+
32
+[sub_resource type="RectangleShape2D" id=3]
33
+extents = Vector2( 12.932, 6.33675 )
34
+
35
+[node name="player2" type="KinematicBody2D"]
36
+script = ExtResource( 6 )
37
+
38
+[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
39
+position = Vector2( -0.0702338, 0.280932 )
40
+scale = Vector2( 1.04058, 1.03305 )
41
+frames = SubResource( 1 )
42
+animation = "New Anim"
43
+
44
+[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
45
+position = Vector2( 0, 0.471936 )
46
+shape = SubResource( 2 )
47
+
48
+[node name="Area2D" type="Area2D" parent="."]
49
+
50
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
51
+position = Vector2( -0.0400658, 9.23466 )
52
+scale = Vector2( 0.609429, 0.281311 )
53
+shape = SubResource( 3 )
54
+[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]
55
+[connection signal="body_exited" from="Area2D" to="." method="_on_Area2D_body_exited"]

+ 11
- 0
mini-game/scenes/spawner/spawner.tscn View File

@@ -0,0 +1,11 @@
1
+[gd_scene load_steps=2 format=2]
2
+
3
+[ext_resource path="res://scripts/spawner.gd" type="Script" id=1]
4
+
5
+[node name="spawner" type="Node2D"]
6
+script = ExtResource( 1 )
7
+
8
+[node name="Timer" type="Timer" parent="."]
9
+wait_time = 2.094
10
+autostart = true
11
+[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]

+ 19
- 0
mini-game/scripts/ScrollingBG.gd View File

@@ -0,0 +1,19 @@
1
+extends TextureRect
2
+
3
+
4
+# Declare member variables here. Examples:
5
+# var a = 2
6
+# var b = "text"
7
+
8
+
9
+# Called when the node enters the scene tree for the first time.
10
+
11
+func _ready():
12
+	Signals.connect("die",self,"game_over")
13
+
14
+
15
+# Called every frame. 'delta' is the elapsed time since the previous frame.
16
+#func _process(delta):
17
+#	pass
18
+func game_over():
19
+	material.set_shader_param("scroll_speed",0)

+ 5
- 0
mini-game/scripts/Signals.gd View File

@@ -0,0 +1,5 @@
1
+extends Node2D
2
+
3
+signal die
4
+signal gain
5
+signal update_score

+ 12
- 0
mini-game/scripts/bonus1.gd View File

@@ -0,0 +1,12 @@
1
+extends "scroll_movement.gd"
2
+
3
+
4
+func _physics_process(delta):
5
+	move()
6
+	
7
+
8
+
9
+func _on_pick_bonus_body_entered(body):
10
+	if body.name == "player2" : 
11
+		Signals.emit_signal("gain",1)
12
+		queue_free()

+ 12
- 0
mini-game/scripts/obstacle1.gd View File

@@ -0,0 +1,12 @@
1
+extends "scroll_movement.gd"
2
+
3
+
4
+func _physics_process(delta):
5
+	move()
6
+	
7
+
8
+
9
+func _on_collision_obstacle_body_entered(body):
10
+	if body.name == "player2" : 
11
+		Signals.emit_signal("die")
12
+		queue_free()

+ 16
- 0
mini-game/scripts/player1.gd View File

@@ -0,0 +1,16 @@
1
+extends Node2D
2
+
3
+
4
+# Declare member variables here. Examples:
5
+# var a = 2
6
+# var b = "text"
7
+onready var animation = $AnimatedSprite
8
+
9
+# Called when the node enters the scene tree for the first time.
10
+func _ready():
11
+	animation.play("run")
12
+
13
+
14
+# Called every frame. 'delta' is the elapsed time since the previous frame.
15
+#func _process(delta):
16
+#	pass

+ 77
- 0
mini-game/scripts/player2.gd View File

@@ -0,0 +1,77 @@
1
+extends KinematicBody2D
2
+
3
+var vitesse = Vector2.ZERO
4
+
5
+var score = 0
6
+
7
+export var jump_vitesse = 600.0
8
+export var gravite = 20.0
9
+
10
+enum {
11
+	RUN,
12
+	JUMP,
13
+	IDLE
14
+}
15
+
16
+var state = RUN
17
+var au_sol = true
18
+
19
+# Declare member variables here. Examples:
20
+# var a = 2
21
+# var b = "text"
22
+onready var animation = $AnimatedSprite
23
+
24
+# Called when the node enters the scene tree for the first time.
25
+func _ready():
26
+	Signals.connect("gain",self,"increase_score")
27
+	Signals.connect("die",self,"player_die")
28
+
29
+func _physics_process(delta):
30
+	match state:
31
+		RUN:
32
+			animation.play("run")
33
+			print("run")
34
+		JUMP:
35
+			vitesse = Vector2.ZERO
36
+			vitesse.y -= jump_vitesse
37
+			animation.play("jump")
38
+			state = IDLE
39
+			print("jump")
40
+		IDLE:
41
+			pass
42
+	vitesse.y += gravite
43
+	move_and_collide(vitesse*delta)
44
+	
45
+func _input(event):
46
+	if state == RUN and event.is_action_pressed("jump"):
47
+			state = JUMP
48
+			
49
+			
50
+		
51
+
52
+# Called every frame. 'delta' is the elapsed time since the previous frame.
53
+#func _process(delta):
54
+#	pass
55
+
56
+
57
+func _on_Area2D_body_entered(body):
58
+	print("landing")
59
+	if body is StaticBody2D:
60
+		print("Yep a dino is landing")
61
+		state = RUN
62
+		
63
+
64
+
65
+func _on_Area2D_body_exited(body):
66
+	print("jumping")
67
+	if body is StaticBody2D:
68
+		print("Yep a dino is jumping")
69
+		state = JUMP
70
+
71
+func increase_score(scoretoadd):
72
+	score+=scoretoadd
73
+	Signals.emit_signal("update_score",score)
74
+	print(score)
75
+		
76
+func player_die():
77
+	queue_free()

+ 13
- 0
mini-game/scripts/scroll_movement.gd View File

@@ -0,0 +1,13 @@
1
+extends Node2D
2
+
3
+export var scroll_speed = 6.3
4
+
5
+func _ready():
6
+	Signals.connect("die",self,"game_over")
7
+
8
+func move():
9
+	self.position.x -= scroll_speed
10
+
11
+func game_over():
12
+	print("game_over")
13
+	scroll_speed = 0

+ 25
- 0
mini-game/scripts/spawner.gd View File

@@ -0,0 +1,25 @@
1
+extends Node2D
2
+
3
+export (Array,PackedScene) var scenes
4
+
5
+var random_scene = RandomNumberGenerator.new()
6
+var scene_index = 0;
7
+var last_object
8
+var end_of_game = false
9
+
10
+func _ready():
11
+	Signals.connect("die",self,"game_over")
12
+
13
+func _on_Timer_timeout():
14
+	random_scene.randomize()
15
+	scene_index = random_scene.randi_range(0,scenes.size()-1)
16
+	var tmp = scenes[scene_index].instance()
17
+	add_child_below_node(self,tmp)
18
+	last_object = tmp
19
+	self.get_node("Timer").wait_time *= 0.99
20
+	self.get_node("Timer").start()
21
+
22
+func game_over():
23
+	self.get_node("Timer").set_paused(true)
24
+	last_object.queue_free()
25
+

+ 10
- 0
mini-game/scripts/update_score.gd View File

@@ -0,0 +1,10 @@
1
+extends RichTextLabel
2
+
3
+
4
+func _ready():
5
+	Signals.connect("update_score",self,"update_score")
6
+	
7
+
8
+func update_score(score):
9
+	self.text = String(score)
10
+	

Loading…
Cancel
Save