trying creating dropdown menu pygame, but got stuck
So so far here’s my code:
So so far here’s my code:
I’m currently making a Python clicking game using Pygame. Right now, there is a coin in the center of the screen that you can click. What I want to add now, it a little green “+$10” icon that appears somewhere next to the coin whenever someone clicks it. This is what I want the game to look like whenever someone clicks the coin:
So basically ive been hoping it would be possible to effectively turn your sprite while moving it around with WASD. Any ideas because im certainly stumped, thanks!
First of all, sorry if this is a duplicate. The answers that I found either seemed irrelevant but perhaps I’m searching with the wrong keywords. What I’d like to do is to take an animated GIF and split it up into a list of frames. Basically, something like this:
I made a border in this pong game, and the paddles on the screen can cross it. I have done this before in another piece of code, but everything’s different now. I have a main idea of how to do it, you probably need an if statement, but I don’t have everything.
I’m new to python and therefore decided to try to make a simple game in pygame. I want to add a timer/clock that shows how long “you have played/survived”, so creating a clock basically.
Apologies for asking so many questions recently. I’m just starting to get into pygame.
With my previous questions I don’t think I’ve been wording it properly for what I am trying to do.
So I have this little problem. When I try to install PyGame for Python 3.4 I download a .whl (wheel?) file and don’t know how to use it. Some guys told me something about pip but don’t know how to use/install it.
I have a maze organized in a grid. Each cell of the grid stores the information about the walls to its right and bottom neighboring cell. The player is an object of a certain size whose bounding box is known. I want to move the player smoothly through the maze with the walls preventing them from going through.
I’ve been working on this project about tanks (based on game Tank Trouble) and I’m wondering how I can move forward after I change angle of the sprite. Also if you know how I can make my bullets ricochet from the walls. I will really appreciate any help given. Thank you!