public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch) { base.Draw(spriteBatch); // Draw Cast Animation if (!SkillActive && SkillSlots.Instance.active && ani_count <= 11) if (cast_animation != null) spriteBatch.Draw(cast_animation, new Vector2(position.X - 60, position.Y - 85), Color.White * 0.75f); // Draw Skill Animation if (SkillActive && SkillSlots.Instance.active) if (skill_animation != null) { if (this.spriteEffect == SpriteEffects.None) spriteBatch.Draw(skill_animation, new Vector2(position.X - ((skill_animation.Width - SpriteFrame.Width) * 0.5f) + animationOffset.X, position.Y - ((skill_animation.Height * 0.9f) - SpriteFrame.Height) + animationOffset.Y), Color.White * 0.75f); else spriteBatch.Draw(skill_animation, new Rectangle((int)(position.X - ((skill_animation.Width - SpriteFrame.Width) * 0.5f) + animationOffset.X), (int)(position.Y - ((skill_animation.Height * 0.9f) - SpriteFrame.Height) + animationOffset.Y), skill_animation.Width, skill_animation.Height), new Rectangle(0, 0, skill_animation.Width,skill_animation.Height), Color.White * 0.75f, 0, Vector2.Zero, SpriteEffects.FlipHorizontally, 0); } }
public override void draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.GraphicsDevice graphicsDevice) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null, null, publicStatics.spriteScale); //Background spriteBatch.Draw(Image.pauseMenu, new Rectangle(0, 0, publicStatics.screenSize.Width, publicStatics.screenSize.Height), Color.White); //Draw all labels for(int i = 0; i < labels.Count; i++) { labels[i].Draw(spriteBatch); } //Draw Bullet Points if (buttons[0].mouseHover()) spriteBatch.Draw(imageRBC, new Rectangle(publicStatics.screenSize.Center.X - (int)(Font.cooper48.MeasureString("Resume").X / 2) - 52, publicStatics.screenSize.Center.Y - 36, 48, 48), Color.White); if (buttons[1].mouseHover()) spriteBatch.Draw(imageRBC, new Rectangle(publicStatics.screenSize.Center.X - (int)(Font.cooper48.MeasureString("Main Menu").X / 2) - 52, publicStatics.screenSize.Center.Y - 26 + 90, 48, 48), Color.White); //Draw all Buttons for (int i = 0; i < buttons.Count; i++) { buttons[i].Draw(spriteBatch); } //Draw all Checkboxes for (int i = 0; i < checkboxes.Count; i++) { checkboxes[i].Draw(spriteBatch); } //Draw Mouse Cursor cursor.drawTexture(spriteBatch, graphicsDevice); spriteBatch.End(); }
public void Draw(Microsoft.Xna.Framework.Content.ContentManager content, Microsoft.Xna.Framework.Graphics.SpriteBatch batch) { if (font == null) { //Load the font font = content.Load<SpriteFont>(@"Fonts/LightText"); } batch.Draw(content, SpriteManager.GetSprite(ColourSpriteName.WHITE), borderRect, Color.DarkGray); batch.Draw(content, SpriteManager.GetSprite(InterfaceSpriteName.PAPER_TEXTURE), rect, Color.White); batch.Draw(content, SpriteManager.GetSprite(InterfaceSpriteName.WOOD_TEXTURE), objectNameRect, Color.WhiteSmoke); batch.DrawString(font, treasureChest.Name, objectNameRect, Alignment.Center, Color.Black); batch.Draw(content, SpriteManager.GetSprite(InterfaceSpriteName.CLOSE), crossRect, Color.White); for (int i = 0; i < itemRectangles.Count; i++) { Rectangle r = itemRectangles[i]; MapItem mi = null; if (treasureChest.Contents.Count > i) { mi = treasureChest.Contents[i]; batch.Draw(content, mi.Graphics[0], r, Color.White); } } batch.DrawString(font, descriptionShown, descriptionRect, Alignment.Left, Color.Black); batch.Draw(content, SpriteManager.GetSprite(InterfaceSpriteName.WOOD_TEXTURE), takeAllRect, Color.White); batch.DrawString(font, "TAKE ALL", takeAllRect, Alignment.Center, Color.Black); }
protected override void InternalDraw(Microsoft.Xna.Framework.GameTime gameTime, Microsoft.Xna.Framework.Graphics.SpriteBatch batch) { if (((EnemyTypeII)m_unit).CombineList.Count != 0) { foreach (var ptr in ((EnemyTypeII)m_unit).CombineList) { ((EnemyIIComponent)ptr.Sprite).Draw(gameTime, batch); //batch.Draw(ptr.Body, ptr.Locate, null, ptr.Color, 0, new Vector2(40), ptr.EnemySize * m_worldManager.Scale, SpriteEffects.None, 0); } batch.Draw(m_unit.ListRing[m_unit.CurrentRing].Target, base.Locate + new Vector2(20,0), m_unit.ListRing[m_unit.CurrentRing].Frame, m_unit.ListRing[m_unit.CurrentRing].Color, base.Rotation, new Vector2((float) m_unit.ListRing[m_unit.CurrentRing].Frame.Height/2), m_unit.RingSize/1000*m_worldManager.Scale, SpriteEffects.None, 0); } if(((EnemyTypeII)m_unit).CombineList.Count != 0 || ((EnemyTypeII)m_unit).BeCatch) { batch.Draw(((EnemyTypeII)m_unit).Body, base.Locate, null, ((EnemyTypeII)m_unit).Color, ((EnemyTypeII)m_unit).Rotation, new Vector2(40), m_worldManager.Scale * ((EnemyTypeII)m_unit).EnemySize, SpriteEffects.None, 0); } else { if (((EnemyTypeII)m_unit).Status == AIBase.Status.Attck) { foreach (var ptr in ((EnemyTypeII)m_unit).Sharp) { batch.Draw(ptr.Target, base.Locate, ptr.Frame, Color.AliceBlue, 0, new Vector2(40), ((EnemyTypeII)m_unit).EnemySize * m_worldManager.Scale, SpriteEffects.None, 0); } } batch.Draw(((EnemyTypeII)m_unit).Body, base.Locate, null, ((EnemyTypeII)m_unit).Color, ((EnemyTypeII)m_unit).Rotation, new Vector2(40), m_worldManager.Scale * ((EnemyTypeII)m_unit).EnemySize, SpriteEffects.None, 0); batch.Draw(m_unit.ListRing[m_unit.CurrentRing].Target, base.Locate, m_unit.ListRing[m_unit.CurrentRing].Frame, m_unit.ListRing[m_unit.CurrentRing].Color, base.Rotation, new Vector2((float)m_unit.ListRing[m_unit.CurrentRing].Frame.Height / 2), m_unit.RingSize / 1000 * m_worldManager.Scale, SpriteEffects.None, 0); } }
public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch) { if (RenderBalloons) { spriteBatch.Draw(Assets.MenuBalloons, new Rectangle(X - 55, Y - 190, 150, 195), Color.White); spriteBatch.Draw(Assets.MenuBalloons, new Rectangle(X + 123, Y - 190, 150, 195), Color.White); } if (RenderRopes) { spriteBatch.Draw(Assets.MenuRope, new Rectangle(X + 10, Y + 95, 3, 115), Color.White); spriteBatch.Draw(Assets.MenuRope, new Rectangle(X + 188, Y + 95, 3, 115), Color.White); } if (selected) { spriteBatch.Draw(Assets.MenuSignGlow, new Rectangle(X - 30, Y - 30, Size.X + 60, Size.Y + 60), Color.White); } spriteBatch.Draw(Graphic, new Rectangle(X, Y, Size.X, Size.Y), Color.White); if (hoverTime > 0 && hoverTime <= maxHoverTime) { PlayerHand hand = (PlayerHand)GetFirstCollidingEntity("hand"); if (hand == null) return; for (int i = 0; i <= 360; i++) { var destRect = new Rectangle(hand.X - 50, hand.Y - 50, 1, 20); var asset = Assets.CirclePartFilled; if ((360 / maxHoverTime) * hoverTime <= i) { asset = Assets.CirclePartEmpty; } spriteBatch.Draw(asset, destRect, null, Color.White, MathHelper.ToRadians(i), new Vector2(0, 20), SpriteEffects.None, 0); } } }
public override void draw (Microsoft.Xna.Framework.Graphics.SpriteBatch par1) { par1.Draw (sprite, shape, new Rectangle (shape.Width * ((int)frame), 0, shape.Width, shape.Height), Color.White); if (isHeart) par1.Draw (Core.Png [7], new Vector2 (shape.X, shape.Y), Color.White); }
public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch sb) { sb.Draw(texture, area, color); if (state) sb.Draw(checkTexture, area, color); sb.DrawString(Fonts.Arial, name, labelPos, color); }
public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch sb) { sb.Draw(border, borderRect, Color.White); sb.Draw(back, boundRect, Color.White); sb.Draw(front, fillRect, Color.White); sb.Draw(back, sliderRect, Color.Red); }
public override void DrawInContainer(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch, SignsOfLife.UI.Containers.Container container, Color tintColor, Color behindTint) { Vector2 position = new Vector2((float)this._localPosX * Container.CONTAINER_SCALE_VECTOR.X + container.X, (float)this._localPosY * Container.CONTAINER_SCALE_VECTOR.Y + container.Y); Rectangle noChargedOverlay = new Rectangle((int)position.X,(int)position.Y,_rectSourceNoPower.Width,_rectSourceNoPower.Height); Rectangle chargedOverlay = noChargedOverlay; Rectangle chargedSource = _rectSourcePowered; int diff = (int)((float)chargedOverlay.Height*(Charge/MaxCharge)); chargedOverlay.Y += chargedOverlay.Height-diff; chargedOverlay.Height = diff; chargedSource.Y += chargedSource.Height-diff; chargedSource.Height = diff; // SpriteEffects effects = SpriteEffects.None; if (base.IsFlipped) { effects = SpriteEffects.FlipHorizontally; } if (this._amount == 1) { spriteBatch.Draw(this._texture, noChargedOverlay, new Rectangle?(_rectSourceNoPower), tintColor, 0f, Vector2.Zero, effects, 0f); spriteBatch.Draw(this._texture, chargedOverlay, new Rectangle?(chargedSource), tintColor, 0f, Vector2.Zero, effects, 0f); return; } spriteBatch.Draw(this._texture, position+new Vector2(this.MULTIPLE_QUANTITY_SHIFT,0), new Rectangle?(this._spriteBounds), behindTint, 0f, Vector2.Zero, Container.CONTAINER_SCALE_VECTOR, effects, 0f); spriteBatch.Draw(this._texture, position, new Rectangle?(this._spriteBounds), tintColor, 0f, Vector2.Zero, Container.CONTAINER_SCALE_VECTOR, effects, 0f); }
public override void Draw(Microsoft.Xna.Framework.GameTime gameTime, Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch) { base.Draw(gameTime, spriteBatch); spriteBatch.DrawString(scoreFont, score.ToString(), scorePos, Color.White); spriteBatch.Draw(homeTex, new Vector2(70.0f, 650.0f), Color.White); spriteBatch.Draw(replayTex, new Vector2(820.0f, 650.0f), Color.White); }
public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch) { if (selected) { spriteBatch.Draw(Assets.MenuButtonGlow, new Rectangle((int)X - 30, (int)Y - 30, Size.X + 60, Size.Y + 60), Color.White); } spriteBatch.Draw(Graphic, new Rectangle((int)X, (int)Y, Size.X, Size.Y), Color.White); }
public override void Draw(Microsoft.Xna.Framework.GameTime gameTime, Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch) { if(duringTransition || duringFade) { spriteBatch.Draw(backgroundTexture, transitionPosition, null, transitionTextureColor, 0, Vector2.Zero, 1f, SpriteEffects.None, LayerIdentifiers.TRANSITION_IMAGE); } spriteBatch.Draw(backgroundTexture, basePosition, null, Color.White, 0, Vector2.Zero, 1f, SpriteEffects.None, LayerIdentifiers.BACKGROUND_IMAGE); }
public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch batch) { if (!disabled[(int)Buttons.start]) batch.Draw(ResourceManager.startButton, startRectangle, selected == (int)Buttons.start ? Color.Yellow : Color.White); if (!disabled[(int)Buttons.options]) batch.Draw(ResourceManager.optionsButton, optionsRectangle, selected == (int)Buttons.options ? Color.Yellow : Color.White); if (!disabled[(int)Buttons.controls]) batch.Draw(ResourceManager.controlButton, controlRectangle, selected == (int)Buttons.controls ? Color.Yellow : Color.White); if (!disabled[(int)Buttons.highscores]) batch.Draw(ResourceManager.highscoresButton, highscoresRectangle, selected == (int)Buttons.highscores ? Color.Yellow : Color.White); if (!disabled[(int)Buttons.exit]) batch.Draw(ResourceManager.exitButton, exitRectangle, selected == (int)Buttons.exit ? Color.Yellow : Color.White); }
public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch sprite) { //base.Draw(sprite); sprite.Begin(); sprite.Draw(texture, drawVector, Color.White); sprite.Draw(texture, drawVector + new Vector2(width/2, height/2), null, Color.White, -degree, new Vector2(width/2, height/2), new Vector2(1, 1), SpriteEffects.None, 0); //sprite.Draw(texture, drawVector + new Vector2(-48,-48), null, Color.White, -degree, new Vector2(48,48), new Vector2(1, 1), SpriteEffects.None, 0); sprite.End(); }
public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch, Microsoft.Xna.Framework.GameTime gameTime) { if (nbVies == 3) base.Draw(spriteBatch, gameTime); if (nbVies == 2) spriteBatch.Draw(heart2, Position, Color.White); if (nbVies == 1) spriteBatch.Draw(heart1, Position, Color.White); }
public override void Draw(Microsoft.Xna.Framework.GameTime gameTime, Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch) { base.Draw(gameTime, spriteBatch); spriteBatch.Draw(logoTex, new Vector2(320.0f, 200.0f), Color.White); spriteBatch.Draw(websiteTex, new Vector2(70.0f, 650.0f), Color.White); spriteBatch.Draw(creditsTex, new Vector2(112.0f, 50.0f), Color.White); spriteBatch.Draw(continueTex, new Vector2(820.0f, 650.0f), Color.White); }
public override void Draw( Microsoft.Xna.Framework.Graphics.SpriteBatch sb ) { //Texture2D pixel = Main.ContentManager.Load<Texture2D>( "images/pixelWhite" ); Rectangle box = new Rectangle( ( int ) GetPosition().X, ( int ) ( GetPosition().Y ), GetWidth(), GetHeight() ); //sb.Draw(pixel,box,Color.White); sb.Draw( hauptteilCraftingIcon, box, Color.White ); sb.Draw( antriebCraftingIcon, box, Color.White ); sb.Draw( visierCraftingIcon, box, Color.White ); sb.Draw( stabilisatorCraftingIcon, box, Color.White ); }
public override void Draw(float elapsedTime, Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch) { if(partsLeft > 1) spriteBatch.Draw(spikesSpritesheet, position - spikesCenterOffset, spikesSpriteBounds, Color.White); spriteBatch.Draw(helmetSpritesheet, position - helmetCenterOffset, helmetSpriteBounds, Color.White, 0, Vector2.Zero, 1, SpriteEffects.FlipVertically, 0); if(partsLeft > 2) spriteBatch.Draw(eyeSpritesheet, position - eyeCenterOffset, eyeSpriteBounds, Color.White, eyeRotation, eyeRotationOrigin, 1, SpriteEffects.None, 0); }
public override void Draw(Microsoft.Xna.Framework.GameTime gameTime, Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch) { int direciton = (int)currentDirection; spriteBatch.Draw(spriteSheet.Texture, basePosition, spriteSheet.SourceRectangle((int)currentDirection * frames + currentFrame), color, 0, Vector2.Zero, 1, SpriteEffects.None, LayerIdentifiers.DIGIT_BACKGROUND); spriteBatch.Draw(CyphersTexture, basePosition, cypherRect, color, 0, Vector2.Zero, 1, SpriteEffects.None, LayerIdentifiers.DIGIT_TEXT); }
/// <summary>Отрисовывает</summary> /// <param name="spriteBatch">The sprite batch.</param> public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch) { spriteBatch.Begin(); if (mAlphaValue != 0) spriteBatch.Draw(Background, Rect, new Color(255, 255, 255, (byte)MathHelper.Clamp(mAlphaValue, 0, 255))); else if (Cycle > 100) spriteBatch.Draw(Background, Rect, new Color(fadeOut, 0, 0)); else spriteBatch.Draw(Background, Rect, Color.White); spriteBatch.End(); }
public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch sb) { var dirX = this.Position.X > 0 ? 1 : -1; sb.Draw(this.Texture, this.Position - new Vector2(Game1.ScreenWidth * dirX, 0), Color.White); var dirY = this.Position.X > 0 ? -1 : 1; sb.Draw(this.Texture, this.Position - new Vector2(0, Game1.ScrrenHeight * dirY), Color.White); sb.Draw(this.Texture, this.Position - new Vector2(Game1.ScreenWidth * dirX, Game1.ScrrenHeight * dirY), Color.White); sb.Draw(this.Texture, this.Position, Color.White); }
public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch sb) { base.Draw(sb); if (!isStarting) { Rectangle destRect = new Rectangle((int)x - xoff, (int)y - yoff, Game1.texHudActionsOutline.Width / 4, Game1.texHudActionsOutline.Height); Rectangle srcRect = new Rectangle((int)outlineFrame * Game1.texHudActionsOutline.Width / 4, 0, Game1.texHudActionsOutline.Width / 4, Game1.texHudActionsOutline.Height); sb.Draw(Game1.texHudActionsOutline, destRect, srcRect, Color.White); int fc = 3; destRect = new Rectangle((int)x - xoff, (int)y - yoff, Game1.texHudActionsText.Width / fc, Game1.texHudActionsText.Height); srcRect = new Rectangle(type * Game1.texHudActionsText.Width / fc, 0, Game1.texHudActionsText.Width / fc, Game1.texHudActionsText.Height); sb.Draw(Game1.texHudActionsText, destRect, srcRect, Color.White); } }
/// <summary>Draws this control.</summary> /// <param name="batch">The sprite batch used to draw this control.</param> public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch batch) { Point newLoc = getScreenPos(); Rectangle newRect = new Rectangle(newLoc.X, newLoc.Y, Width, Height); batch.GraphicsDevice.ScissorRectangle = newRect; if (HasFocus && TopParent.IsMouseLeftDown) batch.Draw(TopParent.TBack, newRect, BackColorPressed); else if (HasHover) batch.Draw(TopParent.TBack, newRect, BackColorHover); else Draw(batch, newRect); }
public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch) { //// return wenn Dropdown nicht gezeigt wird if (!IsVisible) return; // Draw Outlines spriteBatch.Draw(mTexture, Position - new Vector2(1, 1), mOutlineRectangle, mOutlineColor); // Draw Box spriteBatch.Draw(mTexture, Position, mDrawRectangle, mDrawColor); // Draw Selected Hover if (mHover) spriteBatch.Draw(mTexture, mHoverRectangle, mHoverColor); }
public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch batch) { batch.Draw(image, new Rectangle(x_position-5, y_position-5, 360, y_spacing*(menuitems.Count + 1)+10), Color.Gray); batch.Draw(image, new Rectangle(x_position, y_position, 350, y_spacing * (menuitems.Count + 1)), Color.Black); batch.DrawString(font, team.TeamName, new Vector2(x_position, y_position), team.Color); foreach (MenuItem x in menuitems) { int i = menuitems.IndexOf(x) + 1; x.Draw(batch, font, x_position + i * x_spacing, y_position + y_spacing * i); } }
public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch) { for (int i = 0; i <= 360; i++) { if ((360 / (float)StartValue) * (Value - 1) >= i) { var destRect = new Rectangle(this.X + (Size.X / 2), this.Y + (Size.Y / 2), 1, 50); spriteBatch.Draw(Assets.ClockFillSprite, destRect, null, Color.White, -MathHelper.ToRadians(i + 180), new Vector2(0, 0), SpriteEffects.None, 0); } } spriteBatch.Draw(Assets.ClockFrameSprite, BoundingBox, Color.White); foreach (var num in FontNumber.FromInteger((int)Value, X + 30, Y + 35, new Point(27, 40), "00", FontNumber.FontNumberColor.Red)) { num.Draw(spriteBatch); } }
public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch batch) { float a = ((float)(lifetime) / (float)maxLife); //Debug.WriteLine(a); batch.Draw(Texture, Position, c * a); base.Draw(batch); }
public override void Draw(GameTime gameTime, Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch) { _screenshotStream.Position = Position; _screenshotStream.SamplePosition = Position; _screenshotStream.ScreenshotData = (_owner as Fotograaf).GetScreenShotStream(); _screenshotStream.PhotoScrore = CalculateScore(); _screenshotStream.Draw(spriteBatch); spriteBatch.Draw(Texture, new Vector2(Position.X - Texture.Width / 2, Position.Y - Texture.Height / 2), Color.White); /* Vector2 catCenter = (_owner as Fotograaf).Cat.Position; int bestSnedeIndex = -1; float bestSnedeDist = -1; float tmpDist = -1; for (int i = 0; i < _guldenCoords.Length; ++i) { tmpDist = Vector2.DistanceSquared(_guldenCoords[i] + Position, (_owner as Fotograaf).Cat.RealPosition); if (bestSnedeDist == -1 || tmpDist < bestSnedeDist) { bestSnedeDist = tmpDist; bestSnedeIndex = i; } } Tools.DrawPixel(spriteBatch, _guldenCoords[bestSnedeIndex] + Position);*/ //Tools.DrawPixel(spriteBatch, (_owner as Fotograaf).Cat.CatHead); }
public override void draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.GraphicsDevice graphicsDevice) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null, null, publicStatics.spriteScale); //Background spriteBatch.Draw(Image.howToPlayMenu, new Rectangle(0, 0, publicStatics.screenSize.Width, publicStatics.screenSize.Height), Color.White); //Draw all labels for(int i = 0; i < labels.Count; i++) { labels[i].Draw(spriteBatch); } //Draw all Buttons for (int i = 0; i < buttons.Count; i++) { buttons[i].Draw(spriteBatch); } //Draw all Checkboxes for (int i = 0; i < checkboxes.Count; i++) { checkboxes[i].Draw(spriteBatch); } //Draw Mouse Cursor cursor.drawTexture(spriteBatch, graphicsDevice); spriteBatch.End(); }
public override void draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.GraphicsDevice graphics) { base.draw(spriteBatch, graphics); vector = new Vector2(chunkPos * CHUNKWIDTH - InputManager.getInstance().getCurrentPlayer().getX() + graphics.Viewport.Bounds.Center.X + ((CHUNKWIDTH - 32) / 2), graphics.Viewport.Bounds.Bottom - 64 - getHeight() - InputManager.getInstance().getCurrentPlayer().getY() + graphics.Viewport.Bounds.Center.Y); spriteBatch.Draw(ResourceHandler.getInstance().getLight(), vector, Color.White); }