Skip to content

pythonarcade/asteroids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asteroids Smasher

image

An asteroids clone made with the Arcade library.

This example is designed to show off using shaders for visual effects.

Project Files
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.

About

Demo asteroids game showing shader examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published