Uploaded March 2023 | Updated November 2026, 18 hours ago
I fixed the asteroid skipping 20 something pixels. It was a result of the screen wrap so I had to have it screen wrap at 4 pixels from the edge to have it work when moving at the highest speeds.
I also am testing momentum code for 3 simultaneous asteroids and all seems to be working well. The only problem I seem to be having is when I try to reposition the laser at a hit, which results in the asteroids either not speeding up quickly or registering every hit or they will seem to speed up and slow down and speed up and slow down. So far in this example the laser just has to share the same y coordinates. I have to check to see how the original deals with collision because all the videos I have seen make it look like the laser is just shooting in the direction and no direct hit is needed.
I will still play with the code a bit but so far it looks like this game will have a lot of moving parts which is awesome!
I fixed the asteroid skipping 20 something pixels. It was a result of the screen wrap so I had to have it screen wrap at 4 pixels from the edge to have it work when moving at the highest speeds.
I also am testing momentum code for 3 simultaneous asteroids and all seems to be working well. The only problem I seem to be having is when I try to reposition the laser at a hit, which results in the asteroids either not speeding up quickly or registering every hit or they will seem to speed up and slow down and speed up and slow down. So far in this example the laser just has to share the same y coordinates. I have to check to see how the original deals with collision because all the videos I have seen make it look like the laser is just shooting in the direction and no direct hit is needed.
I will still play with the code a bit but so far it looks like this game will have a lot of moving parts which is awesome!










