December 28, 2007

Top 3 Albums of the Year

Filed under:music — ryan @ 1:31 am

I was asked in a last.fm community I am a part of so I thought about it. I figured, if I answered them there, I may as well post my answers here and on my lj.


1.) Architecture in Helsinki – Places Like This

These guys just sound like they are having a lot of fun. To see what kind of fun I am talking about, watch this video:


2.) The Fiery Furnaces – Widow City

I have always liked the fiery furnaces. For some reason, this time especially, I feel like a big overarching story is trying to come across…and I can almost piece it together.


3.) A Place to Bury Strangers – A Place To Bury Strangers

This is more a collection of remastered songs that are much older, but it’s a great collection of great noise and shoegaze style tracks.


There we go. Short, to the point, badly formatted, with a youtube video. Goodnight.

December 23, 2007

ruby

Filed under:technology — ryan @ 3:16 am

Ruby is a great language. It’s object-oriented in all the right ways, and the syntax is so simple, it reads like pseudocode.

I’ve been creating my very own roguelike using ruby. It took me a few false starts, but I am now using ruby’s built-in curses bindings. Click here to see the window setup I have decided to stick with. The big blank spot in the upper left is where the actual gameplay map will show up. The bottom is for narration/log of encounters and whatnot. The upper right is for character status, hp/mp/poisoned/hungry, that sort of thing. The lower right is for inventory, and the contents of chests/bags/etc.

For those interested in how I got that stuff to appear, it was as easy as this:

def draw_windows
    @map_win = Window.new(16, 60, 0, 0)
    @map_win.refresh
    
    border_win = Window.new(12, 20, 0, 60)
    border_win.box(0,0)
    border_win << ‘Status’
    border_win.refresh
    @stat_win = Window.new(10, 18, 1, 1)
    @stat_win.refresh
    
    border_win = Window.new(12, 20, 12, 60)
    border_win.box(0,0)
    border_win << ‘Stuff’
    border_win.refresh
    @stuff_win = Window.new(10, 18, 13, 61)
    @stuff_win.refresh
    
    border_win = Window.new(8, 60, 16, 0)
    border_win.box(0,0)
    border_win << ‘Travel Log’
    border_win.refresh
    @log_win = Window.new(6, 58, 17, 1)
    @log_win.scrollok(true)
    @log_win.refresh
end