polymarsdev / flappuccino Goto Github PK
View Code? Open in Web Editor NEWA Pygame game made in 48 hours
A Pygame game made in 48 hours
Hi, I'm running GNU/LInux Ubuntu 20.04.2 LTS with the KDE Plasma Desktop.
I ran from source and installed pygame. But when I run Flappuccino, this error comes up (full log output):
jeremystartm@StarPC:~/Flappuccino$ python3 main.py
pygame 2.0.1 (SDL 2.0.14, Python 3.8.5)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "main.py", line 4, in
from .player import Player
ImportError: attempted relative import with no known parent package
Info: Bold = Command | Italic = Command output
pygame 2.0.1 (SDL 2.0.12, Python 3.9.7)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "/storage/emulated/0/main.py", line 9, in
ImportError: attempted relative import with no known parent package
fixed
Does it seem to me, or did I break something? ๐
Screenshot (i played on phone) => https://ibb.co/kJ966cV
๐
this is my file from the chromebook if you use it on on said device it doesn't work if you have chromebook you can try it for your self
I removed the "." before the imports and now this happens:
$ python3 main.py
pygame 2.0.0 (SDL 2.0.12, python 3.8.5)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "main.py", line 277, in <module>
main()
File "main.py", line 161, in main
o.setSprite(((player.position.y/50) % 100) / 100)
File "/home/shokifrend77/Downloads/flappuchino/Flappuccino-main/background.py", line 9, in setSprite
color = colorsys.hsv_to_rgb(tint,1,1)
NameError: name 'colorsys' is not defined
Thanks in advance!
info:
pygame 2.0.1 (SDL 2.0.14, Python 3.8.6)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "main.py", line 4, in
from .player import Player
ImportError: attempted relative import with no known parent package
can't run
Uhh, in the README.md the link which leads to the game's itch.io page goes to cursor-custodian. Can you please fix this, I would have pull requested, if I knew the game's itch.io link.
Thanks
I imported the scripts and data and made a folder for them, python and pygame were already installed in VS code so i ran it. The title screen shows up and when i click start it crashes. What should i do?
video:
https://drive.google.com/file/d/16Amg9zVaFuJXMba4uXepEmJXiTfqQjgO/view?usp=sharing
when i tried to execute the main.py, it says
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "D:\Coding Stuff\Python\Flappuccino-main\main.py", line 4, in <module>
from .player import Player
ImportError: attempted relative import with no known parent package```
When I run it, the terminal says Import Error.
Here's the total error:
Traceback (most recent call last):
File "c:\Users\dacpu\OneDrive\Desktop\Flappuccino\main.py", line 5, in
from .player import Player
ImportError: attempted relative import with no known parent package
I have every file, and it is not just this import, it is all of them.
uk
The link to the itch.io sends you to https://polymars.itch.io/cursor-custodian instead of https://polymars.itch.io/flappuccino
Traceback (most recent call last):
File "C:\Users\Anthony admintrator\Desktop\Flappuccino-main\Flappuccino-main\main.py", line 277, in
main()
File "C:\Users\Anthony admintrator\Desktop\Flappuccino-main\Flappuccino-main\main.py", line 161, in main
o.setSprite(((player.position.y/50) % 100) / 100)
File "C:\Users\Anthony admintrator\Desktop\Flappuccino-main\Flappuccino-main\background.py", line 9, in setSprite
color = colorsys.hsv_to_rgb(tint,1,1)
NameError: name 'colorsys' is not defined
._.
Hey, so when I run the project, I receive this error
PS C:\Users\orlan\OneDrive\Desktop\Flappuccino-main> & C:/Users/orlan/AppData/Local/Programs/Python/Python310/python.exe c:/Users/orlan/OneDrive/Desktop/Flappuccino-main/main.py pygame 2.1.2 (SDL 2.0.18, Python 3.10.5) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "c:\Users\orlan\OneDrive\Desktop\Flappuccino-main\main.py", line 277, in <module> main() File "c:\Users\orlan\OneDrive\Desktop\Flappuccino-main\main.py", line 17, in main pygame.display.set_icon(bean().sprite) UnboundLocalError: local variable 'bean' referenced before assignment
so i wanted to merge my fork with this branch and couldnt make a pull request so i am here making a ticket. so i basically improved FPS and made the code cleaner with more comments were i understood what was going on
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.