I have just finished implementing the beating rule into to the program. Now when a player has the possibility to capture he is not allowed to make a normal move. I wanted to notify the player of it. I tried writing out text on the window, but it was erased right after the spot only where I could put it.
So I made a windows message box come up. I was reluctant to do it - I think it's a bit too disturbing - but it actually came out alright. Although now that I thought about it, I think there might be a way to make the writing stay for a few seconds if I make the program simply wait. I'll research functions that could help me to do that and I'll see which solution I like more.
UPDATE [16:12]
I managed to do what I wanted with a very simple Sleep() function. Unfortunately the text is quite small and somehow I didn't manage to change that, even though theoretically I should be able to. But never mind that - I placed it in the middle and make the colors visible making it quite noticeable and at the same time not too disturbing.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment