Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pythonarcade/asteroids
Demo asteroids game showing shader examples
https://github.com/pythonarcade/asteroids
Last synced: 14 days ago
JSON representation
Demo asteroids game showing shader examples
- Host: GitHub
- URL: https://github.com/pythonarcade/asteroids
- Owner: pythonarcade
- Created: 2021-07-23T16:56:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-01T15:32:42.000Z (over 3 years ago)
- Last Synced: 2024-11-06T01:12:02.105Z (2 months ago)
- Language: Python
- Size: 341 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Asteroids Smasher
=================.. image:: screenshot.png
:width: 50%An asteroids clone made with the `Arcade library `_.
This example is designed to show off using shaders for visual effects.
.. list-table:: Project Files
:widths: 25 75
:header-rows: 1* - File
- Description
* - `__main__.py `_
- Bootstrap method that loads the fonts and starts the game.
* - `asteroid_sprite.py `_
- Sprite that represents an asteroid.
* - `bullet.py `_
- Base class for all bullets/lasers shot by the players.
* - `constants.py `_
- Holding place for all constants used in the program.
* - `explosion.glsl `_
- GLSL code used to display explosions.
* - `explosion.py `_
- Python code used to position and render the GLSL explosion code.
* - `game_view.py `_
- This is the main view that holds the game logic. If you are looking for the 'guts'
of the game, this is it. If you aren't familiar with using "views" in Arcade, see the
`View Tutorial `_.
* - `glow_ball.glsl `_
- GLSL code used to display a glowy-ball bullet.
* - `glow_ball.py `_
- Python code used to position and render the GLSL bullet code.
* - `glow_image_sprite.py `_
- Python code used to position and render the GLSL bullet code.
* - `glow_line.glsl `_
- GLSL code used to display a glowy-line laser/bullet.
* - `glow_line.py `_
- Python code used to position and render the GLSL bullet code.
* - ship_sprite.py
- Space ship sprite to represent the player.
* - `start_view.py `_
- The starting screen that shows the instructions and allows the user to
select number of players.
* - `window.py `_
- A subclass of Window that also tracks the joysticks that are plugged in.