How to make buttons in python/pygame?

前端 未结 5 1967
粉色の甜心
粉色の甜心 2020-12-16 22:35

I\'m making a game in pygame and on the first screen I want there to be buttons that you can press to (i) start the game, (ii) load a new screen with instructions, and (iii)

5条回答
  •  伪装坚强ぢ
    2020-12-16 23:05

    Here is a class for a button I made ages ago: https://www.dropbox.com/s/iq5djllnz0tncc1/button.py?dl=0 The button is windows 7 style as far as I can remember, and I havent been able to test it recently because I do not have pygame on the computer I am using. Hope this helps!

提交回复
热议问题