As a continuing series, we look at the newest features for the upcoming Ball Revamped 5 game!Ball Revamped 5 features something that the other 4 games did not: dynamic levels. If you have ever played a Ball Revamped game before, you will notice that the levels are very, very rectangular in shape. Because of the way Flash works, and with my growing knowledge of Flash mechanics, this has shaped the game very differently over the years. So in the easy terms possible, let me try to explain how things are changing. In Ball Revamped 2:Metaphysik, the levels were set up and the ball was thrown into the starting point. The ball would “hit” the wall if the invisible blue rectangle that surrounded the ball hit the invisible rectangles that surrounded each wall. What this meant was that no walls could be curved, diagonal, or non-rectangular, because that blue box would expand to fit the entire size of the rectangle! Therefore, you’ll see no curved walls in that game.That really was a terrible way to make this game. However, I was very limited in my coding ability, so I was unable to figure out another way to do it. Ball Revamped 3 fell into the same trap mostly, although I did rig up a “spinner” which had a strange code in it to detect diagonal rectangles… however, this was removed once I figured out a better method. In Ball Revamped 4, things changed a bit so that the walls were instead made up of tiny, tiny rectangles instead of giant bounding rectangles. This meant that tiny rectangles could be placed around curves, to detect hits on curves (a cheap yet effective method). However, this meant that there was a bit of give in the area of hit tests… you could go nearly halfway into most walls (or even through if you were smart) with enough speed.However, in Ball Revamped 5, instead of detecting in rectangles, a code has been set up to detect every single curve of the game. This means that any rounded corner, wall, or obstacle can reach perfect detection. I can draw any shape on the screen, and the ball will interact with it just fine! This should make the game a bit less cheap and much more reliable.More updates to come!
-
Jul23
Posted by John @ 5:12 am
