Author Topic: Completely and Utterly Pointless Use of WM's Lua thigy  (Read 1746 times)

0 Members and 1 Guest are viewing this topic.

Offline At

  • 26
  • Eklektikon
Completely and Utterly Pointless Use of WM's Lua thigy
:D\-<
:D|-<
:D/-<

Just acquainting myself with Lua and WMCoolman's implementation in FSO.



The init file :
Code: [Select]
--## Init for the DancingManHud thingy. ##--

-- Def this here to make it globalish.
Frame = 1
Index = 1 --## Index for the drawing of the arms. ##

Arms = { "\\", "|", "/", "|" }

The Hud File :
Code: [Select]
-- Draw a dancing ascii man at the center of the screen.
-- Let's have the char change about every 1 second.

FPS = 1 / ba.getFrametime()
X = gr.getScreenWidth() / 2
Y = gr.getScreenHeight() / 2

if Frame < FPS then
Frame = Frame + 1
else
Frame = 1

if Index >= 4 then
Index = 1
else
Index = Index + 1
end
end


gr.setColor( 255, 255, 255, 128 )

gr.drawString( ":D" .. Arms[ Index ] .. "-<", X, Y )

:)
Does there exist a StarFox Mod?  Yes!  Check out Shadows of Lylat!

That thing…its just too persistant.

Sadhal thought to himself in between his pants. After a few seconds, his breathing came under control, and the pain subsided. Sadhal couldn’t help but feel a significant amount of fear and apprehension.

 

Offline Flipside

  • əp!sd!l£
  • 212
Re: Completely and Utterly Pointless Use of WM's L
:lol:

Why do I think of Hot Shots when I see that HUD?

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Completely and Utterly Pointless Use of WM's L
:lol:

get on up and DANCE!

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: Completely and Utterly Pointless Use of WM's L
:lol:

Why do I think of Hot Shots when I see that HUD?
Would that be the Donkey Kong targetting reticle?
The Trivial Psychic Strikes Again!

 

Offline Flipside

  • əp!sd!l£
  • 212
Re: Completely and Utterly Pointless Use of WM's L
That the one! All we need now is for the hud to pounce on the enemy ship and start punching it ;)

 

Offline At

  • 26
  • Eklektikon
Re: Completely and Utterly Pointless Use of WM's Lua thigy
Bahaha.  Maybe if they're in the center of the reticle...
Does there exist a StarFox Mod?  Yes!  Check out Shadows of Lylat!

That thing…its just too persistant.

Sadhal thought to himself in between his pants. After a few seconds, his breathing came under control, and the pain subsided. Sadhal couldn’t help but feel a significant amount of fear and apprehension.

  

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Completely and Utterly Pointless Use of WM's L
It's not utterly pointless. I'm sure the warm feeling WMC gets in his chest when he sees this will make it all worthwhile :D
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]