How to make the live streaming Christmas Tree Game. // Project


Running it

I also wrote a quick and dirty perl script that would fire off random snowballs if noone was online.

#!/usr/bin/perl
$|=1;

while(1)
{
    $r=int(rand(9));
    system("echo $r | netcat localhost 1234 >/dev/null");
    print STDERR ("$r\n");
    sleep(rand(8));

    $r=int(rand(9));
    system("echo $r | netcat localhost 1234 >/dev/null");
    print STDERR ("$r\n");

    sleep(rand(32));
}

I could also throw snowballs from my phone as well.

For this I used an app called “SSH Control” which allows you to send arbitrary TCP data to servers.


Summary

So a few interesting stats for you.

Over the course of a week and a bit, around 700 of you threw over 30,000 snowballs.

Unfortunately I forgot to record how many times Santa was hit. So that’s going to remain a mystery forever.

Let me know in the comments below if you made one yourself. It’d be great to see how you did it and what mods you made to it.


Linky Links


If you like this YouTube channel please subscribe by clicking the in-video button, or the little red "Subscribe" button in your browser or app. You can also get updates by subscribing to me on Facebook, Twitter, Google+, Pinterest, and also Tumblr.