game tag

40 questions


1 answers
265 views
0
Turtle Game Add Life

import turtle as timport random# Create Screen Objectscreen = t.Screen()# Specify screen background colorscreen.bgcolor(lightgreen)# drawing a fencemypen = t.Turtle()mypen.penup()mypen.setposition(-30...

1 weeks ago

1 answers
321 views
0
I want to draw two types of images with pygame at 30fps or more.

I created a program that alternately draws two images using pygame.Up to 28fps, I was able to do it without any discomfort, but if it reaches 30fps or more, I will not be able to draw because I though...

1 months ago

2 answers
287 views
0
I don't know why pygame specifies self as an argument when generating instances.

I'm a Python beginner.While learning from the basics through reference books, we are learning using pygame as an application.I don't understand why you specify self as the argument for Ship() when you...

2 months ago

2 answers
275 views
0
SyntaxError Occurs in the Program as Written in the Book

I've read it over and over again, but I can't help but get an error even though they're all the same programs.import pygame aspg,syspg.init()screen=pg.display.set_mode(800,600))while True: screen.fill...

2 months ago

3 answers
291 views
0
perform real-time processing of data from a microcomputer board using python pygame

I would like to communicate with arduino using this site https://algorithm.joho.info/arduino/python-serial-temperature-graph/ to display the graph in real time.The text is displayed without any proble...

2 months ago

1 answers
5 views
0
Image.load("") cannot be displayed in python pygame

I am currently studying python programming, which is fun to learn while making games.I am troubled that I cannot do image.load() in this document.I'd like to enter the code below and display (pythonlo...

2 months ago

2 answers
3 views
0
pygame surface.fill() does not work well

I wrote the following program about pygameimport sysimport pygamefrom pygame.locals import QUIT# globalsWINDOW_SIZE= (400,300)WINDOW_TITLE=Pygame Countdefmain(): pygame.init() surface=pygame.display.s...

2 months ago

2 answers
3 views
0
How Python Decrypts Encrypted Files and Reads

I would like to decrypt the python (pygame) pre-encrypted file for processing.By decrypting it and writing it out to a file, I was able to restore it to the state before encryption.I'm worried that if...

2 months ago

1 answers
4 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...

2 months ago

1 answers
5 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...

2 months ago
- 1 - »

© 2022 OneMinuteCode. All rights reserved.