the hobbit 16k

People are still making stuff for the Sinclair related machines. Tell us about new games and other software that runs on the Spectrum, ZX80/ZX81, Pentagon and Next.
Post Reply
MrPixel
Microbot
Posts: 170
Joined: Sat Mar 24, 2018 7:42 pm

the hobbit 16k

Post by MrPixel »

before you flame me, just to be clear, I cannot replicate the sheer awesomeness of the original. this is a drastically cut down version tailored to fit on the 16k spectrum. hopefully, the screenshot alone gives enough info. in order to conserve space, i removed quite a few locations and jettisoned the idea of a parser altogether, viewing it as unnecessary. this is as close as I could get. I'd try a zx81 version, but EightyOne has problems with the display.

https://ibb.co/jumsbx
Nomad
Manic Miner
Posts: 600
Joined: Thu Dec 28, 2017 12:38 pm

Re: the hobbit 16k

Post by Nomad »

Good luck fella, adventure games are a great way to learn. draw out your map first, that makes creating the array for the locations so much easier.

Lot of great articles and books that go through the whole process.

Invent and Write Games Programs for the Spectrum - Noel Williams. That is my fav book about writing games for the spectrum in Basic (at the moment anyway..)

It's got an general title but its mostly about writing adventure games. It covers everything you need in depth, lots of diagrams and is well written.

The INPUT magazine series that you can find on archive.org is nice high level introduction to 80s microcomputers. In the UK this was a popular series many families bought this so 'the kids can learn computers'. Why this is useful is you have a program that is shown on 4-5 systems. For stuff like general concepts its nice to see how they were implemented on different systems. Sometimes it helps a concept sink in if you can see it done in 4-5 different types of basic.

INFOCOM has a big section on archive.org you can look at the programmers notes, lots of company stuff that is useful in creating adventure games.
Last edited by Nomad on Tue Apr 24, 2018 1:53 am, edited 1 time in total.
Bizzley
Microbot
Posts: 124
Joined: Thu Nov 16, 2017 10:47 am

Re: the hobbit 16k

Post by Bizzley »

If you want to try and squeeze The Hobbit into 16K then it's your time and Good Luck.

Why don't you look into coding a text-compression routine first though?
They're pretty easy to write and you'll end up with a lot more memory to play with.
"He made eloquent speeches to an audience consisting of a few depressed daffodil roots, and sometimes the cat from next door."
User avatar
Einar Saukas
Bugaboo
Posts: 3070
Joined: Wed Nov 15, 2017 2:48 pm

Re: the hobbit 16k

Post by Einar Saukas »

MrPixel wrote: Tue Apr 24, 2018 1:17 am before you flame me, just to be clear, I cannot replicate the sheer awesomeness of the original. this is a drastically cut down version tailored to fit on the 16k spectrum. hopefully, the screenshot alone gives enough info. in order to conserve space, i removed quite a few locations and jettisoned the idea of a parser altogether, viewing it as unnecessary. this is as close as I could get. I'd try a zx81 version, but EightyOne has problems with the display.
A very simplistic BASIC-only version of The Hobbit is actually a cool idea!

I suggest you get as far as you can, then submit the result to CSSCGC :)
User avatar
Kweepa
Manic Miner
Posts: 311
Joined: Sat Feb 03, 2018 6:14 pm
Location: Albuquerque, New Mexico

Re: the hobbit 16k

Post by Kweepa »

As it is it's more sophisticated than half the csscgc entries, so just submit it!
Shaun is waiting for text adventures!
MrPixel
Microbot
Posts: 170
Joined: Sat Mar 24, 2018 7:42 pm

Re: the hobbit 16k

Post by MrPixel »

i put it in new software 2018, took a bit of time to upload, thank god for fuse
User avatar
djnzx48
Manic Miner
Posts: 729
Joined: Wed Dec 06, 2017 2:13 am
Location: New Zealand

Re: the hobbit 16k

Post by djnzx48 »

You could try giving this book a read. It's written for the 48K Spectrum, but with some trimming you could probably get something that fits on the 16K. The location descriptions would likely take up the most memory, so halving the lengths of those would help. Additionally, while the book READs the strings into a giant array, this wastes memory as it duplicates them in both the program and the variables area. Instead, you could use a RESTORE nnnn statement each time you need a string from memory, and then READ only a single string at a time.
Nomad
Manic Miner
Posts: 600
Joined: Thu Dec 28, 2017 12:38 pm

Re: the hobbit 16k

Post by Nomad »

Kweepa wrote: Tue Apr 24, 2018 4:47 am As it is it's more sophisticated than half the csscgc entries, so just submit it!
Shaun is waiting for text adventures!
Agreed - just hand that bad boy in. Should also add - you don't want to write a game so good it wins CSSCGC :lol:
MrPixel
Microbot
Posts: 170
Joined: Sat Mar 24, 2018 7:42 pm

Re: the hobbit 16k

Post by MrPixel »

Nomad wrote: Tue Apr 24, 2018 5:30 am
Kweepa wrote: Tue Apr 24, 2018 4:47 am As it is it's more sophisticated than half the csscgc entries, so just submit it!
Shaun is waiting for text adventures!
Agreed - just hand that bad boy in. Should also add - you don't want to write a game so good it wins CSSCGC :lol:
will the other members be able to run the game in snapshot form?
MrPixel
Microbot
Posts: 170
Joined: Sat Mar 24, 2018 7:42 pm

Re: the hobbit 16k

Post by MrPixel »

djnzx48 wrote: Tue Apr 24, 2018 4:53 am You could try giving this book a read. It's written for the 48K Spectrum, but with some trimming you could probably get something that fits on the 16K. The location descriptions would likely take up the most memory, so halving the lengths of those would help. Additionally, while the book READs the strings into a giant array, this wastes memory as it duplicates them in both the program and the variables area. Instead, you could use a RESTORE nnnn statement each time you need a string from memory, and then READ only a single string at a time.
is there a download link for the book in pdf form
User avatar
Ast A. Moore
Rick Dangerous
Posts: 2640
Joined: Mon Nov 13, 2017 3:16 pm

Re: the hobbit 16k

Post by Ast A. Moore »

MrPixel wrote: Tue Apr 24, 2018 4:07 pm will the other members be able to run the game in snapshot form?
It’s your call, but I strongly recommend to not distribute games as snapshots. Snapshots contain machine model and other configuration information, including attached peripherals, which will disrupt a user’s settings. Just create a regular TAP or TZX file.
Every man should plant a tree, build a house, and write a ZX Spectrum game.

Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.
MrPixel
Microbot
Posts: 170
Joined: Sat Mar 24, 2018 7:42 pm

Re: the hobbit 16k

Post by MrPixel »

Ast A. Moore wrote: Tue Apr 24, 2018 4:29 pm
MrPixel wrote: Tue Apr 24, 2018 4:07 pm will the other members be able to run the game in snapshot form?
It’s your call, but I strongly recommend to not distribute games as snapshots. Snapshots contain machine model and other configuration information, including attached peripherals, which will disrupt a user’s settings. Just create a regular TAP or TZX file.
but then how will i be able to distribute it?
Nomad
Manic Miner
Posts: 600
Joined: Thu Dec 28, 2017 12:38 pm

Re: the hobbit 16k

Post by Nomad »

MrPixel wrote: Tue Apr 24, 2018 4:07 pm will the other members be able to run the game in snapshot form?
Sure, I think most emulators support snapshot. Some people submit their entry in snapshot form, others tape, micro drive or disk its up to you.

I was always partial to using tap's for when I was asking questions about a project and I had a problem.

When I am doing work on projects I have the project and all the assets I put them either on the micro drive or a disk image.
Last edited by Nomad on Tue Apr 24, 2018 5:36 pm, edited 1 time in total.
User avatar
Ast A. Moore
Rick Dangerous
Posts: 2640
Joined: Mon Nov 13, 2017 3:16 pm

Re: the hobbit 16k

Post by Ast A. Moore »

MrPixel wrote: Tue Apr 24, 2018 4:31 pm
Ast A. Moore wrote: Tue Apr 24, 2018 4:29 pm It’s your call, but I strongly recommend to not distribute games as snapshots. Snapshots contain machine model and other configuration information, including attached peripherals, which will disrupt a user’s settings. Just create a regular TAP or TZX file.
but then how will i be able to distribute it?
A file is a file is a file. How were you planning to distribute a snapshot?
Every man should plant a tree, build a house, and write a ZX Spectrum game.

Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.
User avatar
R-Tape
Site Admin
Posts: 6353
Joined: Thu Nov 09, 2017 11:46 am

Re: the hobbit 16k

Post by R-Tape »

I might be wrong but I think Mr Pixel has inadvertently mistaken 'snapshot' for snapshot as in a 'picture'.

[mention]MrPixel[/mention] , I'll send you an email later this evening how to make a tape image (.TZX, .TAP), or emulator snapshot image (.SNA, .Z80) like the one you already sent for your Wolfman project we're working on (which I think we should prioritise :D ), and how to distribute it.
User avatar
Ast A. Moore
Rick Dangerous
Posts: 2640
Joined: Mon Nov 13, 2017 3:16 pm

Re: the hobbit 16k

Post by Ast A. Moore »

R-Tape wrote: Tue Apr 24, 2018 5:40 pm I might be wrong but I think Mr Pixel has inadvertently mistaken 'snapshot' for snapshot as in a 'picture'.
[media]https://www.youtube.com/watch?v=EVczf8Or8xo[/media]
Every man should plant a tree, build a house, and write a ZX Spectrum game.

Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.
Post Reply