what should i write next?

suggest games that you’ve always wanted to see on acorn platforms
English Invader
Posts: 64
Joined: Tue Aug 18, 2020 9:10 pm
Contact:

Re: what should i write next?

Post by English Invader » Thu Oct 08, 2020 5:55 pm

tricky wrote:
Thu Oct 08, 2020 1:09 pm
I would have thought that RETURN would be OK as it is mostly just held down to auto-fire.
I didn't realise it was auto-fire :oops: . That makes a big difference. I've just managed to get on the high score board for the first time.

I don't know how to give you answers to your question about the joystick adaptor. What do I have to do?

User avatar
tricky
Posts: 4681
Joined: Tue Jun 21, 2011 9:25 am
Contact:

Re: what should i write next?

Post by tricky » Thu Oct 08, 2020 8:00 pm

run this code and tell me what the smallest and largest number you get for each of the three columns are.

Code: Select all

REP.:P.ADVAL(0) AND 3, ADVAL(1), ADVAL(2):UN.0
And yes, not much auto fire in early 80s games. Astro Blaster also has auto fire.

EDIT: Changed first ANDVAL to ADVAL - sorry.
Last edited by tricky on Fri Oct 09, 2020 5:04 pm, edited 1 time in total.

English Invader
Posts: 64
Joined: Tue Aug 18, 2020 9:10 pm
Contact:

Re: what should i write next?

Post by English Invader » Fri Oct 09, 2020 2:57 pm

tricky wrote:
Thu Oct 08, 2020 8:00 pm
run this code and tell me what the smallest and largest number you get for each of the three columns are.

Code: Select all

REP.:P.ANDVAL(0) AND 3, ADVAL(1), ADVAL(2):UN.0
And yes, not much auto fire in early 80s games. Astro Blaster also has auto fire.
I've tried typing the code in various different ways in terms of spacing (even copying and pasting into BeebEm) and it just comes up with Mistake or No Such Variable errors.

User avatar
BigEd
Posts: 3450
Joined: Sun Jan 24, 2010 10:24 am
Location: West
Contact:

Re: what should i write next?

Post by BigEd » Fri Oct 09, 2020 3:13 pm

(That ANDVAL should be an ADVAL too.)

User avatar
tricky
Posts: 4681
Joined: Tue Jun 21, 2011 9:25 am
Contact:

Re: what should i write next?

Post by tricky » Fri Oct 09, 2020 5:03 pm

Doh! and the first value should only change when you press/release the fire button.
I'll update the other post with ADVAL.

PS I told you BASIC was to aNdvanced for me :lol:

English Invader
Posts: 64
Joined: Tue Aug 18, 2020 9:10 pm
Contact:

Re: what should i write next?

Post by English Invader » Fri Oct 09, 2020 11:18 pm

The first column remains at 0 but changes to 1 if I press fire on the joystick.
The second and third columns read 327/8 for the first 3 digits and the last two columns move and flicker very fast.

The second column records the horizontal axis of the joystick and reads 65 when moved left and 7-something when moved right.
The third column records the vertical axis and reads 65 when moved up and 9-something when moved down.

I hope that gives you the information you need. Please ask if you need more.

User avatar
tricky
Posts: 4681
Joined: Tue Jun 21, 2011 9:25 am
Contact:

Re: what should i write next?

Post by tricky » Sat Oct 10, 2020 11:34 am

English Invader wrote:
Fri Oct 09, 2020 11:18 pm
The first column remains at 0 but changes to 1 if I press fire on the joystick.
That is correct, 0 no buttons pressed, 1 fire 1, 2 fire 2, 3 both fire buttons pressed.
English Invader wrote:
Fri Oct 09, 2020 11:18 pm
The second and third columns read 327/8 for the first 3 digits and the last two columns move and flicker very fast.
Well, the "centred" value should be 32xxx (idealy 32767/8 but never that accurate) but 800-899 is way off as it should also be 32xxx.
English Invader wrote:
Fri Oct 09, 2020 11:18 pm
The second column records the horizontal axis of the joystick and reads 65 when moved left and 7-something when moved right.
If the 7- is 79 or less, again very good is full range if possible would be 65,535..0.
English Invader wrote:
Fri Oct 09, 2020 11:18 pm
The third column records the vertical axis and reads 65 when moved up and 9-something when moved down.
Again, if that is 65,xxx and 9x they are great values but if the 9 is 9xxx that isn't very good at all but should still work with my code.
English Invader wrote:
Fri Oct 09, 2020 11:18 pm
I hope that gives you the information you need. Please ask if you need more.
It tells me that your joystick+adaptor may have a dodgy transistor for down or much less less likely your ADC chip may be failing.
Nearly all my games use 16768..49151 for "centred" and outside that for "moving".
I think Centipede uses 0-8191, 8192-16383, 16384-24575, 24576-40959 "centred", 40960-19151, 19152-57343, 57344-65535 to allow for 3, 2, 1 or no pixels per frame movement +/- in H/V.

When you say that it doesn't work in centipede, does left/right work properly, but not up/down?

One last check is that you are using a switchable OS that it's set to match the machine (my code uses the OS version to know how to talk to the ADC hardware).

PS I don't know what the expected ranges for other digital joystick adaptors are, but my adaptors (just tested a couple) give 655xx-654xx/327xx-326xx/64-0, or as hex (~ADVAL()) &FFxx/&7fxx or &80xx/&00xx which is about as good as it gets ;)) at least on my test Model B.

User avatar
tricky
Posts: 4681
Joined: Tue Jun 21, 2011 9:25 am
Contact:

Re: what should i write next?

Post by tricky » Sat Oct 24, 2020 2:16 pm

Pacman now has its own thread with a demo viewtopic.php?f=53&t=20865
screnshot.png
screnshot.png (6.09 KiB) Viewed 26 times

I have also done some more ports from arcade ROMs

Asteroids

URL:https://youtu.be/1zH4hdREcTE View at 720p+ for 50hz.

Super Breakout

URL:https://youtu.be/XC3QX4lL-Z4 View at 720p+ for 50hz.

Canyon Bomber

URL:https://youtu.be/Yy5RW7aDK98 View at 720p+ for 50hz.

Post Reply

Return to “new ideas wishlist & general chat”