Commit bf7a8309 authored by Facundo Nicolas Prieto Motta's avatar Facundo Nicolas Prieto Motta
Browse files

snake body directions correjidas

parent 43334d3c
......@@ -222,10 +222,10 @@ public class Snake : MonoBehaviour
angle = 180;
break;
case Direction.Left: //Previously was going Left (-90)
angle = 180 + 45;
angle = -135;
break;
case Direction.Right: //Previously was going Right (90)
angle = 180 - 45;
angle = 135;
break;
}
break;
......@@ -236,15 +236,14 @@ public class Snake : MonoBehaviour
angle = 0;
break;
case Direction.Left: //Previously was going Left (-90)
angle = 0 - 45;
angle = -45;
break;
case Direction.Right: //Previously was going Right (90)
angle = 0 + 45;
angle = 45;
break;
}
break;
case Direction.Left:
angle = -90;
switch (snakeMovePosition.GetPreviousDirection())
{
default:
......
Assets/Textures/SnakeBody.png

21.9 KB | W: | H:

Assets/Textures/SnakeBody.png

74.5 KB | W: | H:

Assets/Textures/SnakeBody.png
Assets/Textures/SnakeBody.png
Assets/Textures/SnakeBody.png
Assets/Textures/SnakeBody.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -46,7 +46,7 @@ TextureImporter:
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 180
spritePixelsToUnits: 210.5
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
......
No preview for this file type
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment