Skip to content

Commit 70f671b

Browse files
Fabio BarreseFabio Barrese
Fabio Barrese
authored and
Fabio Barrese
committed
added ai capabilities to the player
1 parent 3d06ae9 commit 70f671b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1974
-30
lines changed

Diff for: .DS_Store

2 KB
Binary file not shown.

Diff for: Assets/.DS_Store

2 KB
Binary file not shown.

Diff for: Assets/Plugins/.DS_Store

0 Bytes
Binary file not shown.

Diff for: Assets/Plugins/ThinkEngineDLL/ThinkEngine.dll

0 Bytes
Binary file not shown.

Diff for: Assets/Prefabs/Asteroid.prefab

+109
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ GameObject:
1313
- component: {fileID: 2538125824281061376}
1414
- component: {fileID: 2538125824281061407}
1515
- component: {fileID: 4394751245055917805}
16+
- component: {fileID: 578609464697338764}
17+
- component: {fileID: 6362999206433336964}
18+
- component: {fileID: 7465956930384201913}
19+
- component: {fileID: 2324118260483432124}
1620
m_Layer: 10
1721
m_Name: Asteroid
1822
m_TagString: Asteroid
@@ -30,6 +34,7 @@ Transform:
3034
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
3135
m_LocalPosition: {x: 0, y: 0, z: 0}
3236
m_LocalScale: {x: 1, y: 1, z: 1}
37+
m_ConstrainProportionsScale: 0
3338
m_Children: []
3439
m_Father: {fileID: 0}
3540
m_RootOrder: 0
@@ -45,10 +50,12 @@ SpriteRenderer:
4550
m_CastShadows: 0
4651
m_ReceiveShadows: 0
4752
m_DynamicOccludee: 1
53+
m_StaticShadowCaster: 0
4854
m_MotionVectors: 1
4955
m_LightProbeUsage: 1
5056
m_ReflectionProbeUsage: 1
5157
m_RayTracingMode: 0
58+
m_RayTraceProcedural: 0
5259
m_RenderingLayerMask: 1
5360
m_RendererPriority: 0
5461
m_Materials:
@@ -152,4 +159,106 @@ MonoBehaviour:
152159
minSize: 0.35
153160
maxSize: 1.65
154161
movementSpeed: 50
162+
increaseFactor: 3
155163
maxLifetime: 30
164+
myContactPoint: {fileID: 1928258193019881225, guid: 16baa0c27487b47e8a97a5ec4b19ddb6,
165+
type: 3}
166+
--- !u!114 &578609464697338764
167+
MonoBehaviour:
168+
m_ObjectHideFlags: 0
169+
m_CorrespondingSourceObject: {fileID: 0}
170+
m_PrefabInstance: {fileID: 0}
171+
m_PrefabAsset: {fileID: 0}
172+
m_GameObject: {fileID: 2538125824281061406}
173+
m_Enabled: 1
174+
m_EditorHideFlags: 0
175+
m_Script: {fileID: 11500000, guid: b2f93ecebf74349fa82039e09c1e1011, type: 3}
176+
m_Name:
177+
m_EditorClassIdentifier:
178+
x: 0
179+
y: 0
180+
directionX: 0
181+
directionY: 0
182+
--- !u!114 &6362999206433336964
183+
MonoBehaviour:
184+
m_ObjectHideFlags: 0
185+
m_CorrespondingSourceObject: {fileID: 0}
186+
m_PrefabInstance: {fileID: 0}
187+
m_PrefabAsset: {fileID: 0}
188+
m_GameObject: {fileID: 2538125824281061406}
189+
m_Enabled: 1
190+
m_EditorHideFlags: 0
191+
m_Script: {fileID: 1086532457, guid: 06783fc4099d1e04ba318698c43e592c, type: 3}
192+
m_Name:
193+
m_EditorClassIdentifier:
194+
--- !u!114 &7465956930384201913
195+
MonoBehaviour:
196+
m_ObjectHideFlags: 0
197+
m_CorrespondingSourceObject: {fileID: 0}
198+
m_PrefabInstance: {fileID: 0}
199+
m_PrefabAsset: {fileID: 0}
200+
m_GameObject: {fileID: 2538125824281061406}
201+
m_Enabled: 1
202+
m_EditorHideFlags: 0
203+
m_Script: {fileID: 417179157, guid: 06783fc4099d1e04ba318698c43e592c, type: 3}
204+
m_Name:
205+
m_EditorClassIdentifier:
206+
--- !u!114 &2324118260483432124
207+
MonoBehaviour:
208+
m_ObjectHideFlags: 0
209+
m_CorrespondingSourceObject: {fileID: 0}
210+
m_PrefabInstance: {fileID: 0}
211+
m_PrefabAsset: {fileID: 0}
212+
m_GameObject: {fileID: 2538125824281061406}
213+
m_Enabled: 1
214+
m_EditorHideFlags: 0
215+
m_Script: {fileID: -508812344, guid: 06783fc4099d1e04ba318698c43e592c, type: 3}
216+
m_Name:
217+
m_EditorClassIdentifier:
218+
_savedProperties:
219+
- myStrings:
220+
- IntPair
221+
Count: 1
222+
- myStrings:
223+
- IntPair
224+
- x
225+
Count: 2
226+
- myStrings:
227+
- IntPair
228+
- y
229+
Count: 2
230+
- myStrings:
231+
- IntPair
232+
- directionX
233+
Count: 2
234+
- myStrings:
235+
- IntPair
236+
- directionY
237+
Count: 2
238+
_toMapProperties:
239+
- myStrings:
240+
- IntPair
241+
- x
242+
Count: 2
243+
- myStrings:
244+
- IntPair
245+
- y
246+
Count: 2
247+
- myStrings:
248+
- IntPair
249+
- directionX
250+
Count: 2
251+
- myStrings:
252+
- IntPair
253+
- directionY
254+
Count: 2
255+
_configurationName: asteroidSensor
256+
operationPerPropertyIndexes: 44a885c012185c6611185c66c53725802ac37ddd
257+
operationPerPropertyOperations: 0000000000000000000000000000000000000000
258+
specificValuePerPropertyIndexes: 44a885c012185c6611185c66c53725802ac37ddd
259+
specificValuePerPropertyValues:
260+
-
261+
-
262+
-
263+
-
264+
-

Diff for: Assets/Prefabs/ContactPoint.prefab

+231
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,231 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!1 &1928258193019881226
4+
GameObject:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
serializedVersion: 6
10+
m_Component:
11+
- component: {fileID: 1928258193019881222}
12+
- component: {fileID: 1928258193019881223}
13+
- component: {fileID: 1928258193019881224}
14+
- component: {fileID: 1928258193019881225}
15+
- component: {fileID: 5867392735308642566}
16+
- component: {fileID: 8102203778927337296}
17+
- component: {fileID: 7619468183703182776}
18+
- component: {fileID: 8500906310819211471}
19+
m_Layer: 0
20+
m_Name: ContactPoint
21+
m_TagString: Untagged
22+
m_Icon: {fileID: 0}
23+
m_NavMeshLayer: 0
24+
m_StaticEditorFlags: 0
25+
m_IsActive: 1
26+
--- !u!4 &1928258193019881222
27+
Transform:
28+
m_ObjectHideFlags: 0
29+
m_CorrespondingSourceObject: {fileID: 0}
30+
m_PrefabInstance: {fileID: 0}
31+
m_PrefabAsset: {fileID: 0}
32+
m_GameObject: {fileID: 1928258193019881226}
33+
m_LocalRotation: {x: 0, y: 0, z: 0.6223949, w: 0.78270346}
34+
m_LocalPosition: {x: 4.196975, y: -11.0758295, z: 0}
35+
m_LocalScale: {x: 1, y: 1, z: 1}
36+
m_ConstrainProportionsScale: 0
37+
m_Children: []
38+
m_Father: {fileID: 0}
39+
m_RootOrder: 0
40+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
41+
--- !u!212 &1928258193019881223
42+
SpriteRenderer:
43+
m_ObjectHideFlags: 0
44+
m_CorrespondingSourceObject: {fileID: 0}
45+
m_PrefabInstance: {fileID: 0}
46+
m_PrefabAsset: {fileID: 0}
47+
m_GameObject: {fileID: 1928258193019881226}
48+
m_Enabled: 1
49+
m_CastShadows: 0
50+
m_ReceiveShadows: 0
51+
m_DynamicOccludee: 1
52+
m_StaticShadowCaster: 0
53+
m_MotionVectors: 1
54+
m_LightProbeUsage: 1
55+
m_ReflectionProbeUsage: 1
56+
m_RayTracingMode: 0
57+
m_RayTraceProcedural: 0
58+
m_RenderingLayerMask: 1
59+
m_RendererPriority: 0
60+
m_Materials:
61+
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
62+
m_StaticBatchInfo:
63+
firstSubMesh: 0
64+
subMeshCount: 0
65+
m_StaticBatchRoot: {fileID: 0}
66+
m_ProbeAnchor: {fileID: 0}
67+
m_LightProbeVolumeOverride: {fileID: 0}
68+
m_ScaleInLightmap: 1
69+
m_ReceiveGI: 1
70+
m_PreserveUVs: 0
71+
m_IgnoreNormalsForChartDetection: 0
72+
m_ImportantGI: 0
73+
m_StitchLightmapSeams: 1
74+
m_SelectedEditorRenderState: 0
75+
m_MinimumChartSize: 4
76+
m_AutoUVMaxDistance: 0.5
77+
m_AutoUVMaxAngle: 89
78+
m_LightmapParameters: {fileID: 0}
79+
m_SortingLayerID: 0
80+
m_SortingLayer: 0
81+
m_SortingOrder: 0
82+
m_Sprite: {fileID: 7482667652216324306, guid: 311925a002f4447b3a28927169b83ea6,
83+
type: 3}
84+
m_Color: {r: 1, g: 0, b: 0, a: 1}
85+
m_FlipX: 0
86+
m_FlipY: 0
87+
m_DrawMode: 0
88+
m_Size: {x: 1, y: 1}
89+
m_AdaptiveModeThreshold: 0.5
90+
m_SpriteTileMode: 0
91+
m_WasSpriteAssigned: 1
92+
m_MaskInteraction: 0
93+
m_SpriteSortPoint: 0
94+
--- !u!61 &1928258193019881224
95+
BoxCollider2D:
96+
m_ObjectHideFlags: 0
97+
m_CorrespondingSourceObject: {fileID: 0}
98+
m_PrefabInstance: {fileID: 0}
99+
m_PrefabAsset: {fileID: 0}
100+
m_GameObject: {fileID: 1928258193019881226}
101+
m_Enabled: 1
102+
m_Density: 1
103+
m_Material: {fileID: 0}
104+
m_IsTrigger: 1
105+
m_UsedByEffector: 0
106+
m_UsedByComposite: 0
107+
m_Offset: {x: 0, y: 0}
108+
m_SpriteTilingProperty:
109+
border: {x: 0, y: 0, z: 0, w: 0}
110+
pivot: {x: 0.5, y: 0.5}
111+
oldSize: {x: 1, y: 1}
112+
newSize: {x: 1, y: 1}
113+
adaptiveTilingThreshold: 0.5
114+
drawMode: 0
115+
adaptiveTiling: 0
116+
m_AutoTiling: 0
117+
serializedVersion: 2
118+
m_Size: {x: 1, y: 1}
119+
m_EdgeRadius: 0
120+
--- !u!114 &1928258193019881225
121+
MonoBehaviour:
122+
m_ObjectHideFlags: 0
123+
m_CorrespondingSourceObject: {fileID: 0}
124+
m_PrefabInstance: {fileID: 0}
125+
m_PrefabAsset: {fileID: 0}
126+
m_GameObject: {fileID: 1928258193019881226}
127+
m_Enabled: 1
128+
m_EditorHideFlags: 0
129+
m_Script: {fileID: 11500000, guid: 1276adbd15c854ead910f967bb33e0ad, type: 3}
130+
m_Name:
131+
m_EditorClassIdentifier:
132+
direction: {x: 0, y: 0, z: 0}
133+
--- !u!114 &5867392735308642566
134+
MonoBehaviour:
135+
m_ObjectHideFlags: 0
136+
m_CorrespondingSourceObject: {fileID: 0}
137+
m_PrefabInstance: {fileID: 0}
138+
m_PrefabAsset: {fileID: 0}
139+
m_GameObject: {fileID: 1928258193019881226}
140+
m_Enabled: 1
141+
m_EditorHideFlags: 0
142+
m_Script: {fileID: 11500000, guid: b2f93ecebf74349fa82039e09c1e1011, type: 3}
143+
m_Name:
144+
m_EditorClassIdentifier:
145+
x: 0
146+
y: 0
147+
directionX: 0
148+
directionY: 0
149+
--- !u!114 &8102203778927337296
150+
MonoBehaviour:
151+
m_ObjectHideFlags: 0
152+
m_CorrespondingSourceObject: {fileID: 0}
153+
m_PrefabInstance: {fileID: 0}
154+
m_PrefabAsset: {fileID: 0}
155+
m_GameObject: {fileID: 1928258193019881226}
156+
m_Enabled: 1
157+
m_EditorHideFlags: 0
158+
m_Script: {fileID: 1086532457, guid: 06783fc4099d1e04ba318698c43e592c, type: 3}
159+
m_Name:
160+
m_EditorClassIdentifier:
161+
--- !u!114 &7619468183703182776
162+
MonoBehaviour:
163+
m_ObjectHideFlags: 0
164+
m_CorrespondingSourceObject: {fileID: 0}
165+
m_PrefabInstance: {fileID: 0}
166+
m_PrefabAsset: {fileID: 0}
167+
m_GameObject: {fileID: 1928258193019881226}
168+
m_Enabled: 1
169+
m_EditorHideFlags: 0
170+
m_Script: {fileID: 417179157, guid: 06783fc4099d1e04ba318698c43e592c, type: 3}
171+
m_Name:
172+
m_EditorClassIdentifier:
173+
--- !u!114 &8500906310819211471
174+
MonoBehaviour:
175+
m_ObjectHideFlags: 0
176+
m_CorrespondingSourceObject: {fileID: 0}
177+
m_PrefabInstance: {fileID: 0}
178+
m_PrefabAsset: {fileID: 0}
179+
m_GameObject: {fileID: 1928258193019881226}
180+
m_Enabled: 1
181+
m_EditorHideFlags: 0
182+
m_Script: {fileID: -508812344, guid: 06783fc4099d1e04ba318698c43e592c, type: 3}
183+
m_Name:
184+
m_EditorClassIdentifier:
185+
_savedProperties:
186+
- myStrings:
187+
- IntPair
188+
Count: 1
189+
- myStrings:
190+
- IntPair
191+
- x
192+
Count: 2
193+
- myStrings:
194+
- IntPair
195+
- y
196+
Count: 2
197+
- myStrings:
198+
- IntPair
199+
- directionX
200+
Count: 2
201+
- myStrings:
202+
- IntPair
203+
- directionY
204+
Count: 2
205+
_toMapProperties:
206+
- myStrings:
207+
- IntPair
208+
- x
209+
Count: 2
210+
- myStrings:
211+
- IntPair
212+
- y
213+
Count: 2
214+
- myStrings:
215+
- IntPair
216+
- directionX
217+
Count: 2
218+
- myStrings:
219+
- IntPair
220+
- directionY
221+
Count: 2
222+
_configurationName: contactPointSensor
223+
operationPerPropertyIndexes: 44a885c012185c6611185c66c53725802ac37ddd
224+
operationPerPropertyOperations: 0000000000000000000000000000000000000000
225+
specificValuePerPropertyIndexes: 44a885c012185c6611185c66c53725802ac37ddd
226+
specificValuePerPropertyValues:
227+
-
228+
-
229+
-
230+
-
231+
-

Diff for: Assets/Prefabs/ContactPoint.prefab.meta

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Assets/Resources.meta

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)