Skip to content

Commit

Permalink
Tune the grid and create aworkable drag and drop scripts working with…
Browse files Browse the repository at this point in the history
… the tiles.
  • Loading branch information
MaximilienNaveau committed Oct 7, 2023
1 parent 041f236 commit 161171e
Show file tree
Hide file tree
Showing 11 changed files with 2,108 additions and 6,237 deletions.
50 changes: 45 additions & 5 deletions trampoline_unity/trampoline/Assets/Prefabs/Row.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ RectTransform:
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_ConstrainProportionsScale: 0
m_Children:
- {fileID: 311206096919490310}
- {fileID: 3324250163197255594}
Expand All @@ -39,12 +40,11 @@ RectTransform:
- {fileID: 1469783588774949070}
- {fileID: 3824640037677521980}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: -310, y: 590}
m_SizeDelta: {x: -620, y: -1180}
m_AnchoredPosition: {x: 360, y: -640}
m_SizeDelta: {x: 688, y: 60}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &4638918319007224413
MonoBehaviour:
Expand All @@ -65,8 +65,8 @@ MonoBehaviour:
m_Bottom: 0
m_ChildAlignment: 4
m_Spacing: 16
m_ChildForceExpandWidth: 0
m_ChildForceExpandHeight: 0
m_ChildForceExpandWidth: 1
m_ChildForceExpandHeight: 1
m_ChildControlWidth: 0
m_ChildControlHeight: 0
m_ChildScaleWidth: 0
Expand All @@ -89,6 +89,7 @@ PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 93919183211803318}
m_Modifications:
- target: {fileID: 960154668344192920, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
Expand Down Expand Up @@ -180,6 +181,9 @@ PrefabInstance:
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
--- !u!224 &7171208139698049361 stripped
RectTransform:
Expand All @@ -191,12 +195,17 @@ PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 93919183211803318}
m_Modifications:
- target: {fileID: 960154668344192920, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
propertyPath: m_Name
value: Tile
objectReference: {fileID: 0}
- target: {fileID: 7554341151497266033, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8751810341106011001, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
propertyPath: m_Pivot.x
value: 0.5
Expand Down Expand Up @@ -282,6 +291,9 @@ PrefabInstance:
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
--- !u!224 &7453335006309988719 stripped
RectTransform:
Expand All @@ -293,6 +305,7 @@ PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 93919183211803318}
m_Modifications:
- target: {fileID: 960154668344192920, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
Expand Down Expand Up @@ -384,6 +397,9 @@ PrefabInstance:
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
--- !u!224 &6787325439838819606 stripped
RectTransform:
Expand All @@ -395,6 +411,7 @@ PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 93919183211803318}
m_Modifications:
- target: {fileID: 960154668344192920, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
Expand Down Expand Up @@ -486,6 +503,9 @@ PrefabInstance:
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
--- !u!224 &3824640037677521980 stripped
RectTransform:
Expand All @@ -497,6 +517,7 @@ PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 93919183211803318}
m_Modifications:
- target: {fileID: 960154668344192920, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
Expand Down Expand Up @@ -588,6 +609,9 @@ PrefabInstance:
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
--- !u!224 &3324250163197255594 stripped
RectTransform:
Expand All @@ -599,6 +623,7 @@ PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 93919183211803318}
m_Modifications:
- target: {fileID: 960154668344192920, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
Expand Down Expand Up @@ -690,6 +715,9 @@ PrefabInstance:
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
--- !u!224 &1788207349822829548 stripped
RectTransform:
Expand All @@ -701,6 +729,7 @@ PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 93919183211803318}
m_Modifications:
- target: {fileID: 960154668344192920, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
Expand Down Expand Up @@ -792,6 +821,9 @@ PrefabInstance:
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
--- !u!224 &1580024911039785160 stripped
RectTransform:
Expand All @@ -803,6 +835,7 @@ PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 93919183211803318}
m_Modifications:
- target: {fileID: 960154668344192920, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
Expand Down Expand Up @@ -894,6 +927,9 @@ PrefabInstance:
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
--- !u!224 &1469783588774949070 stripped
RectTransform:
Expand All @@ -905,6 +941,7 @@ PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 93919183211803318}
m_Modifications:
- target: {fileID: 960154668344192920, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
Expand Down Expand Up @@ -996,6 +1033,9 @@ PrefabInstance:
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0472a1b77bf36e0358fd644e4dbebbbe, type: 3}
--- !u!224 &311206096919490310 stripped
RectTransform:
Expand Down
103 changes: 103 additions & 0 deletions trampoline_unity/trampoline/Assets/Prefabs/Token 1.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &824320981898137848
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8766051720918671420}
- component: {fileID: 8317251579729537531}
- component: {fileID: 9123712633551593827}
- component: {fileID: 7993593636474770712}
m_Layer: 5
m_Name: Token 1
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &8766051720918671420
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 824320981898137848}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 360, y: -640}
m_SizeDelta: {x: 60, y: 60}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!223 &8317251579729537531
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 824320981898137848}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 0
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_VertexColorAlwaysGammaSpace: 0
m_AdditionalShaderChannelsFlag: 0
m_UpdateRectTransformForStandalone: 0
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!114 &9123712633551593827
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 824320981898137848}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
m_PresetInfoIsWorld: 0
--- !u!114 &7993593636474770712
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 824320981898137848}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295

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

Loading

0 comments on commit 161171e

Please sign in to comment.