Kann ein Bildschirm.Draw.textbox -Funktion ein Bild übergeben werden

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Kann ein Bildschirm.Draw.textbox -Funktion ein Bild übergeben werden

by Anonymous » Yesterday, 07:12

Ich versuche, ein Pygame Zero -Spiel zu erstellen.def draw_button(rect, text, color='yellow'):
screen.draw.filled_rect(rect, color)
screen.draw.textbox(text, rect, fontname='impact', color='black')
< /code>
screen.blit('thor', spaces_char[0])
screen.blit('loki', spaces_char[1])
< /code>
I have been looking for a way on the internet but they are very unhelpful because i am using pygame zero, not pygame!!!!!
I tried with the code above.
Does Surface work?
Really what I am trying to do is make a Rect to be detected with on_mouse_down()
The files are thor.png and loki.png
Thanks

Top