Skip to content

Commit

Permalink
basic crafing system
Browse files Browse the repository at this point in the history
  • Loading branch information
7ubi committed Jun 5, 2021
1 parent 22b61cd commit fc8d60f
Show file tree
Hide file tree
Showing 31 changed files with 8,792 additions and 2,635 deletions.
107 changes: 107 additions & 0 deletions Assets/Blocks/WaterBlock.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 05c289204ce8899439c8c204b49c710c, type: 3}
m_Name: WaterBlock
m_EditorClassIdentifier:
blockName: WaterBlock
faceData:
- name: Back
normal: {x: 0, y: 0, z: -1}
vertData:
- position: {x: 0, y: 0, z: 0}
uv: {x: 0, y: 0}
- position: {x: 0, y: 1, z: 0}
uv: {x: 0, y: 1}
- position: {x: 1, y: 1, z: 0}
uv: {x: 1, y: 1}
- position: {x: 1, y: 0, z: 0}
uv: {x: 1, y: 0}
triangles: 000000000100000003000000030000000100000002000000
faceOffset: {x: 0, y: 0, z: 0}
- name: Front
normal: {x: 0, y: 0, z: 1}
vertData:
- position: {x: 1, y: 1, z: 1}
uv: {x: 0, y: 1}
- position: {x: 0, y: 1, z: 1}
uv: {x: 1, y: 1}
- position: {x: 0, y: 0, z: 1}
uv: {x: 1, y: 0}
- position: {x: 1, y: 0, z: 1}
uv: {x: 0, y: 0}
triangles: 000000000100000002000000000000000200000003000000
faceOffset: {x: 0, y: 0, z: 0}
- name: Top
normal: {x: 0, y: 1, z: 0}
vertData:
- position: {x: 0, y: 1, z: 1}
uv: {x: 0, y: 1}
- position: {x: 1, y: 1, z: 1}
uv: {x: 1, y: 1}
- position: {x: 1, y: 1, z: 0}
uv: {x: 1, y: 0}
- position: {x: 0, y: 1, z: 0}
uv: {x: 0, y: 0}
triangles: 000000000100000002000000000000000200000003000000
faceOffset: {x: 0, y: 0, z: 0}
- name: Bottom
normal: {x: 0, y: -1, z: 0}
vertData:
- position: {x: 0, y: 0, z: 0}
uv: {x: 0, y: 1}
- position: {x: 1, y: 0, z: 0}
uv: {x: 1, y: 1}
- position: {x: 1, y: 0, z: 1}
uv: {x: 1, y: 0}
- position: {x: 0, y: 0, z: 1}
uv: {x: 0, y: 0}
triangles: 000000000100000002000000000000000200000003000000
faceOffset: {x: 0, y: 0, z: 0}
- name: Left
normal: {x: -1, y: 0, z: 0}
vertData:
- position: {x: 0, y: 1, z: 1}
uv: {x: 0, y: 1}
- position: {x: 0, y: 1, z: 0}
uv: {x: 1, y: 1}
- position: {x: 0, y: 0, z: 0}
uv: {x: 1, y: 0}
- position: {x: 0, y: 0, z: 1}
uv: {x: 0, y: 0}
triangles: 000000000100000002000000000000000200000003000000
faceOffset: {x: 0, y: 0, z: 0}
- name: Right
normal: {x: 1, y: 0, z: 0}
vertData:
- position: {x: 1, y: 0.9, z: 0}
uv: {x: 0, y: 1}
- position: {x: 1, y: 0.9, z: 1}
uv: {x: 1, y: 1}
- position: {x: 1, y: 0, z: 1}
uv: {x: 1, y: 0}
- position: {x: 1, y: 0, z: 0}
uv: {x: 0, y: 0}
triangles: 000000000100000002000000000000000200000003000000
faceOffset: {x: 0, y: 0, z: 0}
- name: Top_bot
normal: {x: 0, y: -1, z: 0}
vertData:
- position: {x: 0, y: 1, z: 0}
uv: {x: 0, y: 1}
- position: {x: 1, y: 1, z: 0}
uv: {x: 1, y: 1}
- position: {x: 1, y: 1, z: 1}
uv: {x: 1, y: 0}
- position: {x: 0, y: 1, z: 1}
uv: {x: 0, y: 0}
triangles: 000000000100000002000000000000000200000003000000
faceOffset: {x: 0, y: 0, z: 0}
8 changes: 8 additions & 0 deletions Assets/Blocks/WaterBlock.asset.meta

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

2 changes: 1 addition & 1 deletion Assets/Blocks/WaterBlockTop.asset
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 05c289204ce8899439c8c204b49c710c, type: 3}
m_Name: WaterBlockTop
m_EditorClassIdentifier:
blockName: Standard Block
blockName: Water Block Top
faceData:
- name: Back
normal: {x: 0, y: 0, z: -1}
Expand Down
8 changes: 8 additions & 0 deletions Assets/Crafting.meta

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

17 changes: 17 additions & 0 deletions Assets/Crafting/Furnace.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8fc3409ba0c0b5645863c5870549f607, type: 3}
m_Name: Furnace
m_EditorClassIdentifier:
name: Furnace
resultID: 12
recipe: 030000000300000003000000030000000000000003000000030000000000000000000000
8 changes: 8 additions & 0 deletions Assets/Crafting/Furnace.asset.meta

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

17 changes: 17 additions & 0 deletions Assets/Crafting/Plank.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8fc3409ba0c0b5645863c5870549f607, type: 3}
m_Name: Plank
m_EditorClassIdentifier:
name: Plank
resultID: 11
recipe: 000000000000000000000000000000000400000000000000000000000000000000000000
8 changes: 8 additions & 0 deletions Assets/Crafting/Plank.asset.meta

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

2 changes: 1 addition & 1 deletion Assets/Prefabs/Chunck.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ MonoBehaviour:
waterAnimTime: 1
_meshFilter: {fileID: 0}
topWater: {fileID: 11400000, guid: 45a34acc0a3987c44a2c989d2ffd2781, type: 2}
normalWater: {fileID: 11400000, guid: c15c24dd7305ab64cafca4d7657f8766, type: 2}
normalWater: {fileID: 11400000, guid: 398c2710ad2242b4089658c68c05bb7a, type: 2}
height: 60
_newMesh: {fileID: 0}
_vertices: []
Expand Down
166 changes: 166 additions & 0 deletions Assets/Prefabs/Craftable .prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &9058244410730532023
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 9058244410730532016}
- component: {fileID: 9058244410730532018}
- component: {fileID: 9058244410730532017}
- component: {fileID: 1273845759313324637}
m_Layer: 5
m_Name: 'Craftable '
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &9058244410730532016
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9058244410730532023}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 9058244412444177761}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 80, y: 80}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &9058244410730532018
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9058244410730532023}
m_CullTransparentMesh: 1
--- !u!114 &9058244410730532017
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9058244410730532023}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.25490198, g: 0.25490198, b: 0.25490198, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &1273845759313324637
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9058244410730532023}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b17e58cd803f8704394f5de70409bdd1, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &9058244412444177760
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 9058244412444177761}
- component: {fileID: 9058244412444177763}
- component: {fileID: 9058244412444177762}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &9058244412444177761
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9058244412444177760}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 9058244410730532016}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 65, y: 65}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &9058244412444177763
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9058244412444177760}
m_CullTransparentMesh: 1
--- !u!114 &9058244412444177762
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9058244412444177760}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
7 changes: 7 additions & 0 deletions Assets/Prefabs/Craftable .prefab.meta

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

Loading

0 comments on commit fc8d60f

Please sign in to comment.