Skip to content

Commit

Permalink
Merge pull request #181 from hhzzff/dev
Browse files Browse the repository at this point in the history
feat: ✨ Added community and missile explosion
  • Loading branch information
Cyh28 authored Apr 6, 2024
2 parents 78f1af5 + 6e83d73 commit 6c93503
Show file tree
Hide file tree
Showing 35 changed files with 1,314 additions and 665 deletions.
4 changes: 2 additions & 2 deletions interface/interface_local/Assets/Prefabs/Button_.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ MonoBehaviour:
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_HighlightedColor: {r: 0.5283019, g: 0.5283019, b: 0.5283019, a: 1}
m_PressedColor: {r: 0.31132078, g: 0.31132078, b: 0.31132078, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,20 +271,23 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
interactBase: {fileID: 0}
speed: 3
targetQ: 0
messageOfShip:
x: 0
y: 0
speed: 3
hp: 3000
armor: 0
shield: 0
playerTeam: 0
shipState: 0
shipType: 0
shipType: 1
viewRange: 0
producerType: 1
constructorType: 1
armorType: 0
shieldType: 0
weaponType: 1
weaponType: 4
--- !u!114 &2882451378615938793
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down
46 changes: 46 additions & 0 deletions interface/interface_local/Assets/Prefabs/asteroid2.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ GameObject:
m_Component:
- component: {fileID: 3357736668301216724}
- component: {fileID: 4374308642202614482}
- component: {fileID: 6717465984316305577}
m_Layer: 0
m_Name: asteroid2
m_TagString: Untagged
Expand Down Expand Up @@ -84,3 +85,48 @@ SpriteRenderer:
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!61 &6717465984316305577
BoxCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2076829689532050399}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_ForceSendLayers:
serializedVersion: 2
m_Bits: 4294967295
m_ForceReceiveLayers:
serializedVersion: 2
m_Bits: 4294967295
m_ContactCaptureLayers:
serializedVersion: 2
m_Bits: 4294967295
m_CallbackLayers:
serializedVersion: 2
m_Bits: 4294967295
m_IsTrigger: 0
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: 0}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5}
oldSize: {x: 1, y: 1}
newSize: {x: 0.5, y: 0.5}
adaptiveTilingThreshold: 0.5
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 1, y: 1}
m_EdgeRadius: 0
8 changes: 6 additions & 2 deletions interface/interface_local/Assets/Prefabs/community.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GameObject:
- component: {fileID: 940564042307808193}
- component: {fileID: 7343186342370500237}
- component: {fileID: 612575302597527367}
m_Layer: 0
m_Layer: 6
m_Name: community
m_TagString: Untagged
m_Icon: {fileID: 0}
Expand Down Expand Up @@ -106,8 +106,12 @@ MonoBehaviour:
playerTeam: 0
constructed: 0
constructionData: {fileID: 11400000, guid: 69ca601dd1cfbf8438c108e04c5ba59a, type: 2}
enemyInRange: []
selectedEnemy: {fileID: 0}
repairIcon: {fileID: 0}
repairIconRotateAngle: 30
iconRotateAngle: 30
iconRotateTime: 0.6
constructing: 0
--- !u!1 &8904761873208969172
GameObject:
m_ObjectHideFlags: 0
Expand Down
52 changes: 49 additions & 3 deletions interface/interface_local/Assets/Prefabs/construction.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ GameObject:
m_Component:
- component: {fileID: 6255757518067290134}
- component: {fileID: 1969900000770586285}
- component: {fileID: 7360329330183009675}
m_Layer: 0
m_Name: construction
m_TagString: Untagged
m_TagString: Block
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
Expand Down Expand Up @@ -70,8 +71,8 @@ SpriteRenderer:
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingLayerID: -1026933429
m_SortingLayer: -1
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: b6fffae4cf6650f41b662f7a04e25e43, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
Expand All @@ -84,3 +85,48 @@ SpriteRenderer:
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!61 &7360329330183009675
BoxCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4461932328840788347}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_ForceSendLayers:
serializedVersion: 2
m_Bits: 4294967295
m_ForceReceiveLayers:
serializedVersion: 2
m_Bits: 4294967295
m_ContactCaptureLayers:
serializedVersion: 2
m_Bits: 4294967295
m_CallbackLayers:
serializedVersion: 2
m_Bits: 4294967295
m_IsTrigger: 0
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: 0}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5}
oldSize: {x: 1, y: 1}
newSize: {x: 2, y: 2}
adaptiveTilingThreshold: 0.5
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 1, y: 1}
m_EdgeRadius: 0
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,17 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
interactBase: {fileID: 0}
speed: 2.8
targetQ: 0
messageOfShip:
x: 0
y: 0
speed: 2.8
hp: 4000
armor: 400
shield: 400
playerTeam: 0
shipState: 0
shipType: 0
shipType: 2
viewRange: 0
producerType: 0
constructorType: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,17 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
interactBase: {fileID: 0}
speed: 2.7
targetQ: 0
messageOfShip:
x: 0
y: 0
speed: 2.7
hp: 12000
armor: 800
shield: 800
playerTeam: 0
shipState: 0
shipType: 0
shipType: 3
viewRange: 0
producerType: 1
constructorType: 0
Expand Down
139 changes: 138 additions & 1 deletion interface/interface_local/Assets/Prefabs/missile.prefab
Original file line number Diff line number Diff line change
@@ -1,5 +1,140 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1216727524815675447
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 372298410577933456}
- component: {fileID: 1544298157299199487}
- component: {fileID: 3772765017755395201}
- component: {fileID: 9197256154267384266}
m_Layer: 0
m_Name: ShockWave
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!4 &372298410577933456
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1216727524815675447}
serializedVersion: 2
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: 4201782037208779027}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &1544298157299199487
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1216727524815675447}
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: a97c105638bdf8b4a8650670310a4cd3, 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: 0
m_Sprite: {fileID: -2413806693520163455, guid: a86470a33a6bf42c4b3595704624658b, type: 3}
m_Color: {r: 1, g: 0.5506037, b: 0, 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!114 &3772765017755395201
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1216727524815675447}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 005447016a2cad74197c9c6ee2f5d21e, type: 3}
m_Name:
m_EditorClassIdentifier:
lifeTime: 2
timer: 0
--- !u!58 &9197256154267384266
CircleCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1216727524815675447}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_ForceSendLayers:
serializedVersion: 2
m_Bits: 4294967295
m_ForceReceiveLayers:
serializedVersion: 2
m_Bits: 4294967295
m_ContactCaptureLayers:
serializedVersion: 2
m_Bits: 4294967295
m_CallbackLayers:
serializedVersion: 2
m_Bits: 4294967295
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: 0}
serializedVersion: 2
m_Radius: 0.49999997
--- !u!1 &6742644745694519620
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -33,6 +168,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 2044924485689081778}
- {fileID: 372298410577933456}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &-8537481700179265297
Expand All @@ -51,6 +187,7 @@ MonoBehaviour:
messageOfBullet:
type: 4
playerTeam: 0
lifeTime: 0
--- !u!50 &787263036322237022
Rigidbody2D:
serializedVersion: 4
Expand Down Expand Up @@ -195,7 +332,7 @@ SpriteRenderer:
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_SortingOrder: 1
m_Sprite: {fileID: 21300000, guid: 6c269de7d99d31e4bb6919ffacd340f4, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
Expand Down
Loading

0 comments on commit 6c93503

Please sign in to comment.