Nikos Kastellanos 6c2eb5a816 v1.6.0.0 1 month ago
..
ContentReaders ea3ea950ef types 1 year ago
Properties 6c2eb5a816 v1.6.0.0 1 month ago
Tilemap 3ba9fa94ec rename namespace 3 years ago
Aether.Tilemap.NET4.XNA.csproj 0751af5991 update XNA outputPath 9 months ago
Aether.Tilemap.csproj 6c2eb5a816 v1.6.0.0 1 month ago
README.md 4ef3422ea0 readme files 10 months ago

README.md

Aether.Graphics

Graphics library for Kni framework.

Graphics

  • 'Tilemap' - Draws a Tilemap texture.

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();