GitHub - jarrydac/relativistic-space-invaders: 👾 Demonstration of relativistic effects using space invaders · GitHub
/" data-turbo-transient="true" />
Skip to content
Search or jump to...
Search code, repositories, users, issues, pull requests...
-->
Search
Clear
Search syntax tips
Provide feedback
--><br>We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Cancel
Submit feedback
Saved searches
Use saved searches to filter your results more quickly
-->
Name
Query
To see all available qualifiers, see our documentation.
Cancel
Create saved search
Sign in
/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up
Appearance settings
Resetting focus
You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
jarrydac
relativistic-space-invaders
Public
forked from leerob/space-invaders
Notifications<br>You must be signed in to change notification settings
Fork
Star
master
BranchesTags
Go to file
CodeOpen more actions menu
Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit
History<br>68 Commits<br>68 Commits
fonts
fonts
images
images
meshes
meshes
sounds
sounds
.gitignore
.gitignore
CREDITS
CREDITS
INSTALL.sh
INSTALL.sh
LICENSE
LICENSE
README.md
README.md
TODO.md
TODO.md
spaceinvaders.py
spaceinvaders.py
spaceinvaders_util.py
spaceinvaders_util.py
View all files
Repository files navigation
Relativistic Space Invaders
About
Relativistic Space Invaders uses the classic game Space Invaders to demonstrate the visual effect of special relativity using jarrydac/gl_relativity.
The relativistic effects are relative to an observer inside the ship. Enemy bullets are blue-shifted as they fly towards the player, and player bullets are red-shifted as they fly away from the player. Likewise the game objects experience length contraction, time dilation and doppler shift as the player flies back and forth.
This project is forked from leerob/space-invaders.
Watch the demo! https://youtu.be/1y6AyXHK3Ls
Space Invaders
Space Invaders is a two-dimensional fixed shooter game in which the player controls a ship with lasers by moving it horizontally across the bottom of the screen and firing at descending aliens. The aim is to defeat five rows of ten aliens that move horizontally back and forth across the screen as they advance towards the bottom of the screen. The player defeats an alien, and earns points, by shooting it with the laser cannon. As more aliens are defeated, the aliens' movement and the game's music both speed up.
The aliens attempt to destroy the ship by firing at it while they approach the bottom of the screen. If they reach the bottom, the alien invasion is successful and the game ends. A special "mystery ship" will occasionally move across the top of the screen and award bonus points if destroyed. The ship is partially protected by several stationary defense bunkers that are gradually destroyed by projectiles from the aliens and player.
Installation
Install the dependencies listed for gl_relativity. This project also depends on Pygame.
Run the INSTALL.sh script, which will download, build and install gl_relativity.
How To Play
If you have the correct dependencies installed, you can run the program in the command prompt / terminal.
python ./spaceinvaders.py
About
👾 Demonstration of relativistic effects using space invaders
leerob.io/blog/space-invaders-with-python
Resources
Readme
License
MIT license
Uh oh!
There was an error while loading. Please reload this page.
Activity
Stars
star
Watchers
watching
Forks
forks
Report repository
Releases
tags
Packages
Uh oh!
There was an error while loading. Please reload this page.
Contributors
Uh oh!
There was an error while loading. Please reload this page.
Languages
Python<br>100.0%
You can’t perform that action at this time.