PDA

View Full Version : Countdown till christmass


nickster654
12-06-2011, 06:52 PM
yea got bored, made it, dont expect much else, if somethings wrong, tell me and ill fix it

(Thanks to Arty for the improved version)

jediaction
12-06-2011, 07:54 PM
Wow, this is amazing.

nickster654
12-06-2011, 08:33 PM
Wow, this is amazing.

Lol really? i didnt think too much of it

GameKid
12-06-2011, 10:49 PM
This is pretty nice.
Do think much of it.

jediaction
12-07-2011, 03:24 PM
It's an actualy count down, thats why it's amazing.

arty-fishL
12-07-2011, 03:34 PM
Only 18 days!
I see you spelt Christmas with two s letters on the end in the title and attachment name, but not on the text in the world.

dakota95
12-07-2011, 04:41 PM
Thats amazing. Great idea. Does it take the time from your computer? or from the downloaders?

nickster654
12-07-2011, 05:00 PM
Thats amazing. Great idea. Does it take the time from your computer? or from the downloaders?

lol thanks and from your computer

InsertName
12-07-2011, 06:41 PM
how does it do that, is it hacks?

GameKid
12-07-2011, 07:38 PM
http://i44.tinypic.com/1g2hkj.png
It's under world's functions.

nickster654
12-08-2011, 10:30 AM
http://i44.tinypic.com/1g2hkj.png
It's under world's functions.

lol exactly thats why i dont think its amazing because it gives you the time already

GameKid
12-08-2011, 01:08 PM
Well. Still. You have to admit, it's still quite nice. You should make another one for new year's!

David B
12-08-2011, 03:18 PM
I love it!

nickster654
11-06-2012, 04:55 PM
Hmm, it's been a whole year, wonder if this still works...

arty-fishL
11-07-2012, 02:51 PM
Hmm, it's been a whole year, wonder if this still works...
No, it doesn't :(. It claims there are only 18 days to go, which would take it up to November 25. I don't think you've factored months into this.

nickster654
11-12-2012, 11:15 AM
No, it doesn't :(. It claims there are only 18 days to go, which would take it up to November 25. I don't think you've factored months into this.

yeahh i think it only works for chritmass of 2011, and i cant really fix it because ever since i started java, i've forgotten everything about alice ):

arty-fishL
11-12-2012, 02:40 PM
yeahh i think it only works for chritmass of 2011, and i cant really fix it because ever since i started java, i've forgotten everything about alice ):It works for the 25th of every month.

Awesome, you started Java, you should check out mine and drellem's ArtyOnline project - its networked multiplayer for Alice - written in Java. It's not quite finished, because I'm doing a tonne of web based stuff for it right now, but it'll be interesting to see what people make with it when it is done.

nickster654
11-13-2012, 07:32 PM
It works for the 25th of every month.

Awesome, you started Java, you should check out mine and drellem's ArtyOnline project - its networked multiplayer for Alice - written in Java. It's not quite finished, because I'm doing a tonne of web based stuff for it right now, but it'll be interesting to see what people make with it when it is done.

so far, all i know in java is how to make spirals and stick figure using turtle.java, what you're doing is a different language probably to me

arty-fishL
11-14-2012, 12:45 PM
so far, all i know in java is how to make spirals and stick figure using turtle.java, what you're doing is a different language probably to meI've never heard of turtle.java, so yeh - probably completely different. I kind of jumped right in at the deep end, its really easy
to code Java after working with Jython and reading Java for so long.

mcelroy32400
11-14-2012, 08:42 PM
You can make countdown work for any time of the year if you change first line of instructions.

change from:
world.days set value to (25-day of month) duration=0 seconds
change to:
world.days set value to (359-day of year) duration=0 seconds
(If you do 365 it includes the 6 days after Christmas, so it won't calculate correctly.)

As long as you view the countdown between Jan 1 and Dec 25 it should work out great!

arty-fishL
11-17-2012, 05:19 PM
I decided to fix it.
It now accounts (and should work) for:
- months
- leap years
- viewing it on the 6 days after christmas

I also compared it to some online countdowns I found and realised a fundamental mistake; when you are already into the last day, hour or minute, there are 0 of them left, not 1.
This doesn't apply to seconds, because milliseconds aren't displayed.

I also rearranged some of the code, so that it is more efficient.

jediaction
11-28-2012, 12:52 PM
I decided to fix it.
It now accounts (and should work) for:
- months
- leap years
- viewing it on the 6 days after christmas

I also compared it to some online countdowns I found and realised a fundamental mistake; when you are already into the last day, hour or minute, there are 0 of them left, not 1.
This doesn't apply to seconds, because milliseconds aren't displayed.

I also rearranged some of the code, so that it is more efficient.

Very cool, looks like this is the new official count down.

nickster654
12-23-2013, 03:58 PM
is it too late to bump this?

wega77
12-24-2013, 09:57 AM
Great idea.