In the making: Arukanoido – an Arkanoid clone
Moderator: Moderators
Re: In the making: Arukanoido – an Arkanoid clone
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
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.
- pixel
- Vic 20 Scientist
- Posts: 1399
- 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
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.
A man without talent or ambition is most easily pleased. Others set his path and he is content.
https://github.com/SvenMichaelKlose
https://github.com/SvenMichaelKlose
Re: In the making: Arukanoido – an Arkanoid clone
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
- pixel
- Vic 20 Scientist
- Posts: 1399
- 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
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
https://github.com/SvenMichaelKlose
- pixel
- Vic 20 Scientist
- Posts: 1399
- 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
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.
A man without talent or ambition is most easily pleased. Others set his path and he is content.
https://github.com/SvenMichaelKlose
https://github.com/SvenMichaelKlose
Re: In the making: Arukanoido – an Arkanoid clone
??? 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.
In fact using paddles always forgot fine.
- pixel
- Vic 20 Scientist
- Posts: 1399
- 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
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
https://github.com/SvenMichaelKlose
Re: In the making: Arukanoido – an Arkanoid clone
looking sweet....
Re: In the making: Arukanoido – an Arkanoid clone
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
- pixel
- Vic 20 Scientist
- Posts: 1399
- 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
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
https://github.com/SvenMichaelKlose
- pixel
- Vic 20 Scientist
- Posts: 1399
- 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
Now you get:
* nearly all sounds which beamrider provided
* working Vaus (bat)
* better game play
Paddles are a must to get along.
* 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
https://github.com/SvenMichaelKlose
Re: In the making: Arukanoido – an Arkanoid clone
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?
- 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?
- pixel
- Vic 20 Scientist
- Posts: 1399
- 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
Thanks!
The paddle issue has been fixed.
The paddle issue has been fixed.
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?
A man without talent or ambition is most easily pleased. Others set his path and he is content.
https://github.com/SvenMichaelKlose
https://github.com/SvenMichaelKlose
Re: In the making: Arukanoido – an Arkanoid clone
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.
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
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?