pygame tag

30 questions


1 answers
66 views
0
The pygame program in python does not recognize the class slider instructions.

I'm a super beginner studying Python at Python Game Programming Basic Mathematics and Physics.As stated in the subject book (textbook), when I entered the code below and ran it on Run Module, an error...

1 years ago

1 answers
61 views
0
Unable to load pygame image

import pygamefrom pygame.locals import*import sysdefmain(): (w,h) = (400,400) (x,y) = (200,200) pygame.init() screen=pygame.display.set_mode(w,h), 0,32) screen=pygame.display.get_surface() pygame.disp...

1 years ago

1 answers
62 views
0
Image Transparency Processing in Pygame

I am currently producing software on Pygame.I would like to ask your opinion on image transmission processing.I would like to fade out the image with the window created in Pygame.Is there any good way...

1 years ago

1 answers
62 views
0
Unable to play music file in pygame

Pygame.mixer is unable to play the downloaded music file on the web.importosimport pygamepygame.init()sound=pygame.mixer.Sound(C:/Users/syosh/Desktop/pyworks/data/ball_collided.wav)sound=pygame.mixer....

1 years ago

1 answers
95 views
0
Unable to open image in pygame

import pygamefrom pygame.locals import*import syspygame.init()screen=pygame.display.set_mode(480,360))pygame.display.set_caption(Move the main character)player=pygame.image.load(annpannmann.png).conve...

1 years ago

1 answers
66 views
0
Error in Pygame code: 'int' object has no attribute 'rect'

I'd like to write a winning code.This is a program in which the player returns to its initial position when it hits en1 moving by operating the player with the cross key.I would like to say If player ...

1 years ago

2 answers
55 views
0
I am in trouble because I cannot display the image with image.load("") on python pygame.

I am currently studying python programming to enjoy learning while making games.I am troubled that I cannot do image.load() in this document.I would like to enter the following code (pythonlogo.jpg), ...

1 years ago

1 answers
109 views
0
Python help questions

It's not coming up. What should I do?

1 years ago

1 answers
111 views
0
A game made with pygames... There's a problem with a piece of code... Help me.

import pygame.localsimport gameCode.player_antimport gameCode.soilpygame.init()display = pygame.display.set_mode((1280, 720))displaySurface = pygame.Surface(display.get_size())clock = pygame.time.Cloc...

1 years ago

1 answers
111 views
0
What's wrong here?

import pygame.localsimport gameCode.player_antimport gameCode.soilpygame.init()display = pygame.display.set_mode((1280, 720))displaySurface = pygame.Surface(display.get_size())clock = pygame.time.Cloc...

1 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.