charlespikachu / games Goto Github PK
View Code? Open in Web Editor NEWGames: Create interesting games in pure python.
Home Page: http://cpgames.readthedocs.io/
License: Apache License 2.0
Games: Create interesting games in pure python.
Home Page: http://cpgames.readthedocs.io/
License: Apache License 2.0
I got the following error on python3.6.8 running game 2:
Traceback (most recent call last):
File "Game2.py", line 75, in
cocos.director.director.init(caption="Pikachu Go Go Go")
File "C:\Users\mik\AppData\Local\Programs\Python\Python36\lib\site-packages\cocos\director.py", line 356, in init
cocos.audio.initialize(audio_settings)
File "C:\Users\mik\AppData\Local\Programs\Python\Python36\lib\site-packages\cocos\audio_init_.py", line 58, in initialize
music.set_control('dummy')
I asked around and someone said the audio needs to be initialized and gave the docs: http://python.cocos2d.org/doc/api/cocos.director.html#cocos.director.Director.init .
I'm a beginner to cocos so I don't know how to fix this. Help please.
Hello? I am first time in git-hub, so if I rude tell me please... Anyway... I interested in game, and python. I want to contribute this project. I can translate annotate to English,Korean.
And We can exchange Idea... And I can add more contents to Readme.md. And I can also use Python.(I am studying now...very diligently)... so can I contribute this project? If you tell me what kind of help do you need, I will help you.
Environment (使用环境)
Question description (问题描述)
Screenshot (报错截图)
Advice (修复建议)
提示这个错误是什么鬼
pygame.error: Unable to open file './audios/add.wav'
(original)
if event.type == pygame.MOUSEBUTTONDOWN:
my_bullet = myaircraft.shot()
if my_bullet:
my_bullets_group.add(my_bullet)
(change)
#if event.type == pygame.MOUSEBUTTONDOWN:
my_bullet = myaircraft.shot()
if my_bullet:
my_bullets_group.add(my_bullet)
我从鼠标的点击中删除了子弹,从而改变了我的目标。 我想加快我的拍摄速度,但是我该怎么办呢?
I deleted the shot from the click of the mouse and changed it so that I could shoot while I was still. I want to speed up my shooting, but what code should I change?
AttributeError: module 'cocos' has no attribute 'layer'
要加一行import cocos.layer
估计是版本问题
Environment (使用环境)
Question description (问题描述)
Screenshot (报错截图)
Advice (修复建议)
After selling a tower,'money' changed from type int into type float.
And the program runs much more slowly on my old laptop,due to the CPU.
(Another plane game runs normally. )
卖塔以后钱从整型变成浮点型了
程序在我这个老笔记本上跑的很慢,因为CPU的关系.
(另一个自制的打飞机运行得就还可以)
When I try to open the.py file this error occurs
SyntaxError: Non-ASCII character '\xe5' in file Game23.py on line 4, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Thanks!
if english files are added, more people more learn~? I'm thinking about making an English file. Is it okay?
and game17 bgm very nice... and interesting i will use in my boring class...
THX
运行之后
Traceback (most recent call last):
File "Game1.py", line 11, in
import pygame
ModuleNotFoundError: No module named 'pygame'
Hi..
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "c:/Users/arvin/Desktop/Pacman/game.py", line 181, in
main(initialize())
File "c:/Users/arvin/Desktop/Pacman/game.py", line 164, in main
pygame.mixer.music.load(BGMPATH)
pygame.error: Failed loading libmpg123.dll: Attempt to access invalid address.
Traceback (most recent call last):
File "D:/PythonWorkspace/games/Games/cpgames/core/games/bunnybadger/bunnybadger.py", line 16, in
from ...utils import QuitGame
ValueError: attempted relative import beyond top-level package
一直报错找不到mixer这个module,我用的是Mac,需要额外安装mixer吗
Hello from the pygame community. https://www.pygame.org/contribute.html
/Users/yangzho2/Downloads/Games-master/Game12/Game12.py:283: RuntimeWarning: use mixer: No module named 'pygame.mixer'
(ModuleNotFoundError: No module named 'pygame.mixer')
pygame.mixer.init()
Traceback (most recent call last):
File "/Users/yangzho2/Downloads/Games-master/Game12/Game12.py", line 301, in
main()
File "/Users/yangzho2/Downloads/Games-master/Game12/Game12.py", line 283, in main
pygame.mixer.init()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pygame/init.py", line 100, in getattr
raise NotImplementedError(missing_msg)
NotImplementedError: mixer module not available (ModuleNotFoundError: No module named 'pygame.mixer')
Didn’t find the music’s credits anywhere… I had to google the lyrics ! lol
Thanks much for your open-source repository, it’s very fun and educational to look around !
i think it's good idea making web-site collecting games that you made.
it can be by using git-hub.
Hello,
I'm really bad at your game. That being said, I enjoyed it. Although it might be better to start off with one or two otters(?) first, and then gradually increase the amount of opponents as well as their speed of approach. Additionally, having an option to restart the game would be helpful. Regardless, it's pretty fun!
怎么通关啊???
Environment (使用环境)
Question description (问题描述)
Screenshot (报错截图)
Advice (修复建议)
您好,想请问一下Mac Os的环境可以运行这些程序吗?
line 11, in
from ...utils.misc import QuitGame
ImportError: attempted relative import with no known parent package
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.