Almost a Space Game (A2SG)

Archive for the 'A2SG Progress' category

New Functionality - Warps

February 25, 2008 11:51 pm

SVN checkin #2 for A2SG includes enhanced warp functionality… now they can be stable or unstable… including the time when they’ll expire.  There’s some model logic which will automatically create a random expiration date if the stable flag is set and the expiration time wasn’t already specified.  Perhaps the last sentence only truly means anything to me… good times.

This checkin also includes a nifty Rails plugin called “Manage Fixtures” which, quite unsurprisingly, helps one manage one’s fixtures.  It’ll take a current table (or a set) or all of your tables and convert them to YAML fixtures. Quite handy!

Off to a Good Start

February 24, 2008 3:27 pm

The latest/greatest version of my A2SG code is now all safe and sound in a Subversion repository. :)

I ran rcov on it and I feel ok about my test coverage, though there’s definitely more to do.

For the first time ever I’ve written custom Rake tasks thanks to the Rake Tutorial written by Gregg from RailsEnvy. A couple of things that I think I “figured out” (meaning “I’m not sure this is the orthodox way to do this, but it works…”) are:

  1. An example of creating a rake task that calls other tasks and also allows use of the application’s models:

    task :do_this => [:a_subtask, :environment] do

    end

    That calls :a_subtask and also allows use of the application’s odels in the rake tast by specifying the environment.

  2. This is a way to call multiple subtasks:

    task :do_this => [:a_subtask, :another_subtask, :yet_another_subtask, son_of_the_second_cousin_of_the_son_of_subtasks, :environment] do

    end

Almost a Space Game (A2SG) - Hello World

February 22, 2008 8:26 pm

Welcome to my new blog.  I’ve been wanting to make a web-based space trading game for a very long time and it’s only been up until fairly recently that I believe I’ve acquired the ability to actually make it.  Maybe I’m overestimating my abilities, but I’m rather confident that I’ll be able to accomplish something!  A positive thing is that it looks like I’ll have some large blocks of time coming up within the next week… my hope is that I’ll use them productively!

The intent of this blog is to share progress towards making the actual game and to share lessons learned while using Ruby on Rails, AJAX, Flex, AIR, and other cool stuff I get interested in… though hopefully don’t end up in deep rabbit holes because of.  :)

It’s likely that it’ll contain RPG/ Web Game/ and other Misc. content too since there’s a lot of cool stuff on the internet worth sharing.

I’ll get around to installing a cool WordPress Theme soon… right now I’d rather get back to workin’ on the game.  Thanks for your interest!  :)