realbasic-games
[Top] [All Lists]

Re: Card Game (clicking and sound),

To: realbasic-games at lists dot realsoftware dot com
Subject: Re: Card Game (clicking and sound),
From: "erockus at juno dot com" <erockus at juno dot com>
Date: Sat, 11 Dec 2004 02:10:21 GMT
Delivered-to: realbasic-games at lists dot realsoftware dot com
>There have been a number of card games in RB -- some of them for a >MacTech 
>contest a while back. I'm not sure if any have source code >available, though 
>(anyone?).
>
>
>I have a canvas in my main window which is assigned a number and size, >color.
>How do I assign it a SOUND? and How can I have it change color on >MOUSE DOWN?
>
>
>There are answers to these questions, but I think the questions >themselves 
>are based on a false premise. It sounds like you have a >separate canvas for 
>each card. That's not a good approach; instead, >you should have one giant 
>canvas covering the whole window (or close >to it), which draws all your cards.

You know my first game I made in Rb was Juno The Game, which is my
version of Uno. Anyway I didn't have have much *experince with Rb and didn't 
have a good idea of how to do it. So for my cards I used a massive array of 
BevelButtons. It worked more or less but looking back on it now, that wasn't a 
goodway to do it.  Of course I know a lot more now.

Anyway using the DragPics example is a much better way of doing something like 
this.
I may have to redo Juno The Game same day....

Just wanted to through my thoughts in.

* Just a side note I guess the first program that I had "anything to do with" 
was when Macaddict had this New Year count Rb contest thing a few years 
ago.They basicly want you to jazz it up and the winners got there version put 
on cd. Which mine was.

________________________________________________________________
Juno Gift Certificates
Give the gift of Internet access this holiday season.
http://www.juno.com/give

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>