# HG changeset patch # User Alys Brooks # Date 2022-04-27 07:37:23 # Node ID a24a3c7b1bdba4745b36d16ba455e337fdff9c81 # Parent 43ef670be37b8d61e9ef0dbff4b90cbc605981fe Add missing file. diff --git a/isometric-park-fna/Components/CursorComponent.cs b/isometric-park-fna/Components/CursorComponent.cs new file mode 100644 --- /dev/null +++ b/isometric-park-fna/Components/CursorComponent.cs @@ -0,0 +1,11 @@ +using Microsoft.Xna.Framework; + +using Encompass; + +namespace isometricparkfna.Components { + + public struct CursorComponent : IComponent { + public Vector2 position; + public int size; + } +} diff --git a/isometric-park-fna/Tile.cs b/isometric-park-fna/Tile.cs --- a/isometric-park-fna/Tile.cs +++ b/isometric-park-fna/Tile.cs @@ -197,9 +197,14 @@ drawEdges(batch, edges.ToArray(), color); } + public static void drawTileAt(SpriteBatch batch, int x, int y, int tileIndex, int height, float depth) { + drawTileAt(batch, x, y, tileIndex, height, depth, Color.White); + } - public static void drawTileAt(SpriteBatch batch, int x, int y, int tileIndex, int height, float depth) - { + + public static void drawTileAt(SpriteBatch batch, int x, int y, int tileIndex, int height, float depth, Color color) + { + //new Color(100, 100, 100, 100) int height_adjust = 0; @@ -223,7 +228,7 @@ screeny, Tile.TileWidth, Tile.TileHeight * height), Tile.GetExtendedSourceRectangle(tileIndex, height), - Color.White, + color, 0.0f, Vector2.Zero, SpriteEffects.None,