Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Share Worlds (http://www.alice.org/community/forumdisplay.php?f=6)
-   -   Countdown till christmass (http://www.alice.org/community/showthread.php?t=7746)

nickster654 12-06-2011 07:52 PM

Countdown till christmass
 
2 Attachment(s)
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 08:54 PM

Wow, this is amazing.

nickster654 12-06-2011 09:33 PM

[QUOTE=jediaction;44270]Wow, this is amazing.[/QUOTE]

Lol really? i didnt think too much of it

GameKid 12-06-2011 11:49 PM

This is pretty nice.
Do think much of it.

jediaction 12-07-2011 04:24 PM

It's an actualy count down, thats why it's amazing.

arty-fishL 12-07-2011 04:34 PM

Only 18 days!
I see you spelt Christmas with two [I]s[/I] letters on the end in the title and attachment name, but not on the text in the world.

dakota95 12-07-2011 05:41 PM

Thats amazing. Great idea. Does it take the time from your computer? or from the downloaders?

nickster654 12-07-2011 06:00 PM

[QUOTE=dakota95;44305]Thats amazing. Great idea. Does it take the time from your computer? or from the downloaders?[/QUOTE]

lol thanks and from your computer

InsertName 12-07-2011 07:41 PM

how does it do that, is it hacks?

GameKid 12-07-2011 08:38 PM

[IMG]http://i44.tinypic.com/1g2hkj.png[/IMG]
It's under world's functions.

nickster654 12-08-2011 11:30 AM

[QUOTE=GameKid;44316][IMG]http://i44.tinypic.com/1g2hkj.png[/IMG]
It's under world's functions.[/QUOTE]

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

GameKid 12-08-2011 02: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 04:18 PM

I love it!

nickster654 11-06-2012 05:55 PM

Hmm, it's been a whole year, wonder if this still works...

arty-fishL 11-07-2012 03:51 PM

[QUOTE=nickster654;51491]Hmm, it's been a whole year, wonder if this still works...[/QUOTE]
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 12:15 PM

[QUOTE=arty-fishL;51504]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.[/QUOTE]

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 03:40 PM

[QUOTE=nickster654;51546]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 ):[/QUOTE]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 08:32 PM

[QUOTE=arty-fishL;51548]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.[/QUOTE]

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 01:45 PM

[QUOTE=nickster654;51562]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[/QUOTE]I'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 09:42 PM

You can make countdown work for any time of the year if you change first line of instructions.

change from:
[B]world.days set value to (25-day of month) duration=0 seconds[/B]
change to:
[B]world.days set value to [I][U](359[/U][/I]-[I][U]day of year[/U][/I]) duration=0 seconds[/B]
(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 06:19 PM

1 Attachment(s)
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 01:52 PM

[QUOTE=arty-fishL;51599]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.[/QUOTE]

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

nickster654 12-23-2013 04:58 PM

is it too late to bump this?

wega77 12-24-2013 10:57 AM

Great idea.


All times are GMT -5. The time now is 11:26 AM.

Copyright ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.