Compare commits
No commits in common. "b98bb61bd92ff47ce71758c168d5f9ed96cffe41" and "f6dde30804e60a11fbacd69fac2fa92b6513292a" have entirely different histories.
b98bb61bd9
...
f6dde30804
@ -2,10 +2,6 @@
|
|||||||
using Microsoft.Xna.Framework.Graphics;
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
// Disables "GraphicsDevice.DrawIndexedPrimitives(...) is obsolete." warning.
|
|
||||||
// MonoGame has obsoleted this function, but FNA needs it.
|
|
||||||
#pragma warning disable CS0618
|
|
||||||
|
|
||||||
namespace SemiColinGames {
|
namespace SemiColinGames {
|
||||||
public sealed class LinesOfSight : IDisposable {
|
public sealed class LinesOfSight : IDisposable {
|
||||||
|
|
||||||
@ -123,8 +119,7 @@ namespace SemiColinGames {
|
|||||||
|
|
||||||
foreach (EffectPass pass in lightingEffect.CurrentTechnique.Passes) {
|
foreach (EffectPass pass in lightingEffect.CurrentTechnique.Passes) {
|
||||||
pass.Apply();
|
pass.Apply();
|
||||||
graphics.DrawIndexedPrimitives(
|
graphics.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, indices.Length, 0, indices.Length / 3);
|
||||||
PrimitiveType.TriangleList, 0, 0, indices.Length, 0, indices.Length / 3);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,8 +109,7 @@ namespace SemiColinGames {
|
|||||||
|
|
||||||
// Draw in-world UI on top of everything.
|
// Draw in-world UI on top of everything.
|
||||||
spriteBatch.Begin(
|
spriteBatch.Begin(
|
||||||
SpriteSortMode.Deferred, null, SamplerState.PointClamp, null, null, null,
|
SpriteSortMode.Deferred, null, SamplerState.PointClamp, null, null, null, Matrix.Identity);
|
||||||
Matrix.Identity);
|
|
||||||
for (int i = 0; i < world.Player.MaxHealth; i++) {
|
for (int i = 0; i < world.Player.MaxHealth; i++) {
|
||||||
Vector2 pos = new Vector2(16 + 15 * i, 8);
|
Vector2 pos = new Vector2(16 + 15 * i, 8);
|
||||||
if (world.Player.Health > i) {
|
if (world.Player.Health > i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user