smush hearts together a smidge

GitOrigin-RevId: ebb0e78ff5f3c51d6ddc9765e38fb262bccee160
This commit is contained in:
Colin McMillen 2020-02-27 16:50:01 -05:00
parent c189cfcc09
commit a431ad094b

View File

@ -98,7 +98,7 @@ namespace SemiColinGames {
spriteBatch.Begin( spriteBatch.Begin(
SpriteSortMode.Deferred, null, SamplerState.PointClamp, null, null, null, null); SpriteSortMode.Deferred, null, SamplerState.PointClamp, null, null, null, null);
for (int i = 0; i < player.MaxHealth; i++) { for (int i = 0; i < player.MaxHealth; i++) {
Vector2 pos = new Vector2(16 + 16 * i, 8); Vector2 pos = new Vector2(16 + 15 * i, 8);
if (player.Health > i) { if (player.Health > i) {
spriteBatch.Draw(Textures.Heart.Get, pos, new Rectangle(0, 0, 16, 16), Color.White); spriteBatch.Draw(Textures.Heart.Get, pos, new Rectangle(0, 0, 16, 16), Color.White);
} else { } else {