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.
A multiplayer, co-op game made with Pygame, networking was made possible with Socket, assets credit goes to DaFluffyPotato.
- 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
- 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
Install modules by the command python -m pip install [module_name]
or python3 -m pip install [module_name]
.
- pygame
- PyInstaller
- pyperclip
- gtk (Linux only)
- PyQt4 (Linux only)
- 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
- Download the lastest release.
- 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 runmap_editor.exe
. - For the game, go to
executables/silly_ninja_win_x64
and runsilly_ninja.exe
.
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 thePort
field (must be greater than 1000). After that, choose a nickname and pressStart
, 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.
- 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.
- 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.
Special thanks to DaFluffyPotato for the gorgeous image assets and audio.
@Hikiyoshi - Programmer, Tester, Level Design.
@constance012 - Programmer, Networking, UI Design.