Meet Ejo, He's a Yoruba snake who eats only eba and fufu. Let's build him together.
The game currently consists of: - One Snake eating eba. - A scoreboard - Health bar: Essentially you'd have to eat yourself three times to die. But the bushes at the edge are poisonous so they drain all of Ejo's health. - Bonuses for eating a particular amount - Exciting animations for a 2D game. - A Pause menu - An About Menu The game was built on Python 2.78, but any latter version works. The required frameworks are Pygame (Python's game library), and Pyganim, (Pygame's animation framework). - Clone the repository, and run a 'pip install -r requirements.txt' to get the required modules installed on your OS. - Move all the images into the same folder as the main.py file. - Open the main.py file with any editor of your choosing and run the game.You could also create a virtualenv with Python 2.78, then install Pygame and Pyganim in the environment to be safe.
We've been looking for a proper soundtrack, which is ideally a fast-paced Fuji beat. If you have any, submit a pull request while re-working the code and adding sound if you know how to. If you don't submit a pull request with the link to the sound regardless. I'd like to have a storyline, which would ideally be an animation that plays when the user first plays the game. Send any ideas or write-ups to me through Twitter, or my e-mail. We'd find a way to incorporate the storyline into the game afterwards when we do the animation. For example, "There is farmine in Abeokuta, and Ejo goes to Ibadan to gather all the Eba and fufu to take it back to his hometown. He has to also get tomatoes and grind pepper on his way back. But the citizens are afraid and want to kill him so he has to pass through the gutter. Ejo -- The Yoruba Hero." I've been dwelling on the idea of a bonus level or stage, maybe there'd be a buffet of Eba and Amala and Ejo gets to eat not only for the village, but for himself. It'll be a chance for the player to replenish health and reduced Ejo's length to ease game difficulty. I just haven't gotten around to doing it yet.That's pretty much it. Let's help make Ejo. I'd update this readme as the need arises.
Would be nice to have this on the browser.- Setup your virtualenv using instructions from here.
- In that environment, run
pip install -r requirements.txt
- Start the game
python main.py
If you need to run in a container for some reason (and are using a MacOS), you can follow the final attempt here: https://opeonikute.dev/posts/running-pygame-in-a-docker-container-macos