Nikos Kastellanos c5c18cb3a0 GenerateAssemblyInfo 10 bulan lalu
..
ContentReaders ea3ea950ef types 1 tahun lalu
Properties c5c18cb3a0 GenerateAssemblyInfo 10 bulan lalu
Tilemap 3ba9fa94ec rename namespace 3 tahun lalu
Aether.Tilemap.NET4.XNA.csproj 3b498c2bca seperate Artifacts 3 tahun lalu
Aether.Tilemap.csproj c5c18cb3a0 GenerateAssemblyInfo 10 bulan lalu
README.md 4ef3422ea0 readme files 10 bulan lalu

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