Ninja Game is coded in Python and involves controlling the ninja by having him jump from wall to wall. When the user clicks, the ninja will jump in the direction of the click. The user can click a second time to change the ninja's direction and attack type midair. The ninja's first jump will include a sword attack, and his midair direction change will include a punching attack. The game will have targets that require different attacks to hit. The goal will be to get every target that appears. If you hit a target with the incorrect attack type or you let a target time out, you die!
Download and install Python 2.7 (https://www.python.org/downloads/)
Download and install pygame and pygame documentation on OpenSUSE. Run the following commands in your terminal:
sudo zypper install python-pygame
sudo zypper install python-pygame-doc
Fork the cs360f14/NinjaGame repository to your personal GitHub account.
Clone your personal copy of NinjaGame to your computer, replacing USERNAME with your GitHub user name:
git clone git@github.com:USERNAME/NinjaGame.git
To run the game, type python2 NinjaGame.py
in the terminal.
To run unit tests, type python2 -m unittest [Unit Test Module Name]
in the terminal. (For example, python2 -m unittest CharacterUnitTests
)
Pygame (1.9.1)
If you wish to contribute to the project, go for it!
If you wish to file a bug report, please open a GitHub Issue marked as a bug. Here are the things you should include:
If you wish to fix a bug, choose from the list of GitHub Issues marked as bugs, assign yourself, fix it, and follow instructions for making a pull request.
If you wish to add a new feature, these are the steps you should take:
Choose from the list of additional features we have listed or imagine your own!
If you choose from our list of features, look up the enhancement in GitHub Issues. There you should find a detailed description of what we envision that feature being. Assign yourself that issue to show that it is claimed. If you still have questions, email us at cs.ninja.game@gmail.com.
If you imagine your own new feature, email us at cs.ninja.game@gmail.com to get permission to go forward. In this email provide: a clear description of the feature you would like to add, why this feature would improve the game, and an overview of your intended design.
If your feature adds any new media (such as new images or sounds), make sure they are under compatible licenses.
List of additional features we would like:
Once you have made changes (by either fixing a bug or adding a feature), create a pull request. For your pull request to be merged, follow these guidelines:
If you follow all of these guidelines, you will be a successful contributor to our project!
Our main goal with this project is to create a fun open source game that we and others can use and contribute to. Things we would especially like to see in the future:
If you have any questions, email us at cs.ninja.game@gmail.com or comment on the relevant issue or pull request.
This code has been tested on a OpenSUSE 13.1 64 bit Operating System.
At this point, all documentation is in the code.
This software is under the GNU General Public License (GPL)
All images in this game are licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0): http://creativecommons.org/licenses/by-nc/4.0/