Skip to content

Commit

Permalink
feat(maple-fighters): add player character stats
Browse files Browse the repository at this point in the history
Player's character stats:

- Level (and Character Name)
- Health
- Experience Points

Also add player dead state.
  • Loading branch information
codingben committed Nov 23, 2024
1 parent 7f4a8dd commit 17694ac
Show file tree
Hide file tree
Showing 39 changed files with 1,902 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ GameObject:
- component: {fileID: 114791287851909474}
- component: {fileID: 114474275508558034}
- component: {fileID: 4397616534160401849}
- component: {fileID: 866096450993677657}
m_Layer: 0
m_Name: Archer
m_TagString: Untagged
Expand Down Expand Up @@ -616,6 +617,19 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
characterSprite: {fileID: 1229620062354838}
--- !u!114 &866096450993677657
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1672393161269726}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 73cfe5cb0090d42fc94d3ab2256fabe8, type: 3}
m_Name:
m_EditorClassIdentifier:
healthAmount: 500
--- !u!1 &6763482453901833201
GameObject:
m_ObjectHideFlags: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ GameObject:
- component: {fileID: 114086648407061294}
- component: {fileID: 114664649952649960}
- component: {fileID: 5539059543134416113}
- component: {fileID: 1337271320379226147}
m_Layer: 0
m_Name: Knight
m_TagString: Untagged
Expand Down Expand Up @@ -616,6 +617,19 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
characterSprite: {fileID: 1734782633609212}
--- !u!114 &1337271320379226147
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1795698667356696}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 73cfe5cb0090d42fc94d3ab2256fabe8, type: 3}
m_Name:
m_EditorClassIdentifier:
healthAmount: 1000
--- !u!1 &7627006276340788893
GameObject:
m_ObjectHideFlags: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ GameObject:
- component: {fileID: 114615997679115346}
- component: {fileID: 114769968751128320}
- component: {fileID: -9056175464833686089}
- component: {fileID: 5610465354671830875}
m_Layer: 0
m_Name: Wizard
m_TagString: Untagged
Expand Down Expand Up @@ -276,6 +277,19 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
characterSprite: {fileID: 1733968886697200}
--- !u!114 &5610465354671830875
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1210278977448276}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 73cfe5cb0090d42fc94d3ab2256fabe8, type: 3}
m_Name:
m_EditorClassIdentifier:
healthAmount: 500
--- !u!1 &1276592372013812
GameObject:
m_ObjectHideFlags: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ MonoBehaviour:
attackedAnimation: {fileID: 1226959955713265118}
deadAnimation: {fileID: 996590074768006885}
health: 100
mobExperience: 5
mobDamageText: {fileID: 8469844777433203015, guid: 87e1f42ee42344620acfbd1da4926470,
type: 3}
mobDamagePosition: {fileID: 4756870909268700154}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ MonoBehaviour:
attackedAnimation: {fileID: 2809993840063044388}
deadAnimation: {fileID: 4445643555974304797}
health: 100
mobExperience: 10
mobDamageText: {fileID: 8469844777433203015, guid: 87e1f42ee42344620acfbd1da4926470,
type: 3}
mobDamagePosition: {fileID: 7720485623999414934}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 120, y: 80}
m_AnchoredPosition: {x: 115, y: 90}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &114161394725660716
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &8332492900316192401
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5017415652293911076}
- component: {fileID: 2954773062219615958}
- component: {fileID: 2528381288722295974}
- component: {fileID: 4627176534305606091}
- component: {fileID: 5727340087264552756}
- component: {fileID: -7938496781776503461}
- component: {fileID: 5747200543285461152}
m_Layer: 0
m_Name: LevelUpText
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &5017415652293911076
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8332492900316192401}
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_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 150}
m_SizeDelta: {x: 250, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2954773062219615958
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8332492900316192401}
m_CullTransparentMesh: 1
--- !u!114 &2528381288722295974
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8332492900316192401}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 0, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 45
m_FontStyle: 1
m_BestFit: 0
m_MinSize: 1
m_MaxSize: 60
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: Level Up!
--- !u!114 &4627176534305606091
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8332492900316192401}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 99ee4bad12af248678ad36dbf142f940, type: 3}
m_Name:
m_EditorClassIdentifier:
moveSpeed: 100
--- !u!225 &5727340087264552756
CanvasGroup:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8332492900316192401}
m_Enabled: 1
m_Alpha: 1
m_Interactable: 1
m_BlocksRaycasts: 1
m_IgnoreParentGroups: 0
--- !u!114 &-7938496781776503461
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8332492900316192401}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 89120f4eafbec465e86e5fe9535048a1, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &5747200543285461152
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8332492900316192401}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a3094f8d4df92413e899c1328e289fce, type: 3}
m_Name:
m_EditorClassIdentifier:
speed: 0.5

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

Loading

0 comments on commit 17694ac

Please sign in to comment.