Uploaded May 2026 | Updated September 2026, 2 weeks ago
This was a quick test with randomizing the colors of the playfield cars. I had rarely used on...goto statements in the past so I figured I'd experiment with that to simplify the color selection and it seems to work well. The next step for car placement generation is randomizing the locations. I will probably have 5 different x-coordinate placements for them but more y-coordinates to provide some variety.
I also tested some of the cart collision to see how it works out. I may have to tweak some of the targeting. When I switched to playfield cars vs sprites, I had to convert the coordinates, which I did not quite dial in so there are some instances where the carts get stuck on a point and just go back and forth not targeting a car.
I also tried a way to keep the carts from not occupying the same space by slowly pushing the carts up or down by simply increasing the momentum. This seems to work pretty well as I did not experience the carts performing erratically.
This was a quick test with randomizing the colors of the playfield cars. I had rarely used on...goto statements in the past so I figured I'd experiment with that to simplify the color selection and it seems to work well. The next step for car placement generation is randomizing the locations. I will probably have 5 different x-coordinate placements for them but more y-coordinates to provide some variety.
I also tested some of the cart collision to see how it works out. I may have to tweak some of the targeting. When I switched to playfield cars vs sprites, I had to convert the coordinates, which I did not quite dial in so there are some instances where the carts get stuck on a point and just go back and forth not targeting a car.
I also tried a way to keep the carts from not occupying the same space by slowly pushing the carts up or down by simply increasing the momentum. This seems to work pretty well as I did not experience the carts performing erratically.










