wireframe-magazine / code-the-classics Goto Github PK
View Code? Open in Web Editor NEWAssets from Code the Classics
Assets from Code the Classics
What license are the assets in this repository provided under?
Hi
I have loaded the boing.py project into VS Code running on openSUSE Tumbleweed and a Python Virtaul Environment. When I run the code it works and I see the start screen (where you select 1 or 2 players). However if I move the cursor the game quits with the following error:
pgzero.loaders.UnsupportedFormat: 'Code-the-Classics-master/boing-master/sounds/down.ogg' is not in a supported audio format.
It appears to be:
Unknown format (not RIFF WAVE)
Pygame supports only uncompressed WAV files (PCM or ADPCM) and compressed
Ogg Vorbis files. Try re-encoding the sound file, for example using Audacity:
http://audacityteam.org/
Is this a problem local to my machine, or are the audio files really in a format incompatible with Pygame?
Thanks in advance,
Nick
Not sure if this is a code-the-classics thing or a pgzero or pygame issue; have reported to the former. pygame 1.9.6 and pgzero 1.2 play the theme.ogg files, but upgrading either ( which requires the other to upgrade as well) breaks the theme sound, either with an error, or it just doesn't play. Re-encoding it does nothing
Code the Classics repository downloaded by:
git clone https://github.com/Wireframe-Magazine/Code-the-Classics.git
Attempting to run:
python3.7 ./boing.py
gives:
File "boing.py", line 92
SyntaxError: Non-ASCII character '\xe2' in file boing.py on line 92
Also applies to line 120,206,247,251,277,330,331
This is due to whatever editor was used to edit the system creating an 'em' dash. Replacing the extended - with a minus sign...or just deleting it resolves the problem. All of these error characters are in comments, so trivial to resolve.
Python version 3.7.6 on an Ubuntu 18.04r2 system
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.