Over the past couple of weeks, through trial and error, I have become more comfortable programming with Batari Basic and the Visual Batari Basic software. Some changes I have made boggled my mind and some corrections I made I still don't fully understand but I have noticed that with each passing day I am able to rectify much of the past day's mistakes and achieve a goal similar to what is in my mind.
With that being said, I have made some progress and have an update to my game!
Since the last update, I have added a couple of things.
I had finally figured out how to enter in variables and so I have been able to correct the acceleration of the shopping carts. I also realized why the cart would sometimes exhibit erratic behavior - in creating code for a potential second player, I accidentally gave the first player some control. This in addition to my simplistic AI would give the shopping cart a huge speed boost. Now that that has been corrected, the game is kind of playable. The cart randomization still needs some tweaking but for the most part the cart can be captured.
I had also added a screen shake. I had originally added it for whenever the player gets hit by the car but for some reason it activated whenever the cart hit the car. I kind of liked it so I left it alone. I will probably change it once I take care of more important programming issues.
I had also added the basis for the power ups by utilizing the ball sprite and randomizing it's location every set amount of cart grabs. I kept the number low so I can witness it spawn but will eventually change it to a random range. Ideally I would love the power ups to appear as a different color from the background, possibly with it having different colors with each color changing different attributes but I am not sure how to implement such a thing or if it is at all possible.
I had also started playing around with the different stages of the game. To provide varied game play and added challenges, I was going to add a rainy and icy playfield. Essentially the background color would change to either blue or white, respectively. In the snowy stage I randomize the Missile1 sprite and plan to change the inertia of Bag Boy so that he may slide a bit. In the rainy stage the missile sprite has a height of 4 and goes from top to bottom. I also mirror the sprites so that there are additional carts on the playfield making it more challenging. I may try to implement wind as well but that is miles away.
In this latest change I had also played around with the title screen a bit. I am still trying to figure out how to use the title screen editor and want to eventually make a better title screen that allows you to select difficulty and number of players. While this can be achieved with the switches, I think it would be cooler if it was an onscreen menu.
I also fixed that whole player/car collision issue. It seemed that when I rearranged the order of the code for collision it seemed to fix the issue.
With that being said, I have made some progress and have an update to my game!
Since the last update, I have added a couple of things.
I had finally figured out how to enter in variables and so I have been able to correct the acceleration of the shopping carts. I also realized why the cart would sometimes exhibit erratic behavior - in creating code for a potential second player, I accidentally gave the first player some control. This in addition to my simplistic AI would give the shopping cart a huge speed boost. Now that that has been corrected, the game is kind of playable. The cart randomization still needs some tweaking but for the most part the cart can be captured.
I had also added a screen shake. I had originally added it for whenever the player gets hit by the car but for some reason it activated whenever the cart hit the car. I kind of liked it so I left it alone. I will probably change it once I take care of more important programming issues.
I had also added the basis for the power ups by utilizing the ball sprite and randomizing it's location every set amount of cart grabs. I kept the number low so I can witness it spawn but will eventually change it to a random range. Ideally I would love the power ups to appear as a different color from the background, possibly with it having different colors with each color changing different attributes but I am not sure how to implement such a thing or if it is at all possible.
I had also started playing around with the different stages of the game. To provide varied game play and added challenges, I was going to add a rainy and icy playfield. Essentially the background color would change to either blue or white, respectively. In the snowy stage I randomize the Missile1 sprite and plan to change the inertia of Bag Boy so that he may slide a bit. In the rainy stage the missile sprite has a height of 4 and goes from top to bottom. I also mirror the sprites so that there are additional carts on the playfield making it more challenging. I may try to implement wind as well but that is miles away.
In this latest change I had also played around with the title screen a bit. I am still trying to figure out how to use the title screen editor and want to eventually make a better title screen that allows you to select difficulty and number of players. While this can be achieved with the switches, I think it would be cooler if it was an onscreen menu.
I also fixed that whole player/car collision issue. It seemed that when I rearranged the order of the code for collision it seemed to fix the issue.