Snake from Your Computer

having trouble with an archived file or want to correct something? report it here!
Michael Brown
Posts: 1895
Joined: Sat Apr 03, 2010 12:54 pm
Location: Nottingham

Snake from Your Computer

Postby Michael Brown » Thu Nov 09, 2017 3:43 pm

Hi All,

I have a game called Snake aka Black Adder from Your Computer.
The only issue is that you do not die when you eat yourself although the instructions say you will!

Anyone able to check the code in this one.


Snake YC.zip
(3.02 KiB) Downloaded 12 times


I would love to include it on my Disc 118 next month if fixed in time.

regards,
Mick.

User avatar
lurkio
Posts: 1288
Joined: Tue Apr 09, 2013 11:30 pm
Location: Doomawangara
Contact:

Re: Snake from Your Computer

Postby lurkio » Thu Nov 09, 2017 4:26 pm

You don't die when you eat poisonous fruit (diamond shapes) either. Something to do with a bug in collision detection, I think. But I'm not sure exactly.

:?:

Michael Brown
Posts: 1895
Joined: Sat Apr 03, 2010 12:54 pm
Location: Nottingham

Re: Snake from Your Computer

Postby Michael Brown » Thu Nov 09, 2017 4:45 pm

I wonder if anyone has the Your Computer listings for this game we can check against in case the disc image is a faulty typo.

Mick.

User avatar
SimonSideburns
Posts: 257
Joined: Mon Aug 26, 2013 8:09 pm
Location: Purbrook, Hampshire
Contact:

Re: Snake from Your Computer

Postby SimonSideburns » Thu Nov 09, 2017 5:35 pm

After a small play, a few observations:

Your tail never gets erased.
When you die your length is always 3 (which is the value it starts off at).
You do not die when hitting your own tail
You die when you hit the screen border
A series of 5 squares arranged in a diamond shape are automatically cleared even after you move the snake through them
God-awful playing keys. Why weren't they ZX*? as per mostly every other Beeb game?

Definitely screwed up, but unless one fancies debugging the thing or checking against source code...

I've found another version online on Every Game Going that does cause you die when you hit your own tail, but still reports your length as 3.

I've attached the file here.

There are a few small bugs in this other version that are trivial to change:

After the assembly of the code it sits waiting for you to press any key. Erase line 3020 to remove that.
When you have died and the machine prompts you if you wish to play again, only 'Y' is checked for followed by the most unhelpful END command on the next line. You have to change that END to a GOTO 3050 and add a line 3065 to perform an END or STOP command if you have entered 'N'.

Other than that, isn't this a quick game (and wouldn't it be enjoyable if your snake length grew slowly in the proper manor).

I'll leave it up to anyone who knows 6502 better than I to check and compare the two versions.
Attachments
Your_Computer_04_05.zip
(16.68 KiB) Downloaded 11 times
I'm writing a game where you can change your character from a Wizard to a monkey to a cat.

Well, Imogen that!

User avatar
lurkio
Posts: 1288
Joined: Tue Apr 09, 2013 11:30 pm
Location: Doomawangara
Contact:

Re: Snake from Your Computer

Postby lurkio » Thu Nov 09, 2017 6:33 pm

SimonSideburns wrote:I'll leave it up to anyone who knows 6502 better than I to check and compare the two versions.

I don't know 6502 very well, but I did a quick textual comparison of the listings of the two programs using the Find Diffs option in a text editor, and it looks like the machine code is exactly the same in both versions of the program -- it's only the BASIC that's different (and most of the diffs are relatively insignificant (except possibly for the delay-length on line 3210)).

:?:


Return to “archive issues”

Who is online

Users browsing this forum: No registered users and 1 guest