Binary Clock

Posted By: AMan

Binary Clock - 11/08/05 19:42

Hi ya,

I've decited to make another clock... this time a binary clock.


(Blue-green LED shown)

Also included are 3 other LED colors:





Info:
To use the script, add "binary_clock.mdl" to your level. Assign the action "Binary_Clock". The script will place all the colored LEDs and display the time. In the object propertys tab, you can set it to use 12or24 hour modes.
...
To change the led color: <EDIT> See Below...

If you want to know how to read the clock check out this site...look down at the bottom of that page.
http://www.thinkgeek.com/cubegoodies/lights/59e0/

Download:
http://www.anotherworld.uraniumhost.com/download/Models/Binary_Clock/binary_clock.zip

Any comments welcome.

Cheers,
AMan

EDIT:
I went back to the script and decited to make it easier to change colors, and so you can have two different colored clocks at once. Here's how...
1) Add the clock to the level
2) Assign it the binary clock action
3) Set "skill1" to the color you want the led's to be...
0 = blue/green
1 = red
2 = blue
3 = green


Here is an action shot... :P



Thats about it,
Cheers,
AMan
Posted By: Inestical

Re: Binary Clock - 11/09/05 07:17

Looks nice! Can you make it as Screensaver? would be appreciated
Posted By: Anonymous

Re: Binary Clock - 11/09/05 07:57

I love the binary clock. I might put it into use in a couple of games that I might program in the future.
Posted By: Steempipe

Re: Binary Clock - 11/09/05 08:07

Quote:

Looks nice! Can you make it as Screensaver? would be appreciated




Agreed. Cool clock!
Posted By: Tozzy

Re: Binary Clock - 11/09/05 17:40

Nice clock Aman but how the hell do you tell the time on it?!!! I think I'll stick to digital .
Posted By: Grimber

Re: Binary Clock - 11/09/05 17:53

bianry clocks are pretty easy to read. easy to figure out when you watch one.

here is a basic image of reading a binary clock

Posted By: Samb

Re: Binary Clock - 11/09/05 18:27

the perfect easteregg
Posted By: AMan

Re: Binary Clock - 11/09/05 22:45

Thanks for all the feed-back.

I'd like to make it into a screen saver... if I only knew what software I could use to convert the exe into a screen saver. I tried googleing it, but I didnt get anything useful. If anyone knew what software would do that, it would be appreciated.

Cheers,
AMan
Posted By: fogman

Re: Binary Clock - 11/09/05 23:05

Try "Nacasi" and then rename the exe from

blabla.exe

to

blabla.scr

You´ve to code a function that ends the engine when the mouse moves or a key was pressed
Posted By: AMan

Re: Binary Clock - 11/09/05 23:44

One slight problem.... I cant read german!

I'll have some fun trying to figure out this one. If anyone has an ENGLISH one it would help.

~AMan~

EDIT:
I just finished all the code needed for the clock to bounce around the screen. All I need now is a program to convert it to a screen saver. =)
Posted By: Josh_Arldt

Re: Binary Clock - 11/10/05 04:22

Awsome clock!
Posted By: Anonymous

Re: Binary Clock - 11/10/05 05:48

Here's a tip: For reading a binary clock, you can think of it as this:

00 0000:000 0000:000 0000

For example, if it's 12:45:00, then you will do:

01 0010:100 0101:000 0000

Those who need a quick explaination of how binaries work, start with 1 from the right and multiply by 2. For exampke, let's say that you have 8 zeros. "0" means "off," and "1" means "on." This is known as bit. 8 bits equal to 1 byte. So let's put into 8 zeros.

00000000

All zeros indicate that each of the 8 bits are off. Now, let's say that you have:

11111111

That's 255. It does this in a following order:

128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255

Let's break it down:

128 + 64 = 192
192 + 32 = 224
224 + 16 = 240
240 + 8 = 248
248 + 4 = 252
252 + 2 = 254
254 + 1 = 255

Hope this helps. You don't have to be a geek once you understand about what binary is.
Posted By: Inestical

Re: Binary Clock - 11/10/05 18:05

Ok, I got it,
© 2024 lite-C Forums