This is a game I wrote for my Video Game Design and Programming class. It's a simple game, but it's pretty fun. It's called Gravity Ball and it's played with the Wiimote.
Your ball is placed in a maze that you must navigate through. You don't have direct control over the ball, only the gravity in the room. When the Wiimote is flat gravity is normal. When you roll the Wiimote to the left or right, the gravity shifts left or right respectively. Turning the Wiimote upside down, likewise, makes the gravity go upwards.
The goal is to make it to the end of the maze. You are timed, so you can try to make a speed run, and there are coins to collect, so you can take your time and collect all the coins. Which goal you go for is up to you. In the end you're scored with a percentage telling you how well you did.
Hitting the "X" buttons in the level opens doors. I do this once in the first level I played. Passing through a glowing colored zone changes the color of the border of the ball. It's hard to see on camera, but when I pass through that pink box in the first level the ball picked up a pink aura and could then pass through pink walls. I changed to a green outline about halfway through the level to proceed past the green wall. There is also glowing lava that will kill you if you collide with it.
The game was programmed using WiimoteLib, a free C# library for interfacing with the Wiimote. I did not use XNA for this game as it did not have the kind of drawing functions I needed to make the polygons or arbitrary shapes easily. The music playing in the background of the game is "One Last Hope", a song by Jesse Valentine that I got from the Newgrounds Audio Portal.
pretty interesting idea. It's probably a good idea to have some sort of visual representation of what's going on, though... Perhaps rotate the whole level to show the gravity shifting, or even just a particle effect or something showing which way the ball is being pulled.
whothehellisthat 3 years ago
There is a dial in the bottom right corner that shows the vector of gravity, and I'm thinking about adding a "tail" to the ball just to make it a little more clear how it moves.
iosysred 3 years ago