-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTile.cs
More file actions
41 lines (37 loc) · 768 Bytes
/
Tile.cs
File metadata and controls
41 lines (37 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace ProgGame
{
public enum CollisionType
{
Air,
Solid,
FakeSolid
}
public enum TileType
{
None,
Static,
Entity
}
public struct Tile
{
public Texture2D texture;
public CollisionType collisionType;
public TileType tileType;
public const int width = 32;
public const int height = 32;
public static readonly Vector2 size = new Vector2(width, height);
public Tile(Texture2D texture, CollisionType collisionType, TileType tileType)
{
this.texture = texture;
this.collisionType = collisionType;
this.tileType = tileType;
}
}
}