Someone's been there...
you’ve got to be the best
you’ve got to change the world
and use this chance to be heard
your time is now
…
don’t,
let yourself down
don’t let yourself go
your last chance has arrived
–Muse, “Butterflies and Hurricanes”
I don’t really like the song, but they’ve got another one titled “Thoughts of a Dying Atheist”.
Read more...Phoenix IGDA Game Jam - Lava Game
Our in-progress game for Android phones, where you move a character around and dig trenches for lava to flow through. Surprisingly easy work once you have the SDK installed and configured. Works great on both an emulator and the hardware.
We have the character movement and grid of dirt squares going. Artwork is, um, a placeholder. :)
Read more...Ruby tweets!
A while back I stumbled across a page of JAPHs, or Just Another Perl Hacker scripts. This was an ongoing competition Perl users had years ago to print the phrase “Just Another Perl Hacker” in the most convoluted way possible, utilizing little-known tricks of the language. They usually stuffed these mini-scripts into their Usenet signatures. I had always admired JAPHs, and decided to try my hand at a Ruby version. But I needed a forum, and I hadn’t been on Usenet in years.
So what’s the modern version? Why, Twitter, of course! The 140-character limit would provide an extra level of challenge, enough so that I didn’t feel a need restrict myself to printing “Just Another Ruby Hacker”.
I started simple, printing a wave to STDOUT.
ruby -e "i=0;loop{puts ' '*(29*(Math.sin(i)/2+1))+'|'*(29*(Math.cos(i)/2+1)); i+=0.1}"
#ruby
Copy-paste that to a terminal, and hit Enter. (If you copy from Twitter, there’s no need to worry about line breaks or the Favorite star; the browser strips them.) You get something like this:
||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||| ||||||||||||||||||||||||| ||||||||||||||||||||| |||||||||||||||||| ||||||||||||||| |||||||||||||| |||||||||||||| ||||||||||||||| |||||||||||||||||| ||||||||||||||||||||| ||||||||||||||||||||||||| |||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||| ||||||||||||||||||||||||| ||||||||||||||||||||| ...
Here’s a more-readable version:
That’s still among my favorites. But anybody can use puts(). The next was more ambitious…
Read more...Name the Top X of All Time - go!
A friend asked for a quick script to help him sort a top-50 list of games. Here’s what I threw together:
It picks two entries at random, and swaps their positions if you choose the later one as your favorite. Lather, rinse, repeat. Like a bubble sort without adjacent items.
Curses? Well, it was the quickest way to get Ruby to respond to a single keypress. And since you’re going to be making a lot of entries, I didn’t want you to have to hit Enter after every one.
So here you see my list of artists with 5-star songs, originally in alphabetical order, but with my favorites starting to bubble to the top:
Read more...(cackle)
Read more...