+ 1

How to create button position using pygame

19th Feb 2021, 1:03 PM
Lakshman Motwani
2 Respostas
+ 2
Creating interactable buttons using pygame rect() , screen. blit() etc. To add more liveliness to it we can change the color of the button as the mouse has hovered on it. This can be done by using a function that updates the x and y position of the mouse pointer and storing it as a tuple in a variable. For postion as you know that rect() function accept some parameter that is x, y, size and color
19th Feb 2021, 1:26 PM
Abhiyantā
Abhiyantā - avatar
+ 1
Ty bro
19th Feb 2021, 1:28 PM
Lakshman Motwani