Skip to content

Commit

Permalink
Add functionality to collectable chip, add chips to levels (#279)
Browse files Browse the repository at this point in the history
* Add functionality to collectable chip, add chips to levels

* Add new better textures to chips
  • Loading branch information
Fueredoriku authored Nov 12, 2023
1 parent 94daf66 commit d2b356d
Show file tree
Hide file tree
Showing 15 changed files with 1,666 additions and 81 deletions.
27 changes: 14 additions & 13 deletions Assets/Materials/ChipMat.mat
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,31 @@ Material:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: ChipMat
m_Shader: {fileID: -6465566751694194690, guid: f8ec4cafbe9538b4aa600770a5a8bf02, type: 3}
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- MAIN_LIGHT_CALCULATE_SHADOWS
- _MAIN_LIGHT_SHADOWS_CASCADE
- _SHADOWS_SOFT
- _DETAIL_MULX2
- _METALLICSPECGLOSSMAP
- _NORMALMAP
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
stringTagMap:
RenderType: Opaque
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BaseMap:
m_Texture: {fileID: 2800000, guid: 8c71f8451101eaf45b2d74a7b6416cf9, type: 3}
m_Texture: {fileID: 2800000, guid: 4d239a72689b6b24d8a4c543bee5086f, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Texture: {fileID: 2800000, guid: 93b485e8aeff4ec449b6c412874b60c8, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
Expand All @@ -43,27 +44,27 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Texture: {fileID: 2800000, guid: 93b485e8aeff4ec449b6c412874b60c8, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: 8c71f8451101eaf45b2d74a7b6416cf9, type: 3}
m_Texture: {fileID: 2800000, guid: 4d239a72689b6b24d8a4c543bee5086f, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Texture: {fileID: 2800000, guid: f8a0830ccbda80644aa0f3bea4ef9a41, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Texture: {fileID: 2800000, guid: c04c325230116fd43ad16da27321f479, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
Expand Down Expand Up @@ -110,12 +111,12 @@ Material:
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Parallax: 0.0369
- _QueueControl: 0
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SHADOWS_SOFT: 1
- _Smoothness: 0.2522936
- _Smoothness: 0.586
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
Expand Down
Binary file modified Assets/Models/chip.fbx
Binary file not shown.
7 changes: 1 addition & 6 deletions Assets/Models/chip.fbx.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 61 additions & 3 deletions Assets/Prefabs/Interactables/CollectableChip.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ GameObject:
m_Component:
- component: {fileID: 8525719441673604141}
- component: {fileID: 3250137696803859235}
- component: {fileID: 3278943344196318606}
m_Layer: 0
m_Name: CollectableChip
m_TagString: Untagged
Expand All @@ -29,7 +30,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1787136017405712441}
- {fileID: 7196334878175834095}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
Expand All @@ -46,13 +47,66 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
chipModel: {fileID: 1407091285259862659}
--- !u!65 &3278943344196318606
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 789647354167288699}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 1
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 1.2, z: 0}
--- !u!1 &8079263852150304378
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7196334878175834095}
m_Layer: 0
m_Name: modelHolder
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7196334878175834095
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8079263852150304378}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1787136017405712441}
m_Father: {fileID: 8525719441673604141}
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &2253936990560681938
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 8525719441673604141}
m_TransformParent: {fileID: 7196334878175834095}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: e293b45d360776844bbc11e07ba1b36d, type: 3}
propertyPath: m_RootOrder
Expand All @@ -76,7 +130,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: e293b45d360776844bbc11e07ba1b36d, type: 3}
propertyPath: m_LocalPosition.y
value: 0
value: 0.2
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: e293b45d360776844bbc11e07ba1b36d, type: 3}
propertyPath: m_LocalPosition.z
Expand Down Expand Up @@ -114,6 +168,10 @@ PrefabInstance:
propertyPath: m_ConstrainProportionsScale
value: 1
objectReference: {fileID: 0}
- target: {fileID: -7511558181221131132, guid: e293b45d360776844bbc11e07ba1b36d, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 62c2fe19ac358344a9230efab9fdc678, type: 2}
- target: {fileID: 919132149155446097, guid: e293b45d360776844bbc11e07ba1b36d, type: 3}
propertyPath: m_Name
value: chip
Expand Down
Loading

0 comments on commit d2b356d

Please sign in to comment.