marblexu / pythonangrybirds Goto Github PK
View Code? Open in Web Editor NEWa simple implementation of angrybirds using pygame and pymunk
a simple implementation of angrybirds using pygame and pymunk
❯ angry-birds
<frozen importlib._bootstrap>:241: RuntimeWarning: Your system is avx2 capable but pygame was not built with support for it. The performance of some of your blits could be adversely affected. Consider enabling compile time detection with environment variables like PYGAME_DETECT_AVX2=1 if you are compiling without cross compilation.
pygame 2.5.2 (SDL 2.30.1, Python 3.11.8)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "/usr/bin/angry-birds", line 5, in <module>
from angry_birds.__main__ import main
File "/usr/lib/python3.11/site-packages/angry_birds/__main__.py", line 6, in <module>
from .state import level
File "/usr/lib/python3.11/site-packages/angry_birds/state/level.py", line 9, in <module>
from ..component import button, physics, bird, pig, block
File "/usr/lib/python3.11/site-packages/angry_birds/component/physics.py", line 495, in <module>
my_phy = Physics()
^^^^^^^^^
File "/usr/lib/python3.11/site-packages/angry_birds/component/physics.py", line 30, in __init__
self.reset()
File "/usr/lib/python3.11/site-packages/angry_birds/component/physics.py", line 46, in reset
self.setup_lines()
File "/usr/lib/python3.11/site-packages/angry_birds/component/physics.py", line 59, in setup_lines
self.space.add(static_lines)
File "/usr/lib/python3.11/site-packages/pymunk/space.py", line 405, in add
raise Exception(f"Unsupported type {type(o)} of {o}.")
Exception: Unsupported type <class 'list'> of [<pymunk.shapes.Segment object at 0x77aa86b892d0>].
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.