Page 9 of 41

Re: In the making: Arukanoido – an Arkanoid clone

Posted: Sun Apr 30, 2017 5:30 am
by tokra
It looks like it mistakenly recognizes the paddle and as such goes to the far left. Just tried in VICE 2.4 - same behaviour.

Re: In the making: Arukanoido – an Arkanoid clone

Posted: Sun Apr 30, 2017 5:40 am
by tokra
I think I found the error: "is_using_paddle" is not initialized in the source-code. So whenever by chance this value is not zero on program start, the program will believe you are using paddles.

Re: In the making: Arukanoido – an Arkanoid clone

Posted: Sun Apr 30, 2017 6:03 am
by pixel
tokra wrote:I think I found the error: "is_using_paddle" is not initialized in the source-code. So whenever by chance this value is not zero on program start, the program will believe you are using paddles.
Fixed. :) Thanks!

Re: In the making: Arukanoido – an Arkanoid clone

Posted: Sun Apr 30, 2017 6:24 am
by tokra
Found another bug that sets the pipe-color (at the border of the screen) to pink instead of light cyan. Basically when the music-player still runs it will dec $900e after you set it to $b0 in your main.asm. You coud probably just set it like this:

Code: Select all

lda $900e
and #$0f
ora #@(* light_cyan 16) ; Auxiliary color.
sta $900e

Re: In the making: Arukanoido – an Arkanoid clone

Posted: Sun Apr 30, 2017 6:45 am
by pixel
Fixed! Thanks again!

Re: In the making: Arukanoido – an Arkanoid clone

Posted: Sun Apr 30, 2017 8:11 am
by pixel
tokra wrote:It looks like it mistakenly recognizes the paddle and as such goes to the far left. Just tried in VICE 2.4 - same behaviour.
Odd. No effect on the lastest build of VICE. Just added some threshold to the paddle detection.

Re: In the making: Arukanoido – an Arkanoid clone

Posted: Sun Apr 30, 2017 10:17 am
by tokra
pixel wrote:
tokra wrote:It looks like it mistakenly recognizes the paddle and as such goes to the far left. Just tried in VICE 2.4 - same behaviour.
Odd. No effect on the lastest build of VICE. Just added some threshold to the paddle detection.
??? What do you mean? The joystick already worked fine with the fix to "is_using_paddle" - the bit you just added for paddle-detection is not really needed. If a joystick is in the port the paddle-value will not change, and if you put a paddle in you would want it to register as soon as possible. As such the original "cmp old_paddle_value" was fine.

In fact using paddles always forgot fine.

Re: In the making: Arukanoido – an Arkanoid clone

Posted: Sun Apr 30, 2017 10:32 am
by pixel
So we got it sorted now? %p

Re: In the making: Arukanoido – an Arkanoid clone

Posted: Sun Apr 30, 2017 10:57 am
by beamrider
looking sweet....

Re: In the making: Arukanoido – an Arkanoid clone

Posted: Sun Apr 30, 2017 11:04 am
by tokra
pixel wrote:So we got it sorted now? %p
Yes! This "It looks like it mistakenly recognizes the paddle and as such goes to the far left. Just tried in VICE 2.4 - same behaviour." was only my observations on the joystick-issue. The paddle-control was always fine and needed no fixing.

Re: In the making: Arukanoido – an Arkanoid clone

Posted: Sun Apr 30, 2017 1:44 pm
by pixel
Will rip a potentiometer out of the next user panel that has one and tase the joyport.

Re: In the making: Arukanoido – an Arkanoid clone

Posted: Sat May 06, 2017 9:19 am
by pixel
Now you get:

* nearly all sounds which beamrider provided
* working Vaus (bat)
* better game play

Paddles are a must to get along.

Re: In the making: Arukanoido – an Arkanoid clone

Posted: Sat May 06, 2017 11:59 am
by tokra
Nice! Here's my usual bug report :-)

- I can't move to the right completely using paddles, only with joystick. There is about one multicolor-pixel missing. Tried on real machine and VICE

- I had a situation during play where the ball went below the bat at the bottom, but it did not register, so the game just hung there. I could still move the bat, but the game did not continue otherwise

- when using VICE (drag and drop arukanodio.prg into the VICE-window), the game starts and plays the music, but the actual sounds during gameplay are silent for the first 10 seconds or so. Probably another value that is not correctly reset in memory on game-start. I checked with the VICE-monitor and it seems volume is at 0 while it should be at 8.

- when you get the sticky-extra the ball will always reflect at the same angle regardless on where on the bat it is hit. Maybe this is due to the extras not being implemented fully yet?

Re: In the making: Arukanoido – an Arkanoid clone

Posted: Sat May 06, 2017 12:45 pm
by pixel
Thanks!

The paddle issue has been fixed. :)
tokra wrote: - when using VICE (drag and drop arukanodio.prg into the VICE-window), the game starts and plays the music, but the actual sounds during gameplay are silent for the first 10 seconds or so. Probably another value that is not correctly reset in memory on game-start. I checked with the VICE-monitor and it seems volume is at 0 while it should be at 8.
And it's a heisenbug (not occurring here). Sound is beamrider's department. ;)
tokra wrote:- when you get the sticky-extra the ball will always reflect at the same angle regardless on where on the bat it is hit. Maybe this is due to the extras not being implemented fully yet?
It's the behaviour of the original, isn't it? That's why I took it out again.

Re: In the making: Arukanoido – an Arkanoid clone

Posted: Sat May 06, 2017 1:45 pm
by tokra
pixel wrote:
tokra wrote: - when using VICE (drag and drop arukanodio.prg into the VICE-window), the game starts and plays the music, but the actual sounds during gameplay are silent for the first 10 seconds or so. Probably another value that is not correctly reset in memory on game-start. I checked with the VICE-monitor and it seems volume is at 0 while it should be at 8.
And it's a heisenbug (not occurring here). Sound is beamrider's department. ;)
Well, it worked fine before (just checked against last weeks binary), so it must have been something you changed in the meantime. Which VICE-version are you using? Try the newest from vice.pokefinder.org - then go to Settings-Virtual Device Trape = on and in Autostart-setting set "Prg Autostart mode" to "Virtual FS". Also in "Drive settings" set "True drive emulation" to off. Then just drag and drop the arukanoido.prg into VICE.

I've dug into the code a little and see you made this change in player.s:

Code: Select all

 ; zero page usage
-zp =  $FD
-zp2 = $FE
+zp =  $AA
+zp2 = $B4
However there is a still ONE line sta zp+1 in the code, which before would have set $FE and now sets $AB. Maybe this is the issue,
pixel wrote:
tokra wrote:- when you get the sticky-extra the ball will always reflect at the same angle regardless on where on the bat it is hit. Maybe this is due to the extras not being implemented fully yet?
It's the behaviour of the original, isn't it? That's why I took it out again.
Just checked against C64 Arkanoid. The ball just sticks, but the angle is the one the ball would usually take if it did not stick.