Bubbleats is a retro game that runs on the Raspberry Pi. It was programmed using python with help of the pygame library. Bubbleats is a very fun game where you eat pills falling from the sky and can push your opponent to get at the pills. This game is designed in retro style and it has five levels. The game features eating sounds which I created myself.
Monofuel, the game developer got interested in my game and asked my permission to rewrite the code in Nim language and made the game much faster. Here is the link
The main mission of this project is to create a retro game console with Raspberry Pi. This console will play my own 2D game made in retro style with the pygame library for exactly two players. The goal of the game is to get more points than the other player by eating more pills.
My target audience are the players (10-35 years old) who would like to play games with a retro console. And who are interested in playing a fun game with Raspberry Pi.
Bubbleats has very simple and easy game. The player should eat more pills to gain more points but some pills can slow down or freeze the character like ice and blue ones. The pink pills make the character move faster and the yellow pills have no effect.
The player needs to eat more pink pills at start, and try to have the other player eat blue pills.
If the player is close to winning then eating blue pills becomes a good idea.
Player needs to push the other player, and stay close to them in order to have more map control.
Player needs to momentary give up map control in order to grab better pills.
I chose python + pygame to built Bubbleats game, because it was already installed and seemed like the way to go to make games for Raspberry Pi.
At first, I choose 320×240 resolution, because it seemed like a good retro resolution. The problem came from scaling. I just used simple full screen mode in pygame. But it does not seem to do full screen mode "well", just puts a small game in the middle of the screen. I found some code online on how to scale the game up to higher resolutions. The code worked but was very slow. Then I scaled the game to 640×480 resolution, hoping that I would not need to scale it. But it still was really slow. I spend a lot of time trying to figure out slow scaling issues. The game also ran really slow on my Mac, but it would run super fast when I would hook up an external monitor. Turns out that there is a bug in pygame that makes it really slow on high DPI screen that my mac laptop has. Most of the game slowness comes from one line: "pygame.display.flip()" I spent as much time trying to figure out the slowness and the scaling as I did on the actual game.
Even of the scaling issues and slowness, the game came out fun with many interesting strategies.