WIP: Reversi
Re: WIP: Reversi (was Othello)
Yes, I get a blue background. I suppose I'm using v0.49 from 2009 as uploaded to the website. All colour codes were also verified vs TMS9918 specification, so I would notice immediately if some colours were not as expected.
Re: WIP: Reversi (was Othello)
This is extremely odd. I'm using the exe coming from my website, V0.49, on my Win7 x64 PC, and... this is what I see.carlsson wrote:Yes, I get a blue background. I suppose I'm using v0.49 from 2009 as uploaded to the website. All colour codes were also verified vs TMS9918 specification, so I would notice immediately if some colours were not as expected.
You do not have the required permissions to view the files attached to this post.
Re: WIP: Reversi (was Othello)
And this happens with current version of CvEmu2 for Windows. Same PC with Win7 x64
You do not have the required permissions to view the files attached to this post.
Re: WIP: Reversi (was Othello)
Haha! On my computer at work, I'm getting a GREEN background while at home I get a BLUE background.
It is possible that I have misunderstood default foreground and background though, I shall have a look at it later tonight.
If you have a hex editor available, the value $41 at offset $1ff7 should be part of the initial VDP setup and correspond to a default blue background and black foreground. As far as I can tell, the foreground is rather irrelevant as the colour sets are defined later on. All the other colours are right though, just not the background as I set it.
It is possible that I have misunderstood default foreground and background though, I shall have a look at it later tonight.
If you have a hex editor available, the value $41 at offset $1ff7 should be part of the initial VDP setup and correspond to a default blue background and black foreground. As far as I can tell, the foreground is rather irrelevant as the colour sets are defined later on. All the other colours are right though, just not the background as I set it.
Re: WIP: Reversi (was Othello)
After some studying, it turned out that I had swapped around the background and foreground settings in the VDP setup. After fixing that, CvEmu2 displays the right colours.
However FunnyMu or perhaps the SDL library gets confused whenever one uses colour sets with transparent background. The resulting background colour is not the one set on startup, but rather some mixed colour that isn't part of the VDP palette. I tried to figure out if the final background is relative to either the foreground or background in the VDP settings, but I didn't get a conclusive answer.
The practical result of course is to avoid using transparent background colours. However it would make it a bit more complex to change overall background colour on the fly, which otherwise I imagine could be done by changing the VDP setup values just like one might be able to shift pattern name tables (different screens stored in VDP memory), perhaps pattern generator tables etc. One day I'll make a such test program as well to see if CvEmu2 handles those changes, and to what extent FunnyMu does too.
For now, I'll simply set the background colours in each colour set, and the problems won't occur anymore.
However FunnyMu or perhaps the SDL library gets confused whenever one uses colour sets with transparent background. The resulting background colour is not the one set on startup, but rather some mixed colour that isn't part of the VDP palette. I tried to figure out if the final background is relative to either the foreground or background in the VDP settings, but I didn't get a conclusive answer.
The practical result of course is to avoid using transparent background colours. However it would make it a bit more complex to change overall background colour on the fly, which otherwise I imagine could be done by changing the VDP setup values just like one might be able to shift pattern name tables (different screens stored in VDP memory), perhaps pattern generator tables etc. One day I'll make a such test program as well to see if CvEmu2 handles those changes, and to what extent FunnyMu does too.
For now, I'll simply set the background colours in each colour set, and the problems won't occur anymore.
Re: WIP: Reversi (was Othello)
> After some studying, it turned out that I had swapped around the
> background and foreground settings in the VDP setup. After fixing
> that, CvEmu2 displays the right colours.
> However FunnyMu or perhaps the SDL library gets confused whenever
> one uses colour sets with transparent background.
That's because the FunnyMu hasn't a perfect VDP emulation. It's a known issue since the original FunnyMu was released in 2002, and I wasn't able to fix it, even though I improved it a bit. It's in my "to do" list.
> background and foreground settings in the VDP setup. After fixing
> that, CvEmu2 displays the right colours.
> However FunnyMu or perhaps the SDL library gets confused whenever
> one uses colour sets with transparent background.
That's because the FunnyMu hasn't a perfect VDP emulation. It's a known issue since the original FunnyMu was released in 2002, and I wasn't able to fix it, even though I improved it a bit. It's in my "to do" list.
Re: WIP: Reversi (was Othello)
Hey Anders... any good news on the game development? Any new beta version to test?
Re: WIP: Reversi (was Othello)
No improvements lately. I'm working on understanding controllers (mostly done) and sound first, and will then return to the finishing touches of the game.
Re: WIP: Reversi (was Othello)
Hi man, any progresses?
I'm really waiting to see the final source code, wanna learn some 6502 programming bits from it
I'm really waiting to see the final source code, wanna learn some 6502 programming bits from it
Re: WIP: Reversi (was Othello)
Soon now. I was lazy in the weekend, but will try to wrap it up in a week or two.