Skip to content

Commit

Permalink
Continued work on realtime sprite slicing/swapping. Need to determine…
Browse files Browse the repository at this point in the history
… a way to load textures
  • Loading branch information
adam-k-leung committed Apr 26, 2022
1 parent c685d60 commit 9bb4f3c
Show file tree
Hide file tree
Showing 29 changed files with 3,596 additions and 130 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!74 &7400000
AnimationClip:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Player - Cycle Sprites
serializedVersion: 6
m_Legacy: 0
m_Compressed: 0
m_UseHighQualityCurve: 1
m_RotationCurves: []
m_CompressedRotationCurves: []
m_EulerCurves: []
m_PositionCurves: []
m_ScaleCurves: []
m_FloatCurves: []
m_PPtrCurves:
- curve:
- time: 0
value: {fileID: 1502261803, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 0.1
value: {fileID: 1736464688, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 0.2
value: {fileID: -2093629010, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 0.3
value: {fileID: 1966931817, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 0.4
value: {fileID: -83602619, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 0.5
value: {fileID: -1824770002, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 0.6
value: {fileID: 1605999427, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 0.7
value: {fileID: -1999616342, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 0.8
value: {fileID: 1389634300, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 0.9
value: {fileID: 1321375880, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 1
value: {fileID: 2086607223, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 1.1
value: {fileID: -1493466423, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 1.2
value: {fileID: -982967443, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 1.3
value: {fileID: -988864936, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 1.4
value: {fileID: -1496013227, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 1.5
value: {fileID: 591458100, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 1.6
value: {fileID: -1956271176, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 1.7
value: {fileID: -2066757699, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 1.8
value: {fileID: -808884989, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 1.9
value: {fileID: 776590238, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 2
value: {fileID: -85873177, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 2.1
value: {fileID: 1007309011, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 2.2
value: {fileID: -1182953427, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- time: 2.3
value: {fileID: -1695335719, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
attribute: m_Sprite
path:
classID: 212
script: {fileID: 0}
m_SampleRate: 10
m_WrapMode: 0
m_Bounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant:
genericBindings:
- serializedVersion: 2
path: 0
attribute: 0
script: {fileID: 0}
typeID: 212
customType: 23
isPPtrCurve: 1
pptrCurveMapping:
- {fileID: 1502261803, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: 1736464688, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: -2093629010, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: 1966931817, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: -83602619, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: -1824770002, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: 1605999427, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: -1999616342, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: 1389634300, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: 1321375880, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: 2086607223, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: -1493466423, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: -982967443, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: -988864936, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: -1496013227, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: 591458100, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: -1956271176, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: -2066757699, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: -808884989, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: 776590238, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: -85873177, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: 1007309011, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: -1182953427, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
- {fileID: -1695335719, guid: 0aa5e4b2c85eb6846bd406f2a483ad2e, type: 3}
m_AnimationClipSettings:
serializedVersion: 2
m_AdditiveReferencePoseClip: {fileID: 0}
m_AdditiveReferencePoseTime: 0
m_StartTime: 0
m_StopTime: 2.3999999
m_OrientationOffsetY: 0
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 1
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0
m_LoopBlendPositionXZ: 0
m_KeepOriginalOrientation: 0
m_KeepOriginalPositionY: 1
m_KeepOriginalPositionXZ: 0
m_HeightFromFeet: 0
m_Mirror: 0
m_EditorCurves: []
m_EulerEditorCurves: []
m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0
m_Events: []

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1102 &-3143398661544039175
AnimatorState:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Cycle Sprites
m_Speed: 1
m_CycleOffset: 0
m_Transitions: []
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
m_WriteDefaultValues: 1
m_Mirror: 0
m_SpeedParameterActive: 0
m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0
m_Motion: {fileID: 7400000, guid: 333928d27a243784dbcfa9e3f2d3fec6, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:
--- !u!91 &9100000
AnimatorController:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Player Animation Controller
serializedVersion: 5
m_AnimatorParameters: []
m_AnimatorLayers:
- serializedVersion: 5
m_Name: Base Layer
m_StateMachine: {fileID: 4260387177146275187}
m_Mask: {fileID: 0}
m_Motions: []
m_Behaviours: []
m_BlendingMode: 0
m_SyncedLayerIndex: -1
m_DefaultWeight: 0
m_IKPass: 0
m_SyncedLayerAffectsTiming: 0
m_Controller: {fileID: 9100000}
--- !u!1107 &4260387177146275187
AnimatorStateMachine:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Base Layer
m_ChildStates:
- serializedVersion: 1
m_State: {fileID: -3143398661544039175}
m_Position: {x: 100, y: 440, z: 0}
m_ChildStateMachines: []
m_AnyStateTransitions: []
m_EntryTransitions: []
m_StateMachineTransitions: {}
m_StateMachineBehaviours: []
m_AnyStatePosition: {x: 50, y: 20, z: 0}
m_EntryPosition: {x: 50, y: 120, z: 0}
m_ExitPosition: {x: 800, y: 120, z: 0}
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
m_DefaultState: {fileID: -3143398661544039175}

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

Loading

0 comments on commit 9bb4f3c

Please sign in to comment.