Compare commits

...

2 Commits

  1. 8
      Assets/Materials/Background.meta
  2. 0
      Assets/Materials/Background/Bricks_01_mat.mat
  3. 0
      Assets/Materials/Background/Bricks_01_mat.mat.meta
  4. 6
      Assets/Materials/Background/M_Wood2.mat
  5. 0
      Assets/Materials/Background/M_Wood2.mat.meta
  6. 0
      Assets/Materials/Background/M_Wood3.mat
  7. 0
      Assets/Materials/Background/M_Wood3.mat.meta
  8. 22
      Assets/Materials/NewBall.mat
  9. 2
      Assets/Materials/NewBall.mat.meta
  10. 61
      Assets/Materials/Player.mat
  11. 8
      Assets/Materials/Player.mat.meta
  12. 99
      Assets/Prefabs/Collectables/NewBall.prefab
  13. 91
      Assets/Prefabs/Player.prefab
  14. 2
      Assets/Scripts/Game/GameManager.cs
  15. 26
      Assets/Scripts/Game/NewBall.cs
  16. 2203
      Assets/Shaders/Circle.shadergraph
  17. 10
      Assets/Shaders/Circle.shadergraph.meta
  18. 2
      ProjectSettings/ProjectSettings.asset

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9df3137806668c62dbe6ef1fe5223198
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -22,9 +22,7 @@ Material:
m_PrefabAsset: {fileID: 0}
m_Name: M_Wood2
m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3}
m_ValidKeywords:
- _GLOSSINESS_FROM_BASE_ALPHA
- _SPECULAR_COLOR
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
@ -61,7 +59,7 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Texture: {fileID: 2800000, guid: df690bcdbe37a3fb49fe354efbd81b6b, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:

@ -8,7 +8,7 @@ Material:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: NewBall
m_Shader: {fileID: 4800000, guid: da25e23f4bce4102a45b0743b67525c4, type: 3}
m_Shader: {fileID: -6465566751694194690, guid: 11508ba6b7a598ad3bbb1d90c2f66d3e, type: 3}
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
@ -25,7 +25,7 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Texture: {fileID: 2800000, guid: 47e353a78c92b9838963e533e37462e5, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MaskTex:
@ -36,12 +36,26 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- PixelSnap: 0
- _BorderThickness: 0.3
- _EnableExternalAlpha: 0
- _Thickness: 0.25
m_Colors:
- _Color: {r: 1.319508, g: 1.319508, b: 1.319508, a: 1}
- _BorderColor: {r: 5.992157, g: 5.992157, b: 0, a: 1}
- _Color: {r: 0, g: 0, b: 0, a: 0}
- _Flip: {r: 1, g: 1, b: 1, a: 1}
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: efe64386af2c943be9fe140cdb79ee9b
guid: 0e93cf83970eef70b810a2f23a2b8038
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000

@ -0,0 +1,61 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Player
m_Shader: {fileID: -6465566751694194690, guid: 11508ba6b7a598ad3bbb1d90c2f66d3e, type: 3}
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _AlphaTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MaskTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _NormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _BorderThickness: 0.137
- _EnableExternalAlpha: 0
- _Thickness: 0.05
m_Colors:
- _BorderColor: {r: 4.894118, g: 0.1254902, b: 0, a: 1}
- _Color: {r: 0, g: 0, b: 0, a: 1}
- _Flip: {r: 1, g: 1, b: 1, a: 1}
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3fe1e2c8e63973b7892ed995b6c4d7a9
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

@ -1,89 +1,5 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2068902108434861102
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3019560421038336810}
- component: {fileID: 4286311027153464049}
m_Layer: 7
m_Name: MainColor
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3019560421038336810
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2068902108434861102}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.9, y: 0.9, z: 0.9}
m_ConstrainProportionsScale: 1
m_Children: []
m_Father: {fileID: 5863603256186968683}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &4286311027153464049
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2068902108434861102}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: efe64386af2c943be9fe140cdb79ee9b, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 1
m_Sprite: {fileID: 21300000, guid: 47e353a78c92b9838963e533e37462e5, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1, y: 1}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &5863603256186968685
GameObject:
m_ObjectHideFlags: 0
@ -93,7 +9,7 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 5863603256186968683}
- component: {fileID: 5863603256186968682}
- component: {fileID: 7174826132722473217}
- component: {fileID: 5863603256186968680}
- component: {fileID: 5863603256186968662}
- component: {fileID: 5863603256186968681}
@ -113,14 +29,13 @@ Transform:
m_GameObject: {fileID: 5863603256186968685}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.75, y: 0.75, z: 0.75}
m_ConstrainProportionsScale: 1
m_Children:
- {fileID: 3019560421038336810}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &5863603256186968682
--- !u!212 &7174826132722473217
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -140,7 +55,7 @@ SpriteRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: efe64386af2c943be9fe140cdb79ee9b, type: 2}
- {fileID: 2100000, guid: 0e93cf83970eef70b810a2f23a2b8038, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
@ -202,6 +117,8 @@ MonoBehaviour:
m_EditorClassIdentifier:
permanentDuration: 5
temporaryDuration: 10
permanentColor: {r: 5.992157, g: 5.992157, b: 0, a: 1}
temporaryColor: {r: 0, g: 5.992157, b: 5.992157, a: 1}
--- !u!114 &5863603256186968681
MonoBehaviour:
m_ObjectHideFlags: 0

@ -1,89 +1,5 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &4432154768687560732
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4352057116839657264}
- component: {fileID: 3692058641684352833}
m_Layer: 8
m_Name: MainColor
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4352057116839657264
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4432154768687560732}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.94, y: 0.8, z: 0.94}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 5402279313309450413}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &3692058641684352833
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4432154768687560732}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 1
m_Sprite: {fileID: 21300000, guid: 47e353a78c92b9838963e533e37462e5, type: 3}
m_Color: {r: 0.13207549, g: 0.13207549, b: 0.13207549, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1, y: 1}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &5402279313309450415
GameObject:
m_ObjectHideFlags: 0
@ -115,8 +31,7 @@ Transform:
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 5, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 4352057116839657264}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -140,7 +55,7 @@ SpriteRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 2100000, guid: 3fe1e2c8e63973b7892ed995b6c4d7a9, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
@ -162,7 +77,7 @@ SpriteRenderer:
m_SortingLayer: 0
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: 47e353a78c92b9838963e533e37462e5, type: 3}
m_Color: {r: 1, g: 0.85783035, b: 0, a: 1}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0

@ -50,7 +50,7 @@ namespace Game {
}
private void SetupPlayers() {
Settings.Type = Type.AI;
Settings.Type = Type.Hybrid;
Settings.AIDifficulty = Difficulty.VeryHard;
var p1Obj = Instantiate(playerPrefab);

@ -7,23 +7,17 @@ namespace Game {
public float permanentDuration;
public float temporaryDuration;
private bool isPermanent;
public bool IsPermanent {
private get => isPermanent;
set {
isPermanent = value;
const float intensity = 1f;
float factor = Mathf.Pow(2, intensity);
float r = value ? 1 : 0;
float g = 1;
float b = value ? 0 : 1;
Color borderColor = new Vector4(r, g, b, 1) * factor;
GetComponent<SpriteRenderer>().material.color = borderColor;
}
}
[ColorUsage(true, true)]
public Color permanentColor;
[ColorUsage(true, true)]
public Color temporaryColor;
protected override void Setup() {
private static readonly int BorderColor = Shader.PropertyToID("_BorderColor");
public bool IsPermanent { get; set; }
protected override void Setup() {
GetComponent<SpriteRenderer>().material.SetColor(BorderColor, IsPermanent ? permanentColor : temporaryColor);
}
protected override float Duration() {
@ -31,7 +25,7 @@ namespace Game {
}
protected override void OnCollect(Player player) {
GameManager.Singleton.SpawnBall(player, isPermanent);
GameManager.Singleton.SpawnBall(player, IsPermanent);
}
}
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 11508ba6b7a598ad3bbb1d90c2f66d3e
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

@ -165,7 +165,7 @@ PlayerSettings:
iPhone: 0
tvOS: 0
overrideDefaultApplicationIdentifier: 0
AndroidBundleVersionCode: 8
AndroidBundleVersionCode: 9
AndroidMinSdkVersion: 24
AndroidTargetSdkVersion: 33
AndroidPreferredInstallLocation: 1

Loading…
Cancel
Save