Inspiration

The eagerness to use code interactive applications/games and to create something that is visualy appealing represents my core inspiration. I havent been fortunate enough to be exposed to multiple coding languages and framework in university ( we have only been taught python in First Year Engineering), but, I wanted to build a "visual project" based on what I know.

I look upto Deltahacks as a learning opportunity for my First Year. And my target was to learn Object-Oriented Programming since twe are not taught OOP in First Year. After having done some research and skimmed through the pages of "Automate the Boring Stuff with Python" I decided to code a game.

I aimed to make something that was interactive and looked like a real game. Thus, I created a 3-Level interactive game which has three different challenges (the challenges are also coded differently) along with a stroyline and a theme.

What it does

The game follows the story of an 'amatuure Ninja' names 'Hattori'

Hattori has been training for years to become a Master Ninja . In order to be one, he has to complete a set of 3 challenges and prove his worth.

Hattori is set as the hero of the game. He can run, shoot, jump, attack and fly a parachute. The game gives the player instructions and guides on how to do all of these actions.

The first level makes Hattori face a group of rouge robots and he must cross the obstacles in order to get a sword. The second level makes him face Bandits whom he needs to attack. Defeating the bandits is rewarded with a parachute. The third level makes Hattori glide in air avoiding hurdles that come in the way. Completing all of these levels would elivate Hattori to the status of a Master Ninja.

How I built it

I build it using Python and utilized the pygame and csv library. The players were coded as objects (class) and so was the environment and the world around them.

Challenges we ran into

Keeping the code efficient and concised was the biggest challenge. Due to time constraints I haven't been able to beautify my code. But I tried adding comments as much as I could. Another challenge was to compile the different levels. Initially in order to code the second level and see the output I had to play the first level repeated amount of times. I changes this by coding the levels different from one another and just commented out the first level when I wanted to code the second level. I repeated this step for the third level as well

Accomplishments that we're proud of

The fact that the game works! The use of csv to construct the background (environment) is something I am very proud of. The fluidity of the game - initially I thought my game would be glitchy since I was using replit to make it. However, it seems to be running smooth. The incorporation of a storyline was also something I decided at the last moment.

What we learned

Learn as you do! I had a first hand experience with the above phrase. I think the hours I spent coding the game taught me more about computer programming than the semester I spent in school. I feel grateful for the opportunity

What's next for Master Ninja

I plan to add more levels and create this game into an app. I don't know where to start but eventually I would like to see this game on playstore.

Built With

Share this project:

Updates