|
|
1 month ago | |
|---|---|---|
| .. | ||
| ContentReaders | 1 year ago | |
| Properties | 1 month ago | |
| Tilemap | 3 years ago | |
| Aether.Tilemap.NET4.XNA.csproj | 9 months ago | |
| Aether.Tilemap.csproj | 1 month ago | |
| README.md | 10 months ago | |
Graphics library for Kni framework.
example:
// Initialize
tilemap = Content.Load<Tilemap>("tilemap");
// Draw
Viewport viewport = GraphicsDevice.Viewport;
tilemap.Effect.World = Matrix.Identity;
tilemap.Effect.View = Matrix.Identity; // camera
tilemap.Effect.Projection = Matrix.CreateOrthographicOffCenter(0, viewport.Width, viewport.Height, 0, 0, 1);
spriteBatch.Begin(0, BlendState.AlphaBlend, SamplerState.PointWrap, null, null, tilemap.Effect);
spriteBatch.Draw(tilemap.TextureMap, mipSize, Color.White);
spriteBatch.End();