Categories

a screensaver based on day2 of code!

hello friends and everyone else surely not reading this!

 

here is a broken screensaver that tried to make using the bouncing ball from our second day of code!

it seems to have compiled itself into an executable file, and I found a tutorial online that said that all you need to do to make a screensaver in windows is change the file extension; I did so and viola! it doesn’t work.

but it’s cool to look at! randomizes some initial values AND ‘speeds’ for those values, then bounces a color-and-size-changing ellipse around your screen based on those values. the size bounces off the edges of the screen and off a lower bound within themselves. they successfully bounce off the positive edges (right & bottom) of the screen, but when you try to get it to bounce off the 0-edges (left & top), it causes a weird fault where it will get caught in a loop toggling a direction every tick. this version seems to work fine.

convenient sidebar shows all the values so you can see exactly how it’s functioning! you can comment it out if you don’t like it..

 

if anyone can manage to make an actual screensaver out of this (mine is ‘installed’ as an .scr but doesn’t load when it normally should) or any processing .exe, please let me know!! I WILL BUY YOU A DRINK!

 

cheers and enjoy

 

[WHOOPS TURNS OUT THE FILE SIZE LIMIT ON THIS JANKY PLATFORM IS 2MB, COME SEE ME IF YOU WANT THIS BROKEN .SCR]

No Comments

Sorry, the comment form is closed at this time.