Login

Or
Register Now


Already have an account?
Username:

Password:

Remember me

Lost Your Password?
Main Menu
Collector's Guide Table of Contents
Recent Visitors

Findegil
2 hours 35 minutes ago

Stu
4 hours 41 minutes ago

Trotter
6 hours ago

laurel
7 hours 7 minutes ago

Khamûl
14 hours 50 minutes ago

Jlong
17 hours 24 minutes ago

Karl
20 hours 47 minutes ago

wellinghall
1 day 2 hours 57 minutes ago

Browsing this Thread:   1 Anonymous Users



(1) 2 »


I just wrote "The Hobbit" in C#
Home away from home
Joined:
2008/8/10 2:07
From Queenstown, New Zealand
Group:
Shirefolk
Fellowship
Posts: 543
Offline
Took me three weeks (and seemed like a good idea at the time as I didn't know C# and I didn't know XAML).

It is built as two Assemblies, one containing the core engine and game world definition (which can be run standalone as a pure text console application) and a second assembly that contains a windows GUI.

It essentially does all the same stuff as the ZX Spectrum original, with some very minor differences. Yes, you can type "TAKE EVERYTHING EXCEPT THE SWORD THEN VICIOUSLY ATTACK THE GOBLIN AND RUN NORTH" and it will know what you are talking about.

It is roughly 9000 lines of C#, but that's a bit misleading as it includes comments and blank lines. I'd say about a third of the total is "world building" (locations, items, behaviours, timers, etc) and the rest is parser/engine and GUI.

Yes, I do have too much time on my hands. S'pose I should make a web-enabled version of it, just so I learn how to do that with Microsoft rubbish as well...

Attach file:



jpg  Screen Shot 2014-06-05 at 9.46.15 pm.jpg (779.76 KB)
228_53903dd469fe4.jpg 2496X1672 px

jpg  Screen Shot 2014-06-05 at 9.47.41 pm.jpg (216.32 KB)
228_53903df82625c.jpg 1488X1206 px

Posted on: 6/5 2:51:06

Edited by Stu on 2014/6/5 3:05:57


Re: I just wrote "The Hobbit" in C#
Thain
Joined:
2006/5/26 20:36
From California, USA
Group:
Thain
Shirefolk
Fellowship
Posts: 1198
Offline
Sweet! Plus the artwork looks classier than the stuff I draw when forced to.

Posted on: 6/5 8:26:22
_________________
- Jeremy


Re: I just wrote "The Hobbit" in C#
Home away from home
Joined:
2008/8/10 2:07
From Queenstown, New Zealand
Group:
Shirefolk
Fellowship
Posts: 543
Offline

Urulöké wrote:
Sweet! Plus the artwork looks classier than the stuff I draw when forced to.


Ahh, I can't take credit for the lovely 8-bit graphics - I have just used the original 1982 ZX Spectrum stuff (albeit pre-rendered) and the font is a simple truetype representation of the 8x8 standard Spectrum font.

The only concession I am making on the graphics is that I am removing the attribute clash (the spectrum could only support two distinct colours in any 8 by 8 grid of pixels, so you would get the effects you can see on the screenshots I posted up, where some of the pixels are not the ideal colours). I've only removed it on about half of the images thus far as it is tedious "do whilst watching TV" work.

My plan is to make it a bit of a "digital historical artifact" and embed a lot of extra information about the history of the original game (and also how it relates to the book, that can be "popped up"). I may also allow the player to look at alternate graphics from other versions, such as the C64 (tape) and C64 (disk) versions.

It was fairly revolutionary in its time due to the (relatively) advanced parser and the fact that the NPCs in the game all do their own thing whilst you are doing yours (which does sometimes mean that key characters necessary to finish the game will kill each other or get locked up in dungeons!).

At the end of the day, I read "The Hobbit" because the paperback book came supplied with the game - for me, this is what started my Tolkien collecting 34 years ago...

(I also wrote the '82 classic "Jetpac" last year in HTML5/JavaScript with a mixture of modern and original graphics, so this may just be the start of trying to regain my lost youth)

Posted on: 6/5 12:54:35


Re: I just wrote "The Hobbit" in C#
Home away from home
Joined:
2008/8/10 2:07
From Queenstown, New Zealand
Group:
Shirefolk
Fellowship
Posts: 543
Offline
I know this is a bit off-topic for this forum, but the 1982 game - with all its strangeness - is the definitive "Hobbit" in my book, so y'all might have to indulge me another post or two.

Uruloke commented on the high quality () ZX Spectrum graphics, so I felt compelled to create a single new graphic for my version. There is a famous location in the original game called simply "Empty Place" which tells you "The empty place is too full to enter" if you try and enter it. It was seemingly a test location that the original programmers (Veronika Megler and Philip Mitchell) forgot to take out before the game was released.

I had originally left the "Empty Place" in my version identical to the original as an inaccessible location which would spit out an error message, but I decided to allow access to it and use it as a place to put something entirely non-authentic (the only thing that isn't true to the proper game). I just knocked up a picture of my house with "olde-wurlde" graphics to match the original. In the background are the misty mountains (actually the Remarkables mountain range that PJ used as the misty mountains in the LoTR movies).

I'd forgotten how much fun there is in creating completely pointless stuff for no other reason than you can.

Attach file:



jpg  emptyplace.jpg (207.69 KB)
228_5392a1f19ae73.jpg 1492X1198 px

jpg  house.jpg (154.36 KB)
228_5392a27268e3c.jpg 1028X564 px

Posted on: 6/6 22:27:26


Re: I just wrote "The Hobbit" in C#
Thain
Joined:
2006/5/26 20:36
From California, USA
Group:
Thain
Shirefolk
Fellowship
Posts: 1198
Offline
Cool! Sounds like that NPC algorithm was (a) advanced and (b) broken.

Posted on: 6/9 10:53:12
_________________
- Jeremy



(1) 2 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You can vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]