No Dice Required Rotating Header Image

Defrag Beta 2…

Just goes to show you that nothing is the last word until it is the last word =)

Added:

  • Friendly messages which are not remotely humorous.
  • More levels — more still needed.
  • A level selection bar and the levels now persist in a replayable form.
  • The number of moves made are tracked and rated against a target.
  • Mochi Ad integration.
Full of fragmented goodness!

Full of fragmented goodness!

Up to about 22 hours now.

Post edited to address Joe’s feedback.

New lines in Strings read from Xml

Are you reading Strings into your Flash application from Xml? Are your \n’s showing up as \n rather than a new line character? Are you confused why this is happening? Then you may be suffering from escapism.

But seriously…

Suppose you have this Xml string which is read by a URLLoader object:

<root>
<data message=”Hi.\nThis is on a new line” />
</root>

When this Xml document is loaded, you rip out the message with something like the following…

public function LoadXml(fileUrl:String):void
{
	var xmlLoader:URLLoader= new URLLoader();
	xmlLoader.addEventListener(Event.COMPLETE, processXml);
	xmlLoader.load(new URLRequest(fileUrl));
}
 
private function processXml(e:Event):void
{
	this._masterXml = new XML(e.target.data);
	this._message = this._masterXml.data.attribute("message");</code>
}

Then later you put this message into a TextField.

this._userMessage.text = this._message;

But then! Your text field looks like this (all on one line): Hi.\nThis is on a new line

How to fix it? Throw this in the process somewhere… after you deserialize from the Xml or before you write it to the TextField.

var newLine:RegExp = /\\n/g;
message = message.replace(newLine, "\n");

This will allow you to use \n in your Xml strings but also enjoy the benefits of multiple lines.

Hi.
This is on a new line

Be sure and tune in next time for another exciting adventure with me, Herbert “Daring” Dashwood, and my stalwart Ghoul manservant Argyle!

Defrag Beta

This is the third and final demo; publishing is right around the corner!

How’s this feel to play? I hope it feels good and fluid because it was very hard to make the segments move like that and I’d hate to think we did it all for nothing.

Remaining to complete:

  • Track the number of movements
  • A background image
  • Create more levels
Full of fragmented goodness!

Full of fragmented goodness!

Total invested hours are about 15ish.

Defrag Demo 2

Quite a bit was rewritten or redesigned… just go to show that developers should understand as much of what they’re going to code before they start coding.

This game will be published on Friday at 11:45! And all of our readers know that we’re not ashamed of publishing crap, so expect a game at that time!

There remain three many significant tasks:

  • Background image and sound… maybe this game will be the my first that isn’t floating in a field of white?
  • A game completed screen.
  • A menu system with level-jumping support. This probably won’t make the cut.
  • Movement of the segments is pretty cheap and stiff: it works by sliding the pieces rather than determining where the mouse is an seeing if it can be jumped there. This’ll have to be fixed because it will frustrate players.
  • Track the number of moves made and compare against target minimum values. Everyone loves a challenge! Reporting this to the players should make the game more engaging (we think).

I don’t know of any bugs (aside from a weird centering problem on one of the levels) so any bug reports are much appreciated! Any way, here it is. Anyone want to design some levels? =)

Full of fragmented goodness!

Full of fragmented goodness!

Defrag Demo

The rumor is that there are two kinds of Flash games: those that take 6 months to develop and those that take 1 week. Data suggests that those developed in 1 week have a greater monetary return on time invested. To that end, we present you with a 5 hour game!

Have you ever defragmented your hard drive? If you haven’t then your computer is probably slowing down or you’re paying someone too much money to defrag for you. Basically, as your use your computer, files are created and deleted all the time. The computer gods are happy when a file is on one long strip of physical space, but sometimes there isn’t enough room to fit a file in one long strip; so instead, the file is split into pieces. These pieces are stored wherever there’s room for them and they’re linked together when the file is opened later. All of this happens transparently to us users, but if a file is split too many times then your computer will take longer to access it.

Anyway, Defrag is a game based on the process your computer goes through when it removes the gaps between file pieces. The goal of Defrag is to sort the pieces of data so they are in order and don’t have any gaps.

This is a quick demo with a handful of levels. The levels are created through Xml so it can be easily built upon.

On to the demo!

Full of fragmented goodness!

Full of fragmented goodness!

Instructions: Click and drag, baby!

Squadron Formations

Whew, late night but fun development. Who wants to see the new battalion formations?


Continue reading →

The Graveyard

Happy New Years everyone!

A minor release today for Ant Invaders –


Continue reading →

Ant Invaders is Reborn!

After cutting our teeth on Tree Climber, Ant Invaders was published to Kongregatelast weekend with favorable results.

First off, I’d like to say a big “Thank you” to everyone who played and commented on this prototype, and I’m happy to say that your enthusiasm has revived my enthusiasm and a whirlwind of high-fives and air-punches.

To show our commitment to you, the player, here’s an iterative development release which is kinda fun.

Continue reading →

Vine Climber Published

Well, it doesn’t have much of a goal… and it isn’t fun… but it is our first finished game! Play (and vote 5 stars!) at http://www.kongregate.com/games/alexeisenhart/vine-climber

Interesting data:

Time until “First Post!1″: 25 seconds
Time until accusations of theft: 5 minutes

Endurance Demo 2

Oy, Lots of shoveling today and a late night of coding. Anyone else feel the pain of this weekend’s Nor’ Easter?

Too tired for alt text.
Continue reading →