
Lv.1
致力于研发军事手游,新作《浴血奋战》即将发布!敬请期待
在 #吐槽大会#论官方 中回复
现在图书馆里上推荐的百分之八十都是抄袭,什么喵系统,什么都市土豪系统,随随便便复制粘贴的都可以上推!就换了个名字,而一些原创的小说还蛮好看,就不上,还搞什么完结感言,动不动就不更,好像说的是自己写的一样,喵(但也有很多原创的好作品)xswl
仅为个人意见,不喜勿喷
2021-01-17T15:24:17 点赞:0
在 请求评测作品并提出意见 中回复
各位!链接作品废了(被我改废了
)
请移步至https://shequ.codemao.cn/work/77418341提意见!
注:通关时间20s以下的童鞋可以获得【FrostWyrm作品大礼包】x1![]()
A喵 oil !![]()
2021-01-22T16:12:21 点赞:1
在 【笑疯】用你编程猫名字缩写编一个故事 中回复
FrostWyrm:冰龙
本来班里本来班里本来班里本来班里白萝卜本来班里冰龙鼻梁冰龙鼻梁菠萝冰棒了吧白萝卜累不累冰龙鼻梁冰龙鼻梁冰龙鼻梁别喵哔哩哔哩菠萝冰棒拔凉拔凉白萝卜累不累冰龙鼻梁冰龙鼻梁白萝卜李冰冰
???![]()
2021-01-25T16:30:47 点赞:0
在 【惊】我获得了喵数学奖! 中回复
众所周知
9月有31天![]()
喵数学奖由喵本人亲自给你一个大......
喵,亲自给你颁奖![]()
喵喵奖得主慕斯!![]()
哦,对了,喵说颁奖日期改为2月32日晚上25:70![]()
注意哦![]()
2021-01-25T16:53:44 点赞:0
在 咳咳,好久不见,甚是想念 中回复
import pygame
from pygame.locals import *
from sys import exit
from random import randint
def text_image(name, size, text, color):
# 创建新的系统字体对象
font = pygame.font.SysFont(name, size)
# 文本渲染
image = font.render(text, True, color)
return image
# 变量
path = 'resources/images/'
color = (100, 200, 0)
index = 0
y = 300
score = 0
flag = False
# 生成矩形
rects1 = []
rects2 = []
def layout():
left = 200
top = 0
width = 60
x_distance = 300
y_distance = 150
for i in range(10):
height = randint(200, 400)
rects1.append([left, top, width, height])
rects2.append([left, height + y_distance,
width, 600 - height - y_distance])
left = left + x_distance
x_distance = x_distance - 10
y_distance = y_distance - 5
layout()
# 初始化
pygame.init()
screen = pygame.display.set_mode((800, 600))
pygame.display.set_caption('flappy bird')
bg = pygame.image.load(path + 'bg_day.png')
bg = pygame.transform.喵oothscale(bg, (800, 600))
birds = [
pygame.image.load(
path + '0.png'),
pygame.image.load(
path + '1.png'),
pygame.image.load(
path + '2.png')]
over = pygame.image.load(path + 'over.png')
pygame.key.set_repeat(1, 1)
clock = pygame.time.Clock()
# 主循环
while True:
clock.tick(30)
for event in pygame.event.get():
if event.type == QUIT:
exit()
elif event.type == KEYDOWN:
key = event.key
if key == K_SPACE:
y = y - 5
if key == K_r:
if flag:
flag = False
layout()
y = 300
score = 0
screen.blit(bg, (0, 0))
# 结束画面
if flag or score == 10:
flag = True
rects1 = []
rects2 = []
screen.blit(over, (300, 270))
for i in range(score):
screen.blit(birds[0], (i * 60 + 100, 200))
pygame.display.update()
continue
# 绘制矩形
for i in range(len(rects1)):
pygame.draw.rect(screen, color, rects1[i])
pygame.draw.rect(screen, color, rects2[i])
rects1[i][0] = rects1[i][0] - 4
rects2[i][0] = rects2[i][0] - 4
# 绘制飞翔的小鸟
screen.blit(birds[index], (0, y))
if index < 2:
index = index + 1
else:
index = 0
y = y + 2
# 判断矩形障碍列表是否为空 并且刚好移出游戏窗口就将上下的矩形障碍移出 分数加一
if rects1 and rects1[0][0] <= -60:
rects1.pop(0)
rects2.pop(0)
score = score + 1
# 碰撞检测
if rects1:
if (rects1[0][0] < 48 and rects1[0][3] > y) or (
rects2[0][0] < 48 and rects2[0][1] < y + 48):
flag = True
# 绘制分数
img = text_image(None, 50, str(score), (255, 255, 255))
screen.blit(img, (20, 20))
pygame.display.update()
2021-02-01T13:33:39 点赞:2