Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Nodapro Casino Video Poker Version 1.0 for Windows XP

Author
Message
nodapro
16
Years of Service
User Offline
Joined: 14th Mar 2008
Location:
Posted: 14th Mar 2008 16:14
Hi,

This is my first game. I know the capabilities of Dark GDK have not been fully exploited here, but this game engine made my programming life a lot easier. Thank you, TGC guys and some helpful posts by the forum members!

If anyone is interested in video poker game (Deuces Wild Only), please take a look.

http://files.filefront.com/Casino+Video+Poker+10/;9809445;/fileinfo.html

Wei Zhang
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 14th Mar 2008 21:30
Looks Great - Next Version you going to do mouse control also?

nodapro
16
Years of Service
User Offline
Joined: 14th Mar 2008
Location:
Posted: 14th Mar 2008 22:00
Hi jason,

Thanks for your comment.

I used function dbSuspendForKey ( ) in my code but need to figure out how to get the mouse click message.

It seems Dark GDK has another function dbSuspendForMouse ( ), but I want the program to respond either key pressed or mouse clicked.

Still digging in the gold nugget...
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 15th Mar 2008 00:09
First...Your Welcome! Now I'm gonna have some fun with ya!

You wrote that perfect Card Game and Suspend for key Fouled ya? BRO! You need to RIP OPEN your source code again! It's pretty easy to do that!

Make your Own Suspend routine, that checks for mouse clicks and the keys you want via dbKeyState() function and some if statements. ALSO... if you need the SCANCODES for the keys, I have em and many others have posted them also!

For the Mouse, in that same chunk of code, ignore MOUSE X,Y ... keep polling for mouse button like a key... if they click, THEN CHECK if the X,Y of the MOUSE lands the mouse on a button you want the use to have access to (e.g. not disabled ...and grayed out or whatever!)

That's All I'm pretty sure. YOU CAN DO IT! You did a great job so far! If you run into a snag like that again - POST MAN! Alot of us would LOVE to help, hint, nudge ya for something like that especially because you're a DOER... not a "How do I Make a Game" type forum rodent!

Keep up the GREAT WORK!

Fusspawn
16
Years of Service
User Offline
Joined: 19th Feb 2008
Location:
Posted: 15th Mar 2008 01:40
that's not half bad.. well done shame i suck at cards >.>

Stuck in the land of the confused! and loving it!
nodapro
16
Years of Service
User Offline
Joined: 14th Mar 2008
Location:
Posted: 15th Mar 2008 17:21
hi jason,

Thanks again for the advice. In all my loops I have something like

while ( 1 )
{
dbSuspendForKey ( );
if ( dbKeyState ( DIK_RETURN ) ) break;
if ( dbKeyState ( DIK_F7 ) ) SaveScreen ( );
dbSleep ( 10 );
}

I know the only problem for me now is to get something similar to
dbSuspendForKeyAndMouse ( );
Really wish Dark GDK had already got one.

I am learning more about DirectX (new in this area) and will have more control on anything later.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 15th Mar 2008 17:44 Edited at: 15th Mar 2008 17:46
Nodapro is a new jack - so his messages are delayed. I got the email though - its a "Trust worthy Message" so if you don't mind I'm going to reply - even though you guys MIGHT NOT see his post yet.

try:


Wasn't Sure WHY you had Sleep, if to make other processes run while waiting for the key....


[edit] Forgot the WHILE Clause, so I tossed it in [/edit]

nodapro
16
Years of Service
User Offline
Joined: 14th Mar 2008
Location:
Posted: 15th Mar 2008 23:25
hi jason,

I use dbSleep to avoid reading in repeated keys. For example, if Key 1 is pressed, I will update the HOLD status of Card 1. I have to wait a while to prevent the status changing back again even if I press 1 only once (I guess the repeated keys are cleared by Dark GDK or Windows). Maybe there are better ways to do this. But it worked for me. I will try other methods when I get more familiar with GDK and DirectX.
nodapro
16
Years of Service
User Offline
Joined: 14th Mar 2008
Location:
Posted: 1st Apr 2008 21:28
Learn, learn, and learn ...

Got a free website for myself:

http://nodapro.googlepages.com
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 1st Apr 2008 23:01
Nice - simple - no bull - here's a download to try

nodapro
16
Years of Service
User Offline
Joined: 14th Mar 2008
Location:
Posted: 2nd Apr 2008 01:09
Thanks, jason. I wish I had energy and skills to do some cool stuff like yours. But I have to work to make a living first.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 2nd Apr 2008 02:38 Edited at: 2nd Apr 2008 02:40
Quote: "Thanks, jason. I wish I had energy and skills to do some cool stuff like yours. But I have to work to make a living first. "


I was referring to your web site silly Its Simple, No bull, limitware freeware - I was complimenting your work

[edit]Not suggesting my site - and when I said "Here's a download to try" I was meaning the "General Messge" I got from your website. It's pleasant.

On a side note - thanx for the kind words
[/edit]

nodapro
16
Years of Service
User Offline
Joined: 14th Mar 2008
Location:
Posted: 2nd Apr 2008 16:37
Quote: "
I was referring to your web site silly. Its Simple, No bull, limitware freeware - I was complimenting your work.
"


Understood that correctly.

But after looking at yours and others I know there is more to learn.

Login to post a reply

Server time is: 2024-11-20 07:39:41
Your offset time is: 2024-11-20 07:39:41