未提供项目说明
pyxelext的Python项目详细描述
PyxelExt是延迟Pyxel扩展。在
这是我个人需要的函数集合,或者可能需要来完成我的游戏。在
安装
pip install pyxelext
功能
看看pyxelext/examples
# pyxelext/line.py
# pyxelext/input.py
frompyxelext.inputimport*btn_pressed()# returns button that is currently pressed
# pyxelext/text.py
frompyxelext.textimport*text(x:int,y:int,txt:str)# pyxel.text but with inline text palette supporttextblock(x:int,y:int,txt:str,nl_px:int=6,drop_whitespace:bool=True)# Text block with screen wrap
# pyxelext/physics.py
需要pymunk
才能工作。在
debug_draw_options()# pretty much similar to pygame function in pymunk.static_rect(x:int,y:int,w:int,h:int,col:int,space:pymunk.Space,**kwargs)# static rectangle from pyxelstatic_circ(x:int,y:int,r:int,col:int,space:pymunk.Space,**kwargs)# static circleoopv_sleep(space:pymunk.Space,r=0)# put this in your draw function so bodies in space will be inactive once they've left the pyxel screen
# pyxelext/system.py
向pyxel添加当前未在主库中实现的功能
set_fullscreen(real_fullscreen:bool=False)# enables fullscreen, real_fullscreen changes desktop resolution as wellset_windowed()# enables windowed modeset_window_icon(icon:PathLike,bytes_per_pixel:int=4)# lets you set your own icon for the window title. tested with png and .ico with alpha
麻省理工学院执照
版权所有(c)2020 Pierre Geier
兹免费准许任何人取得复制品 本软件及其相关文档文件(“软件”)的 在软件中不受限制,包括但不限于权利 使用、复制、修改、合并、发布、分发、再授权和/或出售 软件的副本,并允许软件的使用者 根据以下条件提供:
上述版权声明和本许可声明应包括在所有 软件的副本或大部分。在
本软件按“原样”提供,无任何形式的保证,明示或 包括但不限于适销性保证, 特定目的的适用性和非侵犯性。在任何情况下 作者或版权持有人应对任何索赔、损害赔偿或其他 无论是在合同诉讼、侵权诉讼或其他诉讼中,由以下原因引起的责任:, 与软件、软件的使用或其他交易有关 软件。在
- 项目
标签: