This is a game where you fly a spaceship and avoid asteroids.
Install Python 3.6+ with pip and then install the dependencies with:
pip install -r requirements.txtTo compile the source into a hex file use the compile.sh script.
./compile.shThe output file is located at out/micropython.hex. Then copy this file onto your micro:bit.
If you have a micro:bit pluged into your computer, you can directly upload the code with the following command:
./compile.sh uploadThere is also a watch option. If you want to automaticly compile and even deploy when saving the python file.
./compile.sh watch uploadThere are a few additional requirements for the unittests which have to be met, so install the requirements. And download the stub file with the following commands:
pip install -r test/requirements_additional_for_testing.txt
./test/setup.shThen to run the tests just type use the following command in the project directory:
pytest- New asteroid creation routine based on level.
- Endless Loop while crashing into astroids on a high level.
- (Sometimes the minifaction is broken, because it uses a variable twice inside the same function. Also don't use one char long variables, becuase it sometimes chooses them as replecement variable names. Maybe add a test funcation which checks the minified before a Compilation.) => cannot repreduce this currently. Only happens with variable with the same length as the obfuscation.
- Fix the syntax highlighting in the unittests.
- Add a launch.json to upload the code with a button press.
This project is licensed under the MIT License - see the LICENSE file for details
