Jump to content
Sign in to follow this  

card game problem

Recommended Posts

hello. i am trying to make a card game

i stole the codes from a previous post by larry i think. thank you

#include <GUIconstants.au3>

$height = 0

$cardhandle = DLLOpen("cards.dll")

$winhandle = GUICreate("What do you prefer?",1100,700)

$hdc = DllCall("user32.dll","int","GetDC","hwnd",$winhandle)
$hdc = $hdc[0]


For $i = 0 To 12
    $cardcode = Random(0,51,1)
    DLLCall($cardhandle,"int","cdtDraw","int",$hdc,"int", $carddistance*$i,"int", $height,"int", $cardcode,"int",0,"int", 0)


While 1
    $msg = Guigetmsg()
        Case $msg = $GUI_EVENT_CLOSE


a few questions:

1. what does getdc do?

2.i want to make this an online card game so that i can play with my few friends.

its like i host the game then i give them my ip so they can connect to me.

how do i do that?

i know this probably will be hard and my coding skill is crappy, but can u just give me some help? thx!! :)

Share this post

Link to post
Share on other sites

1. i don't know.

2. You need to learn how to use au3xtra.dll search the forums.

[font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]

Share this post

Link to post
Share on other sites

thx. one more question.

after i generated the cards, if i switch to another window then switch back to the card game window. the cards are all gone. why is that?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...