public override void Draw(SpriteBatch sb, GameVideoSettings vSettings) { sb.Begin(SpriteSortMode.Deferred, null, vSettings.samplerState, null, null, null, player.cam.GetMatrix()); world.Draw(sb); player.Draw(sb); base.Draw(sb, vSettings); }
public override void Draw(SpriteBatch sb, GameVideoSettings vSettings) { sb.Begin(SpriteSortMode.Deferred, null, SamplerState.PointClamp, null, null, null, null); tilemap.Draw(sb); sb.Draw(ch.Get("tile_" + currentTileID), new Rectangle((int)tilePos.X, (int)tilePos.Y, (int)(7.5 * 16), (int)(7.5 * 16)), Color.White); sb.Draw(ch.Get("tile_select"), new Rectangle((int)tilePos.X, (int)tilePos.Y, (int)(7.5 * 16), (int)(7.5 * 16)), new Color(255, 255, 255, 100)); if (saveActive) { sb.DrawString(ch.GetFont("Fonts/tile_editor"), savePath + ".txt", new Vector2(0, 0), Color.White); } base.Draw(sb, vSettings); }