Skip to content

Commit

Permalink
knockback enemies
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikue committed Oct 28, 2021
1 parent b916890 commit c94f1d0
Show file tree
Hide file tree
Showing 14 changed files with 412 additions and 146 deletions.
6 changes: 6 additions & 0 deletions Assets/Prefabs/demon.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ MonoBehaviour:
m_EditorClassIdentifier:
facingLeft: 0
speed: 4
canJump: 1
jumpForce: 5
--- !u!1001 &2933187459688200465
PrefabInstance:
m_ObjectHideFlags: 0
Expand All @@ -23,6 +25,10 @@ PrefabInstance:
m_Modifications:
- target: {fileID: 4365934258713016456, guid: 53d1d1c6fa3cf394fb69604fbac79d9b, type: 3}
propertyPath: hits
value: 6
objectReference: {fileID: 0}
- target: {fileID: 4365934258713016456, guid: 53d1d1c6fa3cf394fb69604fbac79d9b, type: 3}
propertyPath: knockbackResist
value: 4
objectReference: {fileID: 0}
- target: {fileID: 4509749265469220884, guid: 53d1d1c6fa3cf394fb69604fbac79d9b, type: 3}
Expand Down
8 changes: 8 additions & 0 deletions Assets/Prefabs/imp.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 4365934258713016456, guid: 53d1d1c6fa3cf394fb69604fbac79d9b, type: 3}
propertyPath: hits
value: 4
objectReference: {fileID: 0}
- target: {fileID: 4365934258713016456, guid: 53d1d1c6fa3cf394fb69604fbac79d9b, type: 3}
propertyPath: knockbackResist
value: 1.5
objectReference: {fileID: 0}
- target: {fileID: 4509749265469220884, guid: 53d1d1c6fa3cf394fb69604fbac79d9b, type: 3}
propertyPath: sprites.Array.data[0]
value:
Expand Down
57 changes: 30 additions & 27 deletions Assets/Prefabs/skeleton.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ GameObject:
m_Component:
- component: {fileID: 6311582435455102420}
- component: {fileID: 6311582435455102427}
- component: {fileID: 6311582435455102422}
- component: {fileID: 6968240672213199400}
- component: {fileID: 1224655538279616733}
- component: {fileID: 4365934258713016456}
- component: {fileID: 4509749265469220884}
- component: {fileID: 1963784636764141379}
- component: {fileID: 2459685929568858822}
m_Layer: 0
m_Name: skeleton
m_TagString: Damage
Expand Down Expand Up @@ -89,32 +89,6 @@ SpriteRenderer:
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!61 &6311582435455102422
BoxCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6311582435455102426}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: -0.0315}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5}
oldSize: {x: 0.75, y: 1}
newSize: {x: 1, y: 1}
adaptiveTilingThreshold: 0.5
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 0.5, y: 0.937}
m_EdgeRadius: 0
--- !u!68 &6968240672213199400
EdgeCollider2D:
m_ObjectHideFlags: 0
Expand All @@ -132,7 +106,10 @@ EdgeCollider2D:
m_EdgeRadius: 0
m_Points:
- {x: -0.25, y: -0.48}
- {x: -0.25, y: 0.43}
- {x: 0.25, y: 0.43}
- {x: 0.25, y: -0.48}
- {x: -0.25, y: -0.48}
m_AdjacentStartPoint: {x: 0, y: 0}
m_AdjacentEndPoint: {x: 0, y: 0}
m_UseAdjacentStartPoint: 0
Expand Down Expand Up @@ -201,3 +178,29 @@ MonoBehaviour:
m_EditorClassIdentifier:
facingLeft: 0
speed: 2
--- !u!61 &2459685929568858822
BoxCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6311582435455102426}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: -0.05}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5}
oldSize: {x: 0.75, y: 1}
newSize: {x: 1, y: 1}
adaptiveTilingThreshold: 0.5
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 0.5, y: 0.9}
m_EdgeRadius: 0
Loading

0 comments on commit c94f1d0

Please sign in to comment.