Relativistic Space Invaders

1 day ago 6
Relativistic Space Invaders

A few weeks ago I made a post here about my project jarrydac/gl_relativity, which simulates special relativistic effects using OpenGL.

I would like to share the alpha version of relativistic space invaders, which demonstrates some of the visual effects of special relativity using a familiar game. You download the game from the github repository: jarrydac/relativistic-space-invaders and try it.

The most obvious effect is the Doppler shift, but there are also interesting geometry effects due to length contraction, time dilation and the reduced speed of light. Please note, it this demo the ship is the observer. It is fun to adjust the speed of light constant at the top of spaceinvaders.py and see the effects change.

I've been intending to make a space invaders demo since starting the project. The idea came when I realised that the player and enemy bullets would be distinguished due to the Doppler shift, which you can see in the video.

submitted by /u/jarrydac to r/Physics
[link] [comments]
Read Entire Article