-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and Release version 1.0 (18/05/2024).
- Update the README file. - Release version 1.0.
- Loading branch information
1 parent
c272619
commit 6fd583d
Showing
8 changed files
with
107 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,79 @@ | ||
# Silly_Ninja | ||
# SILLY NINJA - MULTIPLAYER CO-OP GAME | ||
|
||
## DESCRIPTION | ||
A multiplayer co-op game made with __Pygame__ and __Socket__, assets credit goes to _DaFluffyPotato_. | ||
You're a ninja on a land full of bad guys, but even worse, they're armed with guns. You have nothing but your own ninja spirit, can that be a weapon to deal with them? Or perharps, bring over some of your fellow ninjas could be a good option to consider. | ||
|
||
## PYTHON EXTERNAL MODULES NEEDED | ||
A _multiplayer_, _co-op_ game made with __Pygame__, networking was made possible with __Socket__, assets credit goes to _DaFluffyPotato_. | ||
|
||
## CONTROLS | ||
### Game: | ||
- A, Left Arrow: Move to the left | ||
- D, Right Arrow: Move to the right | ||
- Space, Up Arrow: Jump | ||
- L.Shift, R.Shift: Dash/Attack | ||
- ESC: Back out | ||
### Map Editor: | ||
- W, A, S, D or Arrow Keys: Pan the camera around | ||
- Left Click: Place tiles at the mouse position | ||
- Right Click: Delete tiles at the mouse position | ||
- G: Toggle snap to grid | ||
- Scroll Wheel: Circle tile groups | ||
- Shift + Scroll Wheel: Circle tile variant within current group | ||
- Ctrl + S: Save current map | ||
- Ctrl + R: Auto-format placed ruled tiles | ||
- ESC: Exit edit mode | ||
|
||
## REQUIRED EXTERNAL MODULES | ||
Install modules by the command `python -m pip install [module_name]` or `python3 -m pip install [module_name]`. | ||
- pygame | ||
- requests | ||
- PyInstaller | ||
- pyperclip | ||
- gtk (Linux only) | ||
- PyQt4 (Linux only) | ||
|
||
## Installation | ||
Run the following commands: | ||
- git clone https://github.com/constance012/Silly_Ninja.git | ||
- cd Silly_Ninja/‘Silly Ninja’ | ||
- Windows: | ||
python main_menu.py | ||
- Linux: | ||
python3 main_menu.py | ||
## INSTALLATION | ||
### From Source | ||
- Clone the repo with `git clone https://github.com/constance012/Silly_Ninja.git`. | ||
- Install all required modules from the above section. | ||
- Navigate to `Silly Ninja\assets\fonts` and install all required fonts. | ||
- Run these following commands: | ||
``` | ||
cd Silly_Ninja/‘Silly Ninja’ | ||
For Windows: python silly_ninja.py | ||
For Linux: python3 silly_ninja.py | ||
``` | ||
### From Executables (Windows only for now) | ||
- Download the [___lastest release___](https://github.com/constance012/Silly_Ninja/releases). | ||
- Extract the content. | ||
- Navigate to the `fonts` folder and install all required fonts. | ||
- If you want to open the map editor, go to `executables/map_editor_win_x64` and run `map_editor.exe`. | ||
- For the game, go to `executables/silly_ninja_win_x64` and run `silly_ninja.exe`. | ||
|
||
## MULTIPLAYER INSTRUCTION | ||
Because the game only supports multiplayer through Local Area Network (LAN), there're couple of ways to establish connections and play with your friends: | ||
- You and your friends must be on the same network or Wifi, so that the host's IP can be discovered by other clients. | ||
- Using third party software that provide the ability to create your own virtual networks, such as _Hamachi_, _RadminVPN_ or _ZeroTier_,... just to name a few. Then you and your friend can join the same network and establish connection. This is actually the prefer method because y'all can connect to each other from anywhere on the globe, as long as your device remain in that said virtual network. | ||
|
||
After that, open the game and press the `Join` or `Host` button, depends on your situation: | ||
- For the host, enter local IP on your network to the `IP` field, and enter a port number to the `Port` field (must be greater than 1000). After that, choose a nickname and press `Start`, you'll be in the lobby if the server starts successfully. | ||
- For the client, enter the Host's IP and port to both fields. After that, pick a nickname and press `Join`, you'll be in the lobby if the connection establishes successfully. | ||
- After all clients have joined the lobby and ready, indicates by their slots borders turn green, the Host then can start the game by pressing the `Launch` button. | ||
|
||
## KNOWN ISSUES | ||
- Levels are currently be order by ID as an integer. So when you create a new level using the Map Editor, its ID must be an integer that goes after the last level in the `assets/maps` folder, otherwise the game will crashes on level transitions. | ||
- Levels are __NOT__ synced between machines on multiplayer mode, so if you make a new level or delete an existing one using the Map Editor. Then those new changes won't be shared across multiple devices in multiplayer mode, resulting in weird behaviors or even crashes during runtime. This issue has been acknowledged by us and will be fixed on future update. The current workaround is to have the host send his level files to all the clients before hosting a session. | ||
|
||
## Note | ||
- Before running main_menu.py, you must navigate to the 'fonts' folder to install all the fonts contained within it. | ||
- Ensure that all required libraries are installed to run the game. | ||
- For multiplayer gameplay, you need to install ZeroTier to establish connections. Here is the documentation for your reference on how to download and use zerotier. [link](https://docs.zerotier.com/start) | ||
## NOTES | ||
- Ensure that all required libraries, modules are installed if you want to compile and run the game directly from source. | ||
- For executables, only the fonts are required. | ||
|
||
## Contributions | ||
@Hikiyoshi - develop basegame | ||
## CREDITS | ||
Special thanks to [___DaFluffyPotato___](https://www.youtube.com/@DaFluffyPotato) for the gorgeous image assets and audio. | ||
|
||
@constance012 - develop networking | ||
## CONTRIBUTIONS | ||
@Hikiyoshi - Programmer, Tester, Level Design. | ||
@constance012 - Programmer, Networking, UI Design. | ||
|
||
## In game Captures | ||
 | ||
## IN GAME CAPTURES | ||
 | ||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters