diff --git a/Assets/art/Resources/runic_a.png b/Assets/art/Resources/runic_a.png index 2c87ad0..70b4a65 100644 Binary files a/Assets/art/Resources/runic_a.png and b/Assets/art/Resources/runic_a.png differ diff --git a/Assets/art/Resources/runic_a.png.meta b/Assets/art/Resources/runic_a.png.meta index 5c49323..b077b6d 100644 --- a/Assets/art/Resources/runic_a.png.meta +++ b/Assets/art/Resources/runic_a.png.meta @@ -1,6 +1,6 @@ fileFormatVersion: 2 -guid: 66dd4c2892ce4c740a86a6aa21f4f4b7 -timeCreated: 1454150346 +guid: bd4033904c00e7e459e6c2b5b6885440 +timeCreated: 1454180206 licenseType: Free TextureImporter: fileIDToRecycleName: {} diff --git a/Assets/art/Resources/runic_b.png.meta b/Assets/art/Resources/runic_b.png.meta index e676ce1..35f4bc8 100644 --- a/Assets/art/Resources/runic_b.png.meta +++ b/Assets/art/Resources/runic_b.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_c.png.meta b/Assets/art/Resources/runic_c.png.meta index b805b6c..86fd105 100644 --- a/Assets/art/Resources/runic_c.png.meta +++ b/Assets/art/Resources/runic_c.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_d.png.meta b/Assets/art/Resources/runic_d.png.meta index 364727e..50dfe60 100644 --- a/Assets/art/Resources/runic_d.png.meta +++ b/Assets/art/Resources/runic_d.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_e.png.meta b/Assets/art/Resources/runic_e.png.meta index 63ef036..5c24a42 100644 --- a/Assets/art/Resources/runic_e.png.meta +++ b/Assets/art/Resources/runic_e.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_f.png.meta b/Assets/art/Resources/runic_f.png.meta index c111d17..b0224ef 100644 --- a/Assets/art/Resources/runic_f.png.meta +++ b/Assets/art/Resources/runic_f.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_g.png.meta b/Assets/art/Resources/runic_g.png.meta index f4aa2ad..101357f 100644 --- a/Assets/art/Resources/runic_g.png.meta +++ b/Assets/art/Resources/runic_g.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_h.png.meta b/Assets/art/Resources/runic_h.png.meta index 6b3f8a8..fa9b280 100644 --- a/Assets/art/Resources/runic_h.png.meta +++ b/Assets/art/Resources/runic_h.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_i.png.meta b/Assets/art/Resources/runic_i.png.meta index 1e9b83d..5031901 100644 --- a/Assets/art/Resources/runic_i.png.meta +++ b/Assets/art/Resources/runic_i.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_j.png.meta b/Assets/art/Resources/runic_j.png.meta index d28f503..56c3cd3 100644 --- a/Assets/art/Resources/runic_j.png.meta +++ b/Assets/art/Resources/runic_j.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_k.png.meta b/Assets/art/Resources/runic_k.png.meta index 1e66978..9981fb7 100644 --- a/Assets/art/Resources/runic_k.png.meta +++ b/Assets/art/Resources/runic_k.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_l.png.meta b/Assets/art/Resources/runic_l.png.meta index f51989c..bc1c4a6 100644 --- a/Assets/art/Resources/runic_l.png.meta +++ b/Assets/art/Resources/runic_l.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_m.png.meta b/Assets/art/Resources/runic_m.png.meta index d49e3a9..87bfdcc 100644 --- a/Assets/art/Resources/runic_m.png.meta +++ b/Assets/art/Resources/runic_m.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_n.png.meta b/Assets/art/Resources/runic_n.png.meta index 47b220e..f5f5d48 100644 --- a/Assets/art/Resources/runic_n.png.meta +++ b/Assets/art/Resources/runic_n.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_o.png.meta b/Assets/art/Resources/runic_o.png.meta index 75af061..8a14707 100644 --- a/Assets/art/Resources/runic_o.png.meta +++ b/Assets/art/Resources/runic_o.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_p.png.meta b/Assets/art/Resources/runic_p.png.meta index 1b36350..cc28529 100644 --- a/Assets/art/Resources/runic_p.png.meta +++ b/Assets/art/Resources/runic_p.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_q.png.meta b/Assets/art/Resources/runic_q.png.meta index 6ff43ab..fd42505 100644 --- a/Assets/art/Resources/runic_q.png.meta +++ b/Assets/art/Resources/runic_q.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_r.png.meta b/Assets/art/Resources/runic_r.png.meta index 391391b..77b7167 100644 --- a/Assets/art/Resources/runic_r.png.meta +++ b/Assets/art/Resources/runic_r.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_s.png.meta b/Assets/art/Resources/runic_s.png.meta index 99a139f..09ae0dc 100644 --- a/Assets/art/Resources/runic_s.png.meta +++ b/Assets/art/Resources/runic_s.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_t.png.meta b/Assets/art/Resources/runic_t.png.meta index 0c699d2..3efa094 100644 --- a/Assets/art/Resources/runic_t.png.meta +++ b/Assets/art/Resources/runic_t.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_u.png.meta b/Assets/art/Resources/runic_u.png.meta index b789a4d..fde4b2f 100644 --- a/Assets/art/Resources/runic_u.png.meta +++ b/Assets/art/Resources/runic_u.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_v.png.meta b/Assets/art/Resources/runic_v.png.meta index 81c3de5..97e809d 100644 --- a/Assets/art/Resources/runic_v.png.meta +++ b/Assets/art/Resources/runic_v.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_w.png.meta b/Assets/art/Resources/runic_w.png.meta index 3fdad3d..3d15ae1 100644 --- a/Assets/art/Resources/runic_w.png.meta +++ b/Assets/art/Resources/runic_w.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_x.png.meta b/Assets/art/Resources/runic_x.png.meta index c9ed537..79c5298 100644 --- a/Assets/art/Resources/runic_x.png.meta +++ b/Assets/art/Resources/runic_x.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_y.png.meta b/Assets/art/Resources/runic_y.png.meta index a9e57bb..9f5eacf 100644 --- a/Assets/art/Resources/runic_y.png.meta +++ b/Assets/art/Resources/runic_y.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/art/Resources/runic_z.png.meta b/Assets/art/Resources/runic_z.png.meta index 986fe85..a89466d 100644 --- a/Assets/art/Resources/runic_z.png.meta +++ b/Assets/art/Resources/runic_z.png.meta @@ -30,7 +30,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: filterMode: -1 - aniso: -1 + aniso: 16 mipBias: -1 wrapMode: 1 nPOTScale: 0 diff --git a/Assets/prefabs/HexSprite.prefab b/Assets/prefabs/HexSprite.prefab index 2e0a789..aee9102 100644 --- a/Assets/prefabs/HexSprite.prefab +++ b/Assets/prefabs/HexSprite.prefab @@ -10,6 +10,7 @@ GameObject: - 4: {fileID: 401170} - 212: {fileID: 21265262} - 114: {fileID: 11401426} + - 135: {fileID: 13500080} m_Layer: 0 m_Name: HexSprite m_TagString: Untagged @@ -70,6 +71,19 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: symbol: {fileID: 21241768} + letterNum: 0 +--- !u!135 &13500080 +SphereCollider: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 118646} + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: .319999993 + m_Center: {x: 0, y: 0, z: 0} --- !u!212 &21241768 SpriteRenderer: m_ObjectHideFlags: 1 diff --git a/Assets/scenes/gameplay_01.unity b/Assets/scenes/gameplay_01.unity new file mode 100644 index 0000000..f1d68ad --- /dev/null +++ b/Assets/scenes/gameplay_01.unity @@ -0,0 +1,371 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} + m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} + m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 3 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 1 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 0 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666672 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &132542564 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 132542565} + - 33: {fileID: 132542568} + - 136: {fileID: 132542567} + - 23: {fileID: 132542566} + - 114: {fileID: 132542569} + - 54: {fileID: 132542570} + m_Layer: 0 + m_Name: Capsule + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &132542565 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 132542564} + m_LocalRotation: {x: .707106829, y: 0, z: 0, w: .707106709} + m_LocalPosition: {x: 0, y: 0, z: -.5} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1624102091} + m_RootOrder: 0 +--- !u!23 &132542566 +MeshRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 132542564} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 1 + m_ReflectionProbeUsage: 1 + m_ProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_ImportantGI: 0 + m_AutoUVMaxDistance: .5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!136 &132542567 +CapsuleCollider: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 132542564} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + m_Radius: .5 + m_Height: 2 + m_Direction: 1 + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &132542568 +MeshFilter: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 132542564} + m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0} +--- !u!114 &132542569 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 132542564} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b33743cc22e241142886a7758ce5dc74, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!54 &132542570 +Rigidbody: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 132542564} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!1 &478275693 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 478275698} + - 20: {fileID: 478275697} + - 92: {fileID: 478275696} + - 124: {fileID: 478275695} + - 81: {fileID: 478275694} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &478275694 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 478275693} + m_Enabled: 1 +--- !u!124 &478275695 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 478275693} + m_Enabled: 1 +--- !u!92 &478275696 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 478275693} + m_Enabled: 1 +--- !u!20 &478275697 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 478275693} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: .300000012 + far clip plane: 1000 + field of view: 60 + orthographic: 1 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: .0219999999 + m_StereoMirrorMode: 0 +--- !u!4 &478275698 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 478275693} + m_LocalRotation: {x: .707106829, y: 0, z: 0, w: .707106709} + m_LocalPosition: {x: 0, y: 10, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 +--- !u!1 &1624102089 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 1624102091} + - 114: {fileID: 1624102090} + m_Layer: 0 + m_Name: Level + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1624102090 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1624102089} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: cc18b8c2e3daedc418978ae09dd589d6, type: 3} + m_Name: + m_EditorClassIdentifier: + numRows: 9 + numColumns: 4 + xScale: 1 + yScale: 1 + dimension: .680000007 + hexagon: {fileID: 118646, guid: 950731e814d3ade4c91c128681c35ce2, type: 2} +--- !u!4 &1624102091 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1624102089} + m_LocalRotation: {x: .707106829, y: 0, z: 0, w: .707106709} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 132542565} + m_Father: {fileID: 0} + m_RootOrder: 1 +--- !u!1001 &1944944027 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 401170, guid: 950731e814d3ade4c91c128681c35ce2, type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401170, guid: 950731e814d3ade4c91c128681c35ce2, type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401170, guid: 950731e814d3ade4c91c128681c35ce2, type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401170, guid: 950731e814d3ade4c91c128681c35ce2, type: 2} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401170, guid: 950731e814d3ade4c91c128681c35ce2, type: 2} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401170, guid: 950731e814d3ade4c91c128681c35ce2, type: 2} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 401170, guid: 950731e814d3ade4c91c128681c35ce2, type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 401170, guid: 950731e814d3ade4c91c128681c35ce2, type: 2} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 118646, guid: 950731e814d3ade4c91c128681c35ce2, type: 2} + propertyPath: m_Name + value: RuneTile + objectReference: {fileID: 0} + - target: {fileID: 118646, guid: 950731e814d3ade4c91c128681c35ce2, type: 2} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 950731e814d3ade4c91c128681c35ce2, type: 2} + m_IsPrefabParent: 0 diff --git a/Assets/scenes/gameplay_01.unity.meta b/Assets/scenes/gameplay_01.unity.meta new file mode 100644 index 0000000..4db9be0 --- /dev/null +++ b/Assets/scenes/gameplay_01.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a9c3ca496461d394ab2950948321a11d +timeCreated: 1454171695 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/scripts/HexSpawner.cs b/Assets/scripts/HexSpawner.cs index aa33953..43b1fd0 100644 --- a/Assets/scripts/HexSpawner.cs +++ b/Assets/scripts/HexSpawner.cs @@ -29,17 +29,23 @@ public class HexSpawner : MonoBehaviour { GameObject hex; RuneBehaviour rune; int index = 0; + + float xOffset = numColumns * 1.5f * dimension / 2f; + float yOffset = numRows * 1f * ratio * dimension / 2f; + for (int row = 0; row < numRows; row++) { for (int col = 0; col < numColumns; col++) { - hex = GameObject.Instantiate(hexagon, transform.position + - new Vector3( - (3f*dimension*col + 1.5f*dimension * (row%2)) * xScale, - (row * ratio * dimension) * yScale, 0f), - Quaternion.identity) as GameObject; - hex.transform.localScale = new Vector3(xScale, yScale, 1f); + hex = GameObject.Instantiate(hexagon) as GameObject; hex.transform.parent = transform; + hex.transform.localScale = new Vector3(xScale, yScale, 1f); + + hex.transform.localPosition = new Vector3( + (3f * dimension * col + 1.5f * dimension * (row % 2)) * xScale - xOffset, + (row * ratio * dimension) * yScale - yOffset, 0f); + + hex.transform.localRotation = Quaternion.identity; rune = hex.GetComponent(); rune.SetSymbol(randomNums[index++]); diff --git a/Assets/scripts/PlayerControllerSR.cs b/Assets/scripts/PlayerControllerSR.cs new file mode 100644 index 0000000..18625bf --- /dev/null +++ b/Assets/scripts/PlayerControllerSR.cs @@ -0,0 +1,33 @@ +using UnityEngine; +using System.Collections; + +public class PlayerControllerSR : MonoBehaviour { + + private Rigidbody rb; + + // Use this for initialization + void Start () { + rb = GetComponent(); + } + + // Update is called once per frame + void Update () { + } + + void FixedUpdate() + { + if (Input.GetKey(KeyCode.A)) + rb.AddForce(-transform.right * 5); + if (Input.GetKey(KeyCode.D)) + rb.AddForce(transform.right * 5); + if (Input.GetKey(KeyCode.S)) + rb.AddForce(transform.forward * 5); + if (Input.GetKey(KeyCode.W)) + rb.AddForce(-transform.forward * 5); + } + + void OnTriggerEnter(Collider col) + { + Debug.Log(col.gameObject.GetComponent().letterNum); + } +} diff --git a/Assets/scripts/PlayerControllerSR.cs.meta b/Assets/scripts/PlayerControllerSR.cs.meta new file mode 100644 index 0000000..37e224f --- /dev/null +++ b/Assets/scripts/PlayerControllerSR.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b33743cc22e241142886a7758ce5dc74 +timeCreated: 1454177489 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/scripts/RuneBehaviour.cs b/Assets/scripts/RuneBehaviour.cs index fe2f31d..18983da 100644 --- a/Assets/scripts/RuneBehaviour.cs +++ b/Assets/scripts/RuneBehaviour.cs @@ -5,7 +5,7 @@ public class RuneBehaviour : MonoBehaviour { public static float range; public SpriteRenderer symbol; - private int letterNum; + public int letterNum; // Use this for initialization void Start () {