added damaging spikes
This commit is contained in:
parent
a16601fa1d
commit
959ade4668
4 changed files with 61 additions and 9 deletions
12
src/Util.cs
Normal file
12
src/Util.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using System.Runtime.InteropServices.Swift;
|
||||
|
||||
namespace Dancer;
|
||||
|
||||
public static class TileMapLayerExtensions
|
||||
{
|
||||
extension(TileMapLayer self)
|
||||
{
|
||||
public Vector2I GlobalToMap(Vector2 globalPosition) =>
|
||||
self.LocalToMap(self.ToLocal(globalPosition));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue