Friday, February 8, 2019

Car Spawning!

I have finally moved onto car spawning!

While I had the one car at the top of the screen that always passed, I have started to experiment in getting other cars. 

First I tested utilizing other banks.  I wasn't quite sure how to put code in another bank and have it interact with the rest of the program.  It didn't really take long and wasn't quite difficult.  I have plenty of open space in a few banks so I was planning on trying to use each bank for a purpose to be determined at a future time.

Once I got the code I used the score to initiate a new gameplay element but had trouble figuring out how to do so.  I eventually learned how by defining the segments of the score and then having the game check when a value is met.

So now once the score reaches 100 a yellow truck appears.  I will of course have to determine how the second customer and cart interact with these new obstacles but the game is looking more and more like a game so I am excited!

No comments:

Post a Comment

Manatee Madness!

Stage work is coming along nicely, with the foundations laid down for the Rain, Snow, and Volcano stage. The Black Friday stage is proving ...