mirror of
https://github.com/ConjureETS/PixelSphinx.git
synced 2026-03-25 02:50:58 +00:00
Modified player height
This commit is contained in:
parent
362c0769ec
commit
63233c9e4d
BIN
Assets/Art/T_Char_Stunned_03.png
Normal file
BIN
Assets/Art/T_Char_Stunned_03.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 142 KiB |
57
Assets/Art/T_Char_Stunned_03.png.meta
Normal file
57
Assets/Art/T_Char_Stunned_03.png.meta
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e754c9a065417df45b0045f72d7d29fb
|
||||||
|
timeCreated: 1460224322
|
||||||
|
licenseType: Free
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
linearTexture: 0
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: -1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 8
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -46,7 +46,7 @@ GameObject:
|
|||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!1 &170392
|
--- !u!1 &170392
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -145,7 +145,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: ab270b0cb2475114ab8eb45661af0df1, type: 3}
|
m_Script: {fileID: 11500000, guid: ab270b0cb2475114ab8eb45661af0df1, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
PlayerNumber: 0
|
PlayerNumber: 1
|
||||||
--- !u!114 &11491252
|
--- !u!114 &11491252
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -158,9 +158,9 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
aspi: {fileID: 0}
|
aspi: {fileID: 0}
|
||||||
WalkAnimSpeed: 4
|
WalkAnimSpeed: 3
|
||||||
WalkAnimAngle: 15
|
WalkAnimAngle: 20
|
||||||
EjectSpinSpeed: 80
|
EjectSpinSpeed: 10
|
||||||
DustParticlesEmitter: {fileID: 138982, guid: 6233079c5a9a756458811f283fdca112, type: 2}
|
DustParticlesEmitter: {fileID: 138982, guid: 6233079c5a9a756458811f283fdca112, type: 2}
|
||||||
--- !u!114 &11494368
|
--- !u!114 &11494368
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
@ -177,6 +177,7 @@ MonoBehaviour:
|
|||||||
SpriteWalk: {fileID: 21220066}
|
SpriteWalk: {fileID: 21220066}
|
||||||
SpriteDash: {fileID: 157058}
|
SpriteDash: {fileID: 157058}
|
||||||
Width: 0.4
|
Width: 0.4
|
||||||
|
Height: 0.7
|
||||||
DashTime: 0.4
|
DashTime: 0.4
|
||||||
StepTime: 5
|
StepTime: 5
|
||||||
JumpSpeed: 5
|
JumpSpeed: 5
|
||||||
|
|||||||
@ -15,6 +15,7 @@ public class Astronaut : MonoBehaviour {
|
|||||||
public GameObject SpriteDash;
|
public GameObject SpriteDash;
|
||||||
|
|
||||||
public float Width;
|
public float Width;
|
||||||
|
public float Height;
|
||||||
public float DashTime = 0.4f; //Temps de l'animation et rate limiting
|
public float DashTime = 0.4f; //Temps de l'animation et rate limiting
|
||||||
private float lastDashTime = 0f;
|
private float lastDashTime = 0f;
|
||||||
public float StepTime;
|
public float StepTime;
|
||||||
@ -104,7 +105,7 @@ public class Astronaut : MonoBehaviour {
|
|||||||
private void UpdatePosition()
|
private void UpdatePosition()
|
||||||
{
|
{
|
||||||
//float heightAtPos = planet.GetPlanetRadius(theta);
|
//float heightAtPos = planet.GetPlanetRadius(theta);
|
||||||
transform.localPosition = new Vector3(0, height, 0);
|
transform.localPosition = new Vector3(0, height + Height / 2, 0);
|
||||||
Rotator.transform.localRotation = Quaternion.Euler(0, 0, theta - 108);
|
Rotator.transform.localRotation = Quaternion.Euler(0, 0, theta - 108);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user