game tag

43 questions


1 answers
71 views
0
Python novice question, pie game attributeError: 'str' object has no attribute 'get_rect'

To make a ball throwing game Traceback (most recent call last): File c:\Users\Jeongyoon\Desktop\pythonwork\l\pypang.py, line 96, in <module> ball_size = ball_images[ball_img_idx].get_rect().size...

2 years ago

1 answers
98 views
0
pygame error NameError: name 'enemy1' is not defined.

import pygame, sysimport randompygame.init() #Initialization (must be)pygame.display.set_caption(my game)# # FPS clock = pygame.time.Clock()#Set screen sizescreen_width = 1150screen_height = 648screen...

2 years ago

1 answers
80 views
0
I'm asking you a question while making Python baseball game

import randomrandom_ball = random.sample((1,2,3,4,5,6,7,8,9),3)strike = 0ball = 0while True: Guess = input (Please enter three different baseball numbers (1 to 9): ) if random_ball == guess: print (C...

2 years ago
« - 5 -

© 2024 OneMinuteCode. All rights reserved.