-3
pygameでゲームを作ろうとしていますが、クリックすると画像が表示されますが、その機能をどのようにプログラムするのか分かりません。画像をパイゲームで表示する
import pygame, sys, time, os
pygame.init()
windowImg = pygame.display.setmode((800,600))
pygame.display.set_caption("Videogame 001")
clock = pygame.tima.Clock()
landerImg = Pygame.image.load("C:\RedSquare.jpg")
landerX = 200
landerY= 200
while True:
clock.tick(15)
for event in pygame.even.get():
if event.type == pygame.QUIT
pygame.display.quit()
sys.exit()
if event.type == pygame.MOUSEBUTTONDOWN:
pygame.draw(landerImg)
#this is the part of the code where i do not know ho to make an image appear when I click
pygame.display.flip()