swipe arrows good?!

This commit is contained in:
msk
2023-10-09 02:26:44 -07:00
parent 33054498a7
commit d33dce9ed2
5 changed files with 13 additions and 14 deletions
+2 -2
View File
@@ -25,11 +25,11 @@ namespace WacK.Things.TunnelObjects
public void SetPosSize(int pos, int size)
{
var p = Position;
p.X = Constants.BASE_2D_RESOLUTION / 60 * pos;
p.X = Constants.BASE_2D_RESOLUTION / 60 * pos + Constants.BASE_2D_RESOLUTION / 120;
Position = p;
var s = Size;
s.Y = Constants.BASE_2D_RESOLUTION / 60 * size;
s.Y = Constants.BASE_2D_RESOLUTION / 60 * size - Constants.BASE_2D_RESOLUTION / 60;
Size = s;
shader.SetShaderParameter("TileMult", s.Y / 64);
}