Facebook
From Wet Madrill, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 112
  1. function bindings.wormRender(x, y, worm, viewport, ownerPlayer)
  2.         if boss.boss_obj then
  3.                 local ownViewport = ( ownerPlayer == worm:player() )
  4.                 if boss.boss_obj:data().hppercent <= 0 then return end
  5.  
  6.                         local bitmap = viewport:bitmap()
  7.                 if ownViewport then
  8.                 local filled = (boss.boss_obj:data().hppercent / 100)
  9.                 fonts.liero:render(bitmap, "LVL 1", bitmap:w() - 68, 232, 255, 255, 255, Font.CenterV + Font.Right )
  10.                 hudtools.drawHBar( bitmap, filled, bitmap:w() - 64, 230, 60, 4)
  11.         end
  12. end
  13. end