added damaging spikes

This commit is contained in:
Lilith Schier 2026-07-22 20:20:10 +02:00
parent a16601fa1d
commit 959ade4668
4 changed files with 61 additions and 9 deletions

12
src/Util.cs Normal file
View 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));
}
}