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