cocco
Joined: 12 Feb 2005 Posts: 17
|
Posted: Fri Sep 16, 2005 12:12 am Post subject: need help to show images dynamicly from array |
|
|
i'm trying to make blackjack
and so i us
colors ={a,b,c,d} --for spade heart....
numders {2,3,4,5,6,7,8,9,10,j,q,k,a} //for number of card
i load all picture
d2d = Image.load("cardspng/2d.png")
d3d = Image.load("cardspng/3d.png")
d4d = Image.load("cardspng/4d.png")
d5d = Image.load("cardspng/5d.png")
d6d = Image.load("cardspng/6d.png")
where the first and the last letter is color and the middle number is the cardnumber
after load i have to show the cards on screen
i do
random colors and numbers
and here is my prob
cardtoload = color .. number .. color (so example cardtoload = a2a)
screen:blit(x, y, cardtoload)
i get error (try to send image as string ... not possible)
what can i do to show the png dynamicly? |
|