Sweetchuck's – Home of the Waffle

Just another WordPress site

Grabbing the images

Icemark contains a nice screen-by-screen map which was ideal for my purposes. I took a look at the HTML and found that the actual map was secretly embedded (more later!) I was absolutely delighted! But first; how to get the images?

I wrote a little tool using Visual Studio and C# to grab the images from the remote web site. Because this tool was a one-off and I was the only user, it didn’t have to be fancy. In fact, just running the program did the work. I created several routines, that I’ll cover in later posts, to grab various bits of information.

Very simply, here’s how I grabbed all the images:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
private void GetImages()
{
	for (int i = 0; i < 48; i++)
	{
		string imgString = i < 10 ? "0" + i : i.ToString();
		string url = "http://www.icemark.com/spectrum/sabrewulf/map/" + imgString + ".gif";
 
		HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
		HttpWebResponse response = (HttpWebResponse)request.GetResponse();
		Stream resStream = response.GetResponseStream();
 
		Image img = Image.FromStream(resStream);
		img.Save(@"C:\sabrewulf\" + imgString + ".png", ImageFormat.Png);
	}
}
posted by sweetchucks in Coding,Retro Remake and have No Comments

Sabre Wulf

Sabre Wulf is an old game for the ZX Spectrum that was designed by Ultimate Play the Game. UPG ultimately (sorry) became Rare and the rest is Banjo-Kazooie history. However, their output on the Spectrum was second to none.

So, why am I telling you this. Well, I’ve decided to do a Retro Remake for the XBox. I have little or nothing to show at the moment, but I want to cover a couple of tutorials on how to get things into XNA. There’s been a few stumbling points along the way so far, and I’ve not had much luck with Google. Still. That’s where the fun is!!

So far I’ve had to:

  • Write a tool that screen-scraped Ice Mark’s web site (erm, thank you :) ) to get the room data
  • Write a tool that grabbed the screens (there are 48 unique screens) from the Ice Mark web site
  • Write a mapper that took the screens and split them into the tiles
  • Write a custom importer for XNA (because it doesn’t support straight-up XML)

I’ve also done a small test game on the PC to show the rooms when the space bar is hit.

All this and there is no game to show for my efforts! Still, it’s been quite educational / fun so far. I’ll do posts for each of the bullet points above, then it’ll be a regular developer diary for the actual game.

posted by sweetchucks in Retro Remake and have No Comments

Hello world!

And we are back! It’s been a long time coming, but finally after months I decided to get a new web site. Nothing exciting planned, just the usual waffle.

posted by sweetchucks in Blog Post and have No Comments