Re: In the making: Arukanoido – an Arkanoid clone
Posted: Sun Apr 30, 2017 5:30 am
It looks like it mistakenly recognizes the paddle and as such goes to the far left. Just tried in VICE 2.4 - same behaviour.
The Commodore Vic 20 Forum
http://sleepingelephant.com/ipw-web/bulletin/bb/
http://sleepingelephant.com/ipw-web/bulletin/bb/viewtopic.php?t=7584
Fixed. Thanks!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.
Code: Select all
lda $900e
and #$0f
ora #@(* light_cyan 16) ; Auxiliary color.
sta $900e
Odd. No effect on the lastest build of VICE. Just added some threshold to the paddle detection.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.
??? 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.pixel wrote:Odd. No effect on the lastest build of VICE. Just added some threshold to the paddle detection.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.
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.pixel wrote:So we got it sorted now? %p
And it's a heisenbug (not occurring here). Sound is beamrider's department.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.
It's the behaviour of the original, isn't it? That's why I took it out again.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?
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.pixel wrote:And it's a heisenbug (not occurring here). Sound is beamrider's department.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.
Code: Select all
; zero page usage
-zp = $FD
-zp2 = $FE
+zp = $AA
+zp2 = $B4
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.pixel wrote:It's the behaviour of the original, isn't it? That's why I took it out again.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?