Alice Community  

Go Back   Alice Community > Alice 2 > Share Objects

Reply
 
Thread Tools Display Modes
Deck of Playing Cards (i.e. Poker)
Old
kroberts100
Guest
 
Status:
Posts: n/a
Thumbs down Deck of Playing Cards (i.e. Poker) - 07-31-2009, 08:55 AM

I would like to try to create interactive card games using alice. I can figure out how to create the games if I can figure out how to create playing cards.

Has anyone made a deck of cards (standard 52 poker-style playing cards)? If not, would anyone have a suggestion for how to create a deck?

Thoughts/comments:

Would one create 52 Individual cards?
Would it be better to try to create one card and have configurable properties (value, suit, color)?
Would it be possible to create an 'image' for each type of card and overlay that image onto a card object when displaying the cards?

Any thoughts, comments, insights would be greatly appreciated...
   
Reply With Quote
Old
Veryuhbull
Guest
 
Status:
Posts: n/a
Default 07-31-2009, 10:29 AM

What you could do is find and save pictures of all the cards. (outside of Alice) and bring them in as billboards. (or if you can add the cards to objects in a diferent program and bring in 3d objects) But billboards are tempermental sometimes and don't always function like other Alice objects.
   
Reply With Quote
Old
Niteshifter
Guest
 
Status:
Posts: n/a
Default 07-31-2009, 08:48 PM

I can tell you first hand that making a card game by clicking on the card is not going to work because you will get an error when trying to get information off of clicking an object.

I'm not entirely sure as to what you could do to fix this problem, but I'd thought I'd let you know so you can save some time instead of working a lot until you find out you are unable to do this .
   
Reply With Quote
wait a minute.
Old
Veryuhbull
Guest
 
Status:
Posts: n/a
Default wait a minute. - 07-31-2009, 08:59 PM

This may be a strech but could you not (two options.)
A.
1. bring in the card billboards
2. set the textures to resized squares
3. Use them

B. Have 52 object used to store inforamtion. And the options could be key pressed based on what you see, when really other objects (maybe vehicled to the billboards.) are controlling the game.
   
Reply With Quote
Old
Niteshifter
Guest
 
Status:
Posts: n/a
Default 08-02-2009, 12:40 AM

I'm almost certain that A is possible and B sounds possible to me as well.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 08-04-2009, 11:57 PM

It also depends on how the card game will be played. Some games do not feature the backs of the cards at any point in the game, in which case you could import all of the fronts of the cards as billboards, then resize them as the first action in your world (one-dimensional resizing can only be done as a script, it cannot be done outside playback).

I don't know if making them texture maps is such a good idea, since texture maps often get finicky if the object isn't just the right size. Chris101b might know how to do that, though. He was always good with textures.


(')>
   
Reply With Quote
Old
b00kworm
Guest
 
Status:
Posts: n/a
Default 08-07-2009, 09:15 PM

In any card game, there will only be a limited number off cards seen at any given time. For exanple, in texas hold'em, the most cards ever seen is seven, five on the table and two in the player's hand. All you would need to do is import all of the textures and then assign them to the seven squares as necessary.

If you want to show cards being discarded for the flop, all you would need was two cards with the texture of the backs, one to stay on the table and another to move to it.
   
Reply With Quote
Old
danny2040
Guest
 
Status:
Posts: n/a
Default 11-16-2009, 10:13 PM

I have succsessfully imported 52 cards as bilboards. One at a time The last programfor my class is to make a card game.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 11-17-2009, 04:15 AM

Impressive. Must've taken patience. If you feel comfortable posting it, I'd actually like to see how it turns out.


(')>
   
Reply With Quote
Old
alexqpp
Guest
 
Status:
Posts: n/a
Default 09-27-2011, 09:31 PM

You can make your custom deck of cards at http://www.printerstudio.com/unique-...ing-cards.html

Quote:
Originally Posted by kroberts100 View Post
I would like to try to create interactive card games using alice. I can figure out how to create the games if I can figure out how to create playing cards.

Has anyone made a deck of cards (standard 52 poker-style playing cards)? If not, would anyone have a suggestion for how to create a deck?

Thoughts/comments:

Would one create 52 Individual cards?
Would it be better to try to create one card and have configurable properties (value, suit, color)?
Would it be possible to create an 'image' for each type of card and overlay that image onto a card object when displaying the cards?

Any thoughts, comments, insights would be greatly appreciated...
   
Reply With Quote
Reply

Tags
cards, deck, games, poker

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.