当前位置:网站首页>Catch ball game 1
Catch ball game 1
2022-07-06 20:11:00 【Melon eating crowd +1】
import pygame
# initialization
pygame.init()
# Create screen ( main window ), And return to the current screen
screen = pygame.display.set_mode((600,500))
pygame.display.set_caption(“ Catch games ”)
x,y=0,0
# Cycle through the screen ( display screen )
while True:
for event in pygame.event.get():
# If you close the window , Then quit the game
if event.type == pygame.QUIT:
pygame.quit()
# Press the keyboard KEYDOWN
if event.type == pygame.KEYDOWN:
print(‘abc’)
# The mouse click MOUSEBUTTONDOWN
# Fill color of main window
screen.fill((100,0,0))
# A circle ( canvas ,rgb Color ,xy Location , radius , Line width )
pygame.draw.circle(screen,(100,100,30),(x,y),30,0)
x+=1
y+=1
# Render the screen
pygame.display.update()
11
边栏推荐
- 腾讯架构师首发,2022Android面试笔试总结
- Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
- Tencent T3 Daniel will teach you hand-in-hand, the internal information of the factory
- HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
- 腾讯云数据库公有云市场稳居TOP 2!
- Cesium Click to draw a circle (dynamically draw a circle)
- Oceanbase Community Edition OBD mode deployment mode stand-alone installation
- 腾讯字节阿里小米京东大厂Offer拿到手软,老师讲的真棒
- 5. Nano - Net in wireless body: Top 10 "is it possible?" Questions
- Special topic of rotor position estimation of permanent magnet synchronous motor -- fundamental wave model and rotor position angle
猜你喜欢
Tencent architects first, 2022 Android interview written examination summary

Oceanbase Community Edition OBD mode deployment mode stand-alone installation

语音识别(ASR)论文优选:全球最大的中英混合开源数据TALCS: An Open-Source Mandarin-English Code-Switching Corpus and a Speech
腾讯字节等大厂面试真题汇总,网易架构师深入讲解Android开发

Transformer model (pytorch code explanation)

深入浅出,面试突击版

BeagleBoneBlack 上手记

Anaconda安裝後Jupyter launch 沒反應&網頁打開運行沒執行
![[play with Linux] [docker] MySQL installation and configuration](/img/04/6253ef9fdf7d2242b42b4c7fb2c607.png)
[play with Linux] [docker] MySQL installation and configuration

02 基础入门-数据包拓展
随机推荐
【计网】第三章 数据链路层(3)信道划分介质访问控制
Wonderful coding [hexadecimal conversion]
Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
精彩编码 【进制转换】
In simple terms, interview surprise Edition
mod_wsgi + pymssql通路SQL Server座
句号压缩过滤器
[play with Linux] [docker] MySQL installation and configuration
夏志刚介绍
02 基础入门-数据包拓展
RT-Thread 组件 FinSH 使用时遇到的问题
新一代垃圾回收器—ZGC
腾讯架构师首发,2022Android面试笔试总结
22-07-05 七牛云存储图片、用户头像上传
Cesium Click to draw a circle (dynamically draw a circle)
Leetcode brush first_ Maximum Subarray
beegfs高可用模式探讨
[cloud lesson] EI lesson 47 Mrs offline data analysis - processing OBS data through Flink
深入浅出,面试突击版
Example of shutter text component