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

P#82165 2020-09-23 17:27 ( Edited 2020-09-23 17:28)

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

P#82166 2020-09-23 17:38

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!

P#82168 2020-09-23 17:45 ( Edited 2020-09-23 17:46)

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

P#82169 2020-09-23 18:10

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

P#82172 2020-09-23 18:16

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

P#82173 2020-09-23 18:19 ( Edited 2020-09-23 18:20)

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

P#82175 2020-09-23 18:53

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 19:37:43 | 0.012s | Q:22