Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: At on April 20, 2006, 03:57:42 pm
-
:D\-<
:D|-<
:D/-<
Just acquainting myself with Lua and WMCoolman's implementation in FSO.
(http://img.photobucket.com/albums/v328/atalhlla/Picture9.png)
The init file :
--## 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 :
-- 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 )
:)
-
:lol:
Why do I think of Hot Shots when I see that HUD?
-
:lol:
get on up and DANCE!
-
:lol:
Why do I think of Hot Shots when I see that HUD?
Would that be the Donkey Kong targetting reticle?
-
That the one! All we need now is for the hud to pounce on the enemy ship and start punching it ;)
-
Bahaha. Maybe if they're in the center of the reticle...
-
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