Euflorium: The Eufloria Community

Eufloria => Eufloria Classic => Eufloria Classic Mods => Topic started by: Breakord on January 12, 2013, 07:28:03 AM

Title: A Visible Game Timer
Post by: Breakord on January 12, 2013, 07:28:03 AM
 :D
Want to know how much time have you been spending playing the level?
This may help!

(click to show/hide)

Just add GameTimer() to function ScreenDraw() like this

Code: [Select]
function ScreenDraw()
GameTimer()
end

Aino's function DrawText() is called, so you have to add the codes below to the end of level files(.lua).

(click to show/hide)

Thanks for Aino's hard working~ :D

effect drawing:
(http://p13.freep.cn/p.aspx?u=v20_p13_photo_1301120735103282_0.jpg)
Title: Re: A Visible Game Timer
Post by: Bonobo on January 12, 2013, 08:32:21 AM
Very cool! Even if I currently don’t have the time to play Eufloria and therefore don’t need to check how much time I’ve been play procrastinating :•)
Title: Re: A Visible Game Timer
Post by: Aino on January 12, 2013, 12:20:30 PM
Awesome! It's very cool to see more and more people adding new stuff that people haven't added yet that is actually kind of essential in some ways :P
This could actually open up a lot of possibilities for planning strategies if some map maker makes a map with a lot of timed spawns (this function would be a MUST then).

I got some ideas for you though:
- Add all the codes into two levels, one which is a demo and another a raw code. You can find examples of this from both my function page and Annikk's page :)
- Add a GameTime timer and a RealTime timer, this is mostly for Eufloria HD where you can speed up time. When you speed up the time the GameTime increases significantly faster than what the RealTime does. You don't need both timers visible at all time, you can make the RealTime timer pop up when GameTime ~= RealTime.
- From what I can see in the code, the clock hands are static. You can move these around with the game time, which would for the most part be an aesthetic thing.