In the making: Arukanoido – an Arkanoid clone

Discussion, Reviews & High-scores

Moderator: Moderators

User avatar
tokra
Vic 20 Scientist
Posts: 1120
Joined: Tue Apr 27, 2010 5:32 pm
Location: Scheessel, Germany

Re: In the making: Arukanoido – an Arkanoid clone

Post 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.
User avatar
tokra
Vic 20 Scientist
Posts: 1120
Joined: Tue Apr 27, 2010 5:32 pm
Location: Scheessel, Germany

Re: In the making: Arukanoido – an Arkanoid clone

Post 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.
User avatar
pixel
Vic 20 Scientist
Posts: 1330
Joined: Fri Feb 28, 2014 3:56 am
Website: http://hugbox.org/
Location: Berlin, Germany
Occupation: Pan–galactic shaman

Re: In the making: Arukanoido – an Arkanoid clone

Post 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!
A man without talent or ambition is most easily pleased. Others set his path and he is content.
https://github.com/SvenMichaelKlose
User avatar
tokra
Vic 20 Scientist
Posts: 1120
Joined: Tue Apr 27, 2010 5:32 pm
Location: Scheessel, Germany

Re: In the making: Arukanoido – an Arkanoid clone

Post 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
User avatar
pixel
Vic 20 Scientist
Posts: 1330
Joined: Fri Feb 28, 2014 3:56 am
Website: http://hugbox.org/
Location: Berlin, Germany
Occupation: Pan–galactic shaman

Re: In the making: Arukanoido – an Arkanoid clone

Post by pixel »

Fixed! Thanks again!
A man without talent or ambition is most easily pleased. Others set his path and he is content.
https://github.com/SvenMichaelKlose
User avatar
pixel
Vic 20 Scientist
Posts: 1330
Joined: Fri Feb 28, 2014 3:56 am
Website: http://hugbox.org/
Location: Berlin, Germany
Occupation: Pan–galactic shaman

Re: In the making: Arukanoido – an Arkanoid clone

Post 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.
A man without talent or ambition is most easily pleased. Others set his path and he is content.
https://github.com/SvenMichaelKlose
User avatar
tokra
Vic 20 Scientist
Posts: 1120
Joined: Tue Apr 27, 2010 5:32 pm
Location: Scheessel, Germany

Re: In the making: Arukanoido – an Arkanoid clone

Post 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.
User avatar
pixel
Vic 20 Scientist
Posts: 1330
Joined: Fri Feb 28, 2014 3:56 am
Website: http://hugbox.org/
Location: Berlin, Germany
Occupation: Pan–galactic shaman

Re: In the making: Arukanoido – an Arkanoid clone

Post by pixel »

So we got it sorted now? %p
A man without talent or ambition is most easily pleased. Others set his path and he is content.
https://github.com/SvenMichaelKlose
User avatar
beamrider
Vic 20 Scientist
Posts: 1447
Joined: Sun Oct 17, 2010 2:28 pm
Location: UK

Re: In the making: Arukanoido – an Arkanoid clone

Post by beamrider »

looking sweet....
User avatar
tokra
Vic 20 Scientist
Posts: 1120
Joined: Tue Apr 27, 2010 5:32 pm
Location: Scheessel, Germany

Re: In the making: Arukanoido – an Arkanoid clone

Post 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.
User avatar
pixel
Vic 20 Scientist
Posts: 1330
Joined: Fri Feb 28, 2014 3:56 am
Website: http://hugbox.org/
Location: Berlin, Germany
Occupation: Pan–galactic shaman

Re: In the making: Arukanoido – an Arkanoid clone

Post by pixel »

Will rip a potentiometer out of the next user panel that has one and tase the joyport.
A man without talent or ambition is most easily pleased. Others set his path and he is content.
https://github.com/SvenMichaelKlose
User avatar
pixel
Vic 20 Scientist
Posts: 1330
Joined: Fri Feb 28, 2014 3:56 am
Website: http://hugbox.org/
Location: Berlin, Germany
Occupation: Pan–galactic shaman

Re: In the making: Arukanoido – an Arkanoid clone

Post by pixel »

Now you get:

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

Paddles are a must to get along.
A man without talent or ambition is most easily pleased. Others set his path and he is content.
https://github.com/SvenMichaelKlose
User avatar
tokra
Vic 20 Scientist
Posts: 1120
Joined: Tue Apr 27, 2010 5:32 pm
Location: Scheessel, Germany

Re: In the making: Arukanoido – an Arkanoid clone

Post 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?
User avatar
pixel
Vic 20 Scientist
Posts: 1330
Joined: Fri Feb 28, 2014 3:56 am
Website: http://hugbox.org/
Location: Berlin, Germany
Occupation: Pan–galactic shaman

Re: In the making: Arukanoido – an Arkanoid clone

Post 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.
A man without talent or ambition is most easily pleased. Others set his path and he is content.
https://github.com/SvenMichaelKlose
User avatar
tokra
Vic 20 Scientist
Posts: 1120
Joined: Tue Apr 27, 2010 5:32 pm
Location: Scheessel, Germany

Re: In the making: Arukanoido – an Arkanoid clone

Post 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.
Post Reply