Log In  


I present to you my first public cartridge, a simple countdown timer.
I made this to show on my stream while working on the Ludum Dare game jam.

It is currently set to countdown to the Jam deadline in BST time.
To use it for your different time-based or competition deadlines, simply edit the day and hour variables at the top of the code.

Does not work over a month boundary - as the next LD is all in October I didn't spend any time to support it.
The day value will always mean that day in the current month.

Cart #marejatanu-0 | 2020-09-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1


Is something not right, or is the deadline over already? I get this;


Yeah thats coz of the note at the bottom.
The day value will always mean that day in the current month.
LD is all in October so when it ticks over to next month it will work.
For testing, try setting to the day variable to a day later in the current month!

Unfortunately, the max number limit makes counting from 1st January untenable!


Ya know what, version 1.1 will support UTC too so you wont need to adjust for your own time zones.


UTC based

You'll no longer need to set the time to your timezone

Cart #gayibufajo-0 | 2020-09-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


I'm sure there is a way (to count across months), but you could always just output 'not started' or something if it's not Oct 2020 yet. STAT(90), STAT(91) and STAT(92) are supposed to give the year, month and day


Yeah I could do - it will all be fine when it matters though.



[Please log in to post a comment]