目录
1 满眼皆是你
自从你出现后,我才知道原来有人爱是那么的美好。就这样陪你一直走,再久也不会累;陪你在夏日街头漫步,为你撑伞遮挡阳光;为你递上一杯凉茶,让你倍感清凉。这个夏日,有你更美。
我爱你的容貌,更爱你的心灵,即使我不能使你幸福,至少也要愿幸福与你同在。
最好的那个天使,我最熟悉的字是你的名字,我们会有大大的房子,你会送我一首小诗。”为你亲手搭建一所房子,大概是最美的誓言了。把所有的细节都照顾到,任谁收到这样的一份礼物,都会感动的吧。送你一所梦的房子,陪伴,是最长情的告白,承诺,不是说说而已。
2 “美的哲思”
画家齐白石说,“美“的意境全在似与不似之间。“似”则流于眉俗,“不似“又流于欺世。可这两者之间如何度量,又如何让人立足呢?看来,“美”实在是一种恼人的迷恋,它越是扑朔迷离就越显得美,由此造成了不可企及的无限追求——是困顿,还是陶醉?是明白,还是迷茫?是收获,还是失却?是欣赏还是占有?
此乃永恒的两难,又是无尽的焦灼。所以培根说,形体之美胜于颜色之美,而优雅之美又胜于形体之美。那是由于颜色之美尽在眼前,形体之美已有些难于描述,而优雅之美纯属精神化的幻觉,因而它美不胜收。
也所以,最深刻的三位大哲,即柏拉图、康德和黑格尔都要把美的渊源归于“理念”,那是由于客观的东西你尽可信手拈来,获得的瞬间便丢失了美感,唯有其画为意蕴,涵蓄心田,美的芬芳才会弥漫开来。
以上是我对“美”的思考。
3 Python代码实现
满眼皆是你
# 导入模块
import pygame
import sys
import math
from pygame.locals import *
# 初始化
pygame.init()
# 定义窗口大小、标题名称、字体设置、创建时钟(可以控制游戏循环频率)等
size = width, height = 1206, 780
screen = pygame.display.set_mode(size)
pygame.display.set_caption("满眼皆是你")
myfont = pygame.font.Font(None, 60)
clock = pygame.time.Clock()
# 定义三个空列表
pos_e = pos_mm = []
roll_e = roll_m = 0
roll_2 = roll_3 = roll_4 = roll_5 = roll_6 = roll_7 = roll_8 = 0
# 循环,达到万事万物永不停息的目的
while True:
for event in pygame.event.get():
if event.type == QUIT:
sys.exit()
# 显示文字及星球
textImage = myfont.render("GY", True, (255, 255, 0)) # 太阳系
screen.blit(textImage, (100, 100))
my_font = pygame.font.SysFont("arial", 15)
text_surface = my_font.render("loveyou", True, (255, 0, 0), (0, 0, 0)) # 太阳
screen.blit(text_surface, (1020, 30))
sun = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\1.png")
screen.blit(pygame.transform.scale(sun, (27, 27)), (1090, 25))
my_font = pygame.font.SysFont("arial", 15)
text_surface = my_font.render("nianni", True, (255, 0, 0), (0, 0, 0)) # 水星
screen.blit(text_surface, (1020, 70))
my_font = pygame.font.SysFont("arial", 15)
Mercury = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\2.png")
screen.blit(pygame.transform.scale(Mercury, (27, 27)), (1090, 65))
text_surface = my_font.render("xihuani", True, (255, 0, 0), (0, 0, 0)) # 金星
screen.blit(text_surface, (1020, 110))
my_font = pygame.font.SysFont("arial", 15)
spark = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\3.png")
screen.blit(pygame.transform.scale(spark, (27, 27)), (1090, 105))
text_surface = my_font.render("qinqin", True, (255, 0, 0), (0, 0, 0)) # 地球
screen.blit(text_surface, (1020, 150))
my_font = pygame.font.SysFont("arial", 15)
earth = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\4.png")
screen.blit(pygame.transform.scale(earth, (27, 27)), (1090, 145))
text_surface = my_font.render("baobao", True, (255, 0, 0), (0, 0, 0)) # 月球
screen.blit(text_surface, (1020, 190))
my_font = pygame.font.SysFont("arial", 15)
moon = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\5.png")
screen.blit(pygame.transform.scale(moon, (27, 27)), (1090, 185))
text_surface = my_font.render("tiantian", True, (255, 0, 0), (0, 0, 0)) # 火星
screen.blit(text_surface, (1020, 230))
Mars = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\6.png")
screen.blit(pygame.transform.scale(Mars, (27, 27)), (1090, 225))
my_font = pygame.font.SysFont("arial", 15)
text_surface = my_font.render("quan", True, (255, 0, 0), (0, 0, 0)) # 木星
screen.blit(text_surface, (1020, 270))
Jupiter = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\7.png")
screen.blit(pygame.transform.scale(Jupiter, (27, 27)), (1090, 265))
my_font = pygame.font.SysFont("arial", 15)
text_surface = my_font.render("xing", True, (255, 0, 0), (0, 0, 0)) # 土星
screen.blit(text_surface, (1020, 300))
Saturn = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\8.png")
screen.blit(pygame.transform.scale(Saturn, (30, 30)), (1090, 305))
my_font = pygame.font.SysFont("arial", 15)
text_surface = my_font.render("mei", True, (255, 0, 0), (0, 0, 0)) #
screen.blit(text_surface, (1020, 340))
Uranus = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\9.png")
screen.blit(pygame.transform.scale(Uranus, (27, 27)), (1090, 345))
my_font = pygame.font.SysFont("arial", 15)
text_surface = my_font.render("bang", True, (255, 0, 0), (0, 0, 0)) # 海王星
screen.blit(text_surface, (1020, 380))
Neptune = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\10.png")
screen.blit(pygame.transform.scale(Neptune, (27, 27)), (1090, 385))
sun = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\11.png")
screen.blit(pygame.transform.scale(sun, (170, 170)), (527, 307))
roll_3 += 0.077 # 每帧公转pi
pos_3_x = int(size[0] // 2 + size[1] // 8 * math.sin(roll_3))
pos_3_y = int(size[1] // 2 + size[1] // 8 * math.cos(roll_3))
mercury = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\12.png")
screen.blit(pygame.transform.scale(mercury, (8, 8)), (pos_3_x, pos_3_y))
roll_2 += 0.069 # 每帧公转pi
pos_2_x = int(size[0] // 2 + size[1] // 7 * math.sin(roll_2))
pos_2_y = int(size[1] // 2 + size[1] // 7 * math.cos(roll_2))
venus = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\13.png")
screen.blit(pygame.transform.scale(venus, (10, 10)), (pos_2_x, pos_2_y))
roll_e += 0.060 # 每帧公转pi
pos_e_x = int(size[0] // 2 + size[1] // 6 * math.sin(roll_e))
pos_e_y = int(size[1] // 2 + size[1] // 6 * math.cos(roll_e))
earth = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\14.png")
screen.blit(pygame.transform.scale(earth, (15, 15)), (pos_e_x, pos_e_y))
roll_m += 0.2 # 每帧公转pi
pos_m_x = int(pos_e_x + size[1] // 50 * math.sin(roll_m))
pos_m_y = int(pos_e_y + size[1] // 50 * math.cos(roll_m))
mouth = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\15.png")
screen.blit(pygame.transform.scale(mouth, (6, 6)), (pos_m_x, pos_m_y))
roll_4 += 0.053 # 每帧公转pi
pos_4_x = int(size[0] // 2 + size[1] // 5 * math.sin(roll_4))
pos_4_y = int(size[1] // 2 + size[1] // 5 * math.cos(roll_4))
venus = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\16.png")
screen.blit(pygame.transform.scale(venus, (13, 13)), (pos_4_x, pos_4_y))
roll_5 += 0.045 # 每帧公转pi
pos_5_x = int(size[0] // 2 + size[1] // 4 * math.sin(roll_5))
pos_5_y = int(size[1] // 2 + size[1] // 4 * math.cos(roll_5))
mouth = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\17.png")
screen.blit(pygame.transform.scale(mouth, (70, 70)), (pos_5_x, pos_5_y))
roll_6 += 0.037 # 每帧公转pi
pos_6_x = int(size[0] // 2 + size[1] // 3.5 * math.sin(roll_6))
pos_6_y = int(size[1] // 2 + size[1] // 3.5 * math.cos(roll_6))
saturn = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\18.png")
screen.blit(pygame.transform.scale(saturn, (50, 50)), (pos_6_x, pos_6_y))
roll_7 += 0.031 # 每帧公转pi
pos_7_x = int(size[0] // 2 + size[1] // 2.7 * math.sin(roll_7))
pos_7_y = int(size[1] // 2 + size[1] // 2.7 * math.cos(roll_7))
uranus = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\19.png")
screen.blit(pygame.transform.scale(uranus, (45, 45)), (pos_7_x, pos_7_y))
roll_8 += 0.025 # 每帧公转pi
pos_8_x = int(size[0] // 2 + size[1] // 2 * math.sin(roll_8))
pos_8_y = int(size[1] // 2 + size[1] // 2 * math.cos(roll_8))
neptune = pygame.image.load(r"E:\科研\跑代码\跑代码\python\游戏代码\整个宇宙属于你\20.png")
screen.blit(pygame.transform.scale(neptune, (37, 37)), (pos_8_x, pos_8_y))
pygame.display.flip()
# 数值越大刷新越快,小球运动越快
clock.tick(50)