赞
踩
目录
这几天没时间好好陪她,自己很忙,先写一首情诗送给她,然后做一个小游戏给她消遣。时光易老,我陪她成长。
你要记得,无论到何时,想要与你共细水流年的愿望一直都在。
时光抹不去爱的初衷,距离隔不断相思情浓,只是,隔着红尘世俗,对你的爱早已被深深地压抑在心底,化作了人间最无奈的相思。
我真的太想太想你,你的笑,深深印在我的脑海里,你的好,深深刻在我的灵魂里。
我真的太想太想你,真爱一场,牵挂一生,海角天涯,你永远是我舍不下的相思情浓。
花儿开了,我在想你,叶儿绿了,我在想你,云儿起了,我在想你,雪儿落了,我在想你。
爱过知情重,念过知情浓,挥尽三千笔墨,描不尽痴恋情深,写下相思万卷,写不出痴念沉沦。
再写一封情书给你,轻轻告诉你,想你,念你,爱你到老,等你归期,哪怕你一生不来,你也是我心中永恒的疼惜。
想你了,好想你,每天,每夜,每年,我都在深深地想着你!
临床上有一种罕见的怪病,叫做“早衰症”,该病的特点就是生长发育过速,犹如体内的细胞组织一律惹上了偏好创新进取的冲动,各呈英雄好汉,没有谁甘当庸人,结果导致患者还是一个十岁左右儿童之际,就表现出鹤法皱皮、脏器衰竭的耄耋老态,小小年纪而寿终正寝。
凡脱俗的革新明星,真正的成功者终归是凤毛麟角。出于同一缘故,革新者的命运往往通常不佳,他们毕生努力大多流于枉费心机,纵有个别展露头角,恐怕避免不了备尝失败的苦楚。
商鞅变法被车裂,王安石数度被贬谪,伽利略老来遇囚,孟德尔成寂寞....凡此种种,大抵都是这一大自然机制从中作祟的结果。
作为一个平庸者挺好,至少我活得快乐。
-
- ''''~~~~~导入相关库~~~~'''
- import os
- import sys
- import cfg
- import pygame
- from modules import *
-
- '''~~~~~游戏主程序~~~~~~~~~~~~~`'''
- def main():
- pygame.init()
- screen = pygame.display.set_mode(cfg.SCREENSIZE)
- pygame.display.set_caption('送给女朋友的——连连看')
- #~~~~~加载背景音乐~~~~~~~~~~
- pygame.mixer.init()
- pygame.mixer.music.load(os.path.join(cfg.ROOTDIR, "resources/audios/bg.mp3"))
- pygame.mixer.music.set_volume(0.6)
- pygame.mixer.music.play(-1)
- #~~~~加载音效~~~~~~~~~~~
- sounds = {}
- sounds['mismatch'] = pygame.mixer.Sound(os.path.join(cfg.ROOTDIR, 'resources/audios/badswap.wav'))
- sounds['match'] = []
- for i in range(6):
- sounds['match'].append(pygame.mixer.Sound(os.path.join(cfg.ROOTDIR, 'resources/audios/match%s.wav' % i)))
- #~~~~~~~加载字体~~~~~~~~~~
- font = pygame.font.Font(os.path.join(cfg.ROOTDIR, 'resources/font/font.TTF'), 25)
- #~~~~~~图片加载~~~~~~~~~
- gem_imgs = []
- for i in range(1, 8):
- gem_imgs.append(os.path.join(cfg.ROOTDIR, 'resources/images/gem%s.png' % i))
- #~~~~~~~主循环~~~~~~~~~`
- game = gemGame(screen, sounds, font, gem_imgs, cfg)
- while True:
- score = game.start()
- flag = False
- # 一轮游戏结束后玩家选择重玩或者退出
- while True:
- for event in pygame.event.get():
- if event.type == pygame.QUIT or (event.type == pygame.KEYUP and event.key == pygame.K_ESCAPE):
- pygame.quit()
- sys.exit()
- elif event.type == pygame.KEYUP and event.key == pygame.K_r:
- flag = True
- if flag:
- break
- screen.fill((135, 206, 235))
- text0 = 'Final score: %s' % score
- text1 = 'Press <R> to restart the game.'
- text2 = 'Press <Esc> to quit the game.'
- y = 150
- for idx, text in enumerate([text0, text1, text2]):
- text_render = font.render(text, 1, (85, 65, 0))
- rect = text_render.get_rect()
- if idx == 0:
- rect.left, rect.top = (212, y)
- elif idx == 1:
- rect.left, rect.top = (122.5, y)
- else:
- rect.left, rect.top = (126.5, y)
- y += 100
- screen.blit(text_render, rect)
- pygame.display.update()
- game.reset()
-
-
- '''~~~~~运行~~~~~~~~~~~~~'''
- if __name__ == '__main__':
- main()
(132条消息) 电力系统与算法之美_电力系统与算法之美的博客-CSDN博客
关注公众号:电力系统与算法之美
回复关键字:连连看
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。