猫史档案馆


_昵称副本_

_昵称副本_

Lv.1

“昵称”是自我意识在存在中的独有签名,“副本”是宇宙为承载此签名而显影的时空。

获赞:1775收藏:871浏览:23572作品收藏:428

签名:私聊网站:https://nightly.paw.msgbyte.com/entry/login 我的账号:昵称副本(信息技术课代表)#3569 网站2:https://www.boxim.online/#/home/friend 我的账号:昵称副本@outlook.com 26年了,(悲)拾柒什么时候回来qvq

回复帖子评论
上一页2 页 / 共 3下一页

闲着无聊。 中回复

协作?

 

2024-05-19T06:50:17 点赞:0

接协作啊啊 中回复

能与我协作吗?https://kitten4.codemao.cn/?invite_code=8MYP5X 

2024-05-19T08:45:55 点赞:0

入新社区初代体验团的所见所闻(十九)(pickcat使用教程) 中回复

考古

2024-05-25T13:11:24 点赞:0

请帮助我们抢救猫站组织信息 中回复

1111111111

2024-06-02T16:04:56 点赞:0

看来是每认识的人了,找个人聊天吧 中回复

hello

2024-06-02T16:07:47 点赞:1

我号被盗了??? 中回复

请问编辑器能打开作品吗?

2024-06-02T16:13:01 点赞:0

game ai 中回复

提供一下协作链接,我可以尝试帮助您。

2024-06-02T16:17:23 点赞:0

六一快乐! 中回复

六一儿童节快乐!!!

2024-06-02T16:29:45 点赞:0

拾柒的UI小铺-社区猜名人活动-7 中回复

          

2024-07-15T22:26:52 点赞:0

源码编辑器6.0震撼上架! 中回复

666

2024-07-19T18:01:56 点赞:0

急急急!!!!!!!!!!!!!1 中回复

云变量的极限长度为1kb(千字节),1kb=1024b(也就是1024个字符串)。

2024-07-20T15:58:59 点赞:0

【盘点】盘点你们都打什么游戏? 中回复

玩源码编辑器4.0

2024-07-20T16:01:20 点赞:4

有没有会一些高级语言的 中回复

只会Python罢了

2024-07-20T16:01:48 点赞:0

PVZ协作 中回复

我来了,但怎么链接失效了?

2024-07-21T06:28:12 点赞:0

I don't like 白嫖!!! 中回复

拳皇95

2024-07-21T11:01:57 点赞:0

如题,这是一个求助帖 中回复

开个小号,大号依旧管理你自己的工作室,小号加入少年工作室。

2024-07-22T09:53:55 点赞:0

凌晨2点半了,看看社区里还有没有人。 中回复

2024-07-23T04:59:30 点赞:0

【官方】如何上首页?只需在本帖下面评论! 中回复

https://shequ.cod喵/work/216805504

2024-07-28T09:56:19 点赞:0

招人协作了! 中回复

有人来协作吗?

2024-08-03T21:14:05 点赞:0

谁可以帮我做个头像吗? 中回复

center_image

2024-08-09T03:28:37 点赞:0

哥们加个协作可以吗 中回复

我也想帮你,不过我现在是手机端,操作不方便。

2024-08-09T22:52:45 点赞:0

小游戏(猜性别) 中回复

男d

2024-08-09T23:04:49 点赞:0

【有一个问题】 中回复

写代码,让网页不断刷新。浏览量就能提升了

2024-08-14T14:53:59 点赞:0

【有一个问题】 中回复

请把链接替换成你的作品链接。content变量是刷新间隔,这里我设置成了6 <html> <head><metahttp-equiv="refresh"content="5"></head> <frameset> <framesrc="https://shequ.codemao.cn/work/216805504"name="iframe"> </frameset></frameset> </html>

2024-08-14T14:55:51 点赞:0

有没有会一些高级语言的 中回复

原野跑酷.py

def Read_cloud_data(name):#读取云变量
    return(requests.post('喵喵喵',data = {'user':'c2345','secret':'a3ea43b6','action':'get','tag':name}).text[8:len(requests.post('喵喵喵',data = {'user':'c2345','secret':'a3ea43b6','action':'get','tag':name}).text) - 2])
def Write_to_cloud_data(name,data):#修改云变量
    update = requests.post('喵喵喵',data = {'user':'c2345','secret':'a3ea43b6','action':'update','tag':name,'value':data})
    #上面的网站被屏蔽了,‘喵喵喵’原本是'h t t p : / / t i n y w e b d b . a p p i n v e n t o r . s p a c e / a p i'
def Clear_cloud ():#清空云变量
    Write_to_cloud_data("p1","0")
    Write_to_cloud_data("p2","0")
    Write_to_cloud_data("p3","0")
    Write_to_cloud_data("p4","0")
    Write_to_cloud_data("p5","0")
    Write_to_cloud_data("p6","0")
    Write_to_cloud_data("p7","0")
    Write_to_cloud_data("p8","0")
    Write_to_cloud_data("UC","0")
def fall(x,decrease):
    global yy
    yy += int(x)
    if collide(rect1, mask1, rect2, mask2, rect3, mask3, 3) and (x != 0):
            yy -= (0 - x) / abs(x)  
    else:
        if x > -1 and collide(rect1, mask1, rect2, mask2, rect3, mask3, 3)!=1: 
            fall(int(x) - int(decrease),(int(decrease)+5))
def collide(rect1, mask1, rect2, mask2, rect3, mask3, num):
    if keyboard.is_pressed('s'):
        collide_rect = rect1
        collide_mask = mask1
    else:
        collide_rect = rect2
        collide_mask = mask2
    if num == 3:
        other_rect = rect3
        other_mask = mask3
    offset_x = collide_rect.centerx - other_rect.centerx
    offset_y = collide_rect.centery - other_rect.centery
    collision = collide_mask.overlap(other_mask, (offset_x, offset_y))
    if collision:
        return 1
    else:
        return 0

def choose_player_num():
    if Read_cloud_data(P1)==0:
        return 1
    elif Read_cloud_data(P2)==0:
        return 2
    elif Read_cloud_data(P3)==0:
        return 3
    elif Read_cloud_data(P4)==0:
        return 4
    elif Read_cloud_data(P5)==0:
        return 5
    elif Read_cloud_data(P6)==0:
        return 6
    elif Read_cloud_data(P7)==0:
        return 7
    elif Read_cloud_data(P8)==0:
        return 8
    else:
        return 0
import pygame #导入pygame
import math #数学
import time#时间
import pyautogui as pag#鼠标
import requests#云变量
import keyboard#键盘


        

pygame.init()#pygame初始化
background = pygame.image.load(r"E:\我的\python\原野跑酷\image\backgroud.png")#背景图片设置
font=pygame.font.Font(r"E:\我的\python\原野跑酷\font\站酷快乐体.woff",size=100)#字体设置
bgm=pygame.mixer.Sound(r"E:\我的\python\原野跑酷\media\bgm.mpeg")#游戏BGM
title=pygame.image.load(r"E:\我的\python\原野跑酷\image\title.png")#游戏标题
start=pygame.image.load(r"E:\我的\python\原野跑酷\image\start.png")#开始按钮轮廓
board_and_user=pygame.image.load(r"E:\我的\python\原野跑酷\image\board&user.png")
online=pygame.image.load(r"E:\我的\python\原野跑酷\image\Join online.png")#联机按钮轮廓
player_stand=pygame.image.load(r"E:\我的\python\原野跑酷\image\player stand.png")#玩家站立形态
player_get_down=pygame.image.load(r"E:\我的\python\原野跑酷\image\player Get down.png")#玩家下蹲形态
board=pygame.image.load(r"E:\我的\python\原野跑酷\image\board.png")
grass=pygame.image.load(r"E:\我的\python\原野跑酷\image\grass.png")
mask1 = pygame.mask.from_surface(player_stand)
mask2 = pygame.mask.from_surface(player_get_down)
mask3 = pygame.mask.from_surface(board)
screen=pygame.display.set_mode([1280,720],)#设置窗口大小
pygame.display.set_caption("原野跑酷")#窗口名称设置
bgm.play(-1)#"-1"代表无限循环音乐“BGM”
# 设置开始按钮
x, y = 540, 465
width, height = 144, 喵
button_rect = pygame.Rect(x, y, width, height)
button_color = (170, 229, 113)
text_color = (70,213,120)
button_font = pygame.font.Font(r"E:\我的\python\原野跑酷\font\站酷快乐体.woff",size=60)
button_text = button_font.render("开始", True, text_color)
# 设置联机按钮
x, y = 470, 340
width, height = 280, 70
button2_rect = pygame.Rect(x, y, width, height)
button2_color = (70, 213, 120)
text2_color = (255,0,0)
button2_font = pygame.font.Font(r"E:\我的\python\原野跑酷\font\站酷快乐体.woff",size=60)
button2_text = button_font.render("加喵机", True, text2_color)#>>>>>这是屏蔽词实际上应该是加/入/联/机,不是加/喵/机
#窗口图标更改
icon = pygame.image.load(r"E:\我的\python\原野跑酷\logo\logo.png")
pygame.display.set_icon(icon)



num=0
screen_num=1
increase=0
big_screen=0
xx=0
yy=0
x1=608
x2=610
x3=407
y1=302
y2=330
y3=538
running = True


while running:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False

    num += 3
    increase += math.cos(math.radians(num))
    mouse_x,mouse_y = pag.position()
    if keyboard.is_pressed('Enter'):
            big_screen = 1 - big_screen

        
    if screen_num ==1 or screen_num ==2:
        screen.fill((100,175,255))#浅蓝天空背景绘制
        screen.blit(background,(5,-150 + ( float(increase)*0.4 )))#原野背景绘制
        screen.blit(title,(650,50 + ( float(increase)*1 )))#标题绘制

    if screen_num ==1:
        screen.blit(start,(500,450))#开始按钮轮廓绘制
        #开始按钮绘制
        pygame.draw.rect(screen, button_color, button_rect)
        screen.blit(button_text, (button_rect.centerx - button_text.get_width() / 2, button_rect.centery - button_text.get_height() / 2))
        #侦测按钮是否被鼠标点击
        if event.type == pygame.MOUSEBUTTONDOWN:
            if button_rect.collidepoint(event.pos):
                screen_num = 2

    if screen_num ==2:
        screen.blit(board_and_user,(0,25))
        screen.blit(online,(450,250))#联机按钮轮廓绘制
        #联机按钮绘制
        pygame.draw.rect(screen, button2_color, button2_rect)
        screen.blit(button2_text, (button2_rect.centerx - button2_text.get_width() / 2, button2_rect.centery - button2_text.get_height() / 2))
        #侦测按钮是否被鼠标点击
        if event.type == pygame.MOUSEBUTTONDOWN:
            if button2_rect.collidepoint(event.pos):
                screen_num = 3

    if screen_num ==3:
        screen.fi喵))#游戏背景绘制
        if keyboard.is_pressed('s'):
            x2 = 610 + int(xx)
            y2 = 330 - int(yy)
            x3 = 407-int(x2)+610
            y3 = 538-int(y2)+330
            screen.blit(player_get_down, (610, 330))  # 玩家绘制(下蹲)
        else:
            x1 = 608 + int(xx)
            y1 = 302 - int(yy)
            x3 = 407-int(x1)+608
            y3 = 538-int(y1)+302
            screen.blit(player_stand, (608, 302))  # 玩家绘制(站立)
        
        board_rect = pygame.Rect(x3, y3, 476, 88)
        screen.blit(board,(x3,y3))
        screen.blit(grass,(x3,y3-50))
        mask3 = pygame.mask.from_surface(board)
        rect1 = player_stand.get_rect(center=(x1, y1)) 
        rect2 = player_get_down.get_rect(center=(x2, y2))
        rect3 = board.get_rect(center=(x3+400, y3+40))
        decrease=1
        if keyboard.is_pressed('w') and collide(rect1, mask1, rect2, mask2, rect3, mask3, 3):
            count = 0
            for __count in range(120):
                count += 0.05
                yy += int(count)
                screen.fi喵))#游戏背景绘制
                if keyboard.is_pressed('s'):
                    x2 = 610 + int(xx)
                    y2 = 330 - int(yy)
                    x3 = 407-int(x2)+610
                    y3 = 538-int(y2)+330
                    screen.blit(player_get_down, (610, 330))  # 玩家绘制(下蹲)
                else:
                    x1 = 608 + int(xx)
                    y1 = 302 - int(yy)
                    x3 = 407-int(x1)+608
                    y3 = 538-int(y1)+302
                    screen.blit(player_stand, (608, 302))  # 玩家绘制(站立)
        
                board_rect = pygame.Rect(x3, y3, 476, 88)
                screen.blit(board,(x3,y3))
                screen.blit(grass,(x3,y3-50))
                mask3 = pygame.mask.from_surface(board)
                rect1 = player_stand.get_rect(center=(x1, y1)) 
                rect2 = player_get_down.get_rect(center=(x2, y2))
                rect3 = board.get_rect(center=(x3+400, y3+40))
                if yy < -500:
                    yy=0
                    xx=0
                if keyboard.is_pressed('a'):
                    xx -= 3
                if keyboard.is_pressed('d'):
                    xx += 3
                pygame.display.flip()
        else:
            fall(0,decrease)
        if yy < -1000:
            yy=0
            xx=0
        if keyboard.is_pressed('a'):
            xx -= 3
        if keyboard.is_pressed('d'):
            xx += 3

        
        
            
            
            


    pygame.display.flip()
pygame.quit()#关闭窗口❎

2024-08-18T09:03:20 点赞:0

当你卷了两年半的作品被吞了,想起数据还不如一个只做了半小时却上新喵的史作belike🤡😇.mp3 中回复

  

2024-08-20T00:01:43 点赞:0

召集夜猫子! 中回复

嘿!

2024-08-20T00:28:51 点赞:0

召集夜猫子! 中回复

1:30

2024-08-20T01:39:22 点赞:1

召集夜猫子! 中回复

2:00

2024-08-20T01:53:03 点赞:0

召集夜猫子! 中回复

昨晚太晚睡了,现在才醒来。(9:11:19)

2024-08-20T09:11:39 点赞:0