Nikos Kastellanos 9b51f6f06e v1.5.0.0 9 months ago
..
ContentReaders ea3ea950ef types 1 year ago
Properties 9b51f6f06e v1.5.0.0 9 months ago
Tilemap 3ba9fa94ec rename namespace 3 years ago
Aether.Tilemap.NET4.XNA.csproj 0751af5991 update XNA outputPath 9 months ago
Aether.Tilemap.csproj 9b51f6f06e v1.5.0.0 9 months 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();