lipten / skulpt_pygame_zero Goto Github PK
View Code? Open in Web Editor NEWThis module provides most of the functions of pygame-zero for skulpt
This module provides most of the functions of pygame-zero for skulpt
我去掉go模块感觉也能正常运行~
推广Skulpt。
我们一起开发
我编写了一个python库Litchi,它的最新版已支持Skulpt。
我将会把skulpt_pygame_zero加入其中。并提供更好的开发Skulpt扩展库的方法,这样可以使得只使用python编写单机、在线游戏
Litchi自动处理了服务器与客户端的数据传递
希望互相帮助
求问目前有pgzhelper的skulpt实现吗😭编写一个项目需要用到~~
https://blog.xiiigame.com/2021-01-29-PygameZero%E5%8A%A9%E6%89%8B/
作者辛苦了!很优秀的模块库👍🏻👏🏻
你好!
我在运行测试用例animate.py的时候,发现后台显示如下报错信息:
`from pgzrun import *
alien = Actor('https://static.lipten.link/blogs/pig1.png')
alien.draw()
def on_finished():
print("finished")
animate(alien, pos=(WIDTH/2, HEIGHT/2), duration=1, tween="accelerate", on_finished=on_finished)
go()`
ExternalError: TypeError: Cannot read property 'on_finished' of undefined on line 7
看起来似乎是animate()的on_finished参数设置出现了问题😰不知道该如何解决~
程序运行后,调用canvas.toDataURL导出的是黑色空白图片
可以把pgzrun命名为pygame吗
pyskulpt差不多好了
欢迎测试
https://github.com/streetartist/pyskulpt/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.