Created to fork to https://gitlab.com/keybot/fabaos-fishgame
"Fish Game" for Godot is a 2-4 player online game built in the Godot game engine, created as a demonstration of Nakama, an open-source scalable game server.
You can download playable builds for Windows, Linux and MacOS from the Releases page.
"Fish Game" demonstrates the following Nakama features:
The game design is heavily inspired by Duck Game.
- D-PAD or LEFT ANALOG STICK = move your fish
- A (XBox) or Cross (PS) = jump
- Y (XBox) or Triangle (PS) = pickup/throw weapon
- X (XBox) or Square (PS) = use weapon
- B (Xbox) or Circle (PS) = blub
- W, A, S, D = move your fish
- C = pickup/throw weapon
- V = use weapon
- E = blub
Same as the "Playing Online" controls above.
Action | Player 1 | Player 2 |
---|---|---|
move your fish | W, A, S, D | Arrow keys |
pickup/throw weapon | C | L |
use weapon | V | ; |
blub | E | P |
You'll need:
- Godot 3.2.3 or later.
- A Nakama server (version 2.15.0 or later) to connect to.
The easiest way to setup a Nakama server locally for testing/learning purposes is via Docker, and in fact, there is a docker-compose.yml
included in the source code of "Fish Game".
So, if you have Docker Compose installed on your system, all you need to do is navigate to the directory where you put the "Fish Game" source code and run this command:
docker-compose up -d
- Download the source code to your computer.
- Open Godot and "Import" the project.
- (Optional) Edit the autoload/Online.gd file and replace the variables at the top with the right values for your Nakama server. If you're running a Nakama server locally with the default settings, then you shouldn't need to change anything.
- Press F5 or click the play button in the upper-right corner to start the game.
If you didn't use the docker-compose.yml
included with "Fish Game", then the "Leaderboard" won't work until you first create it on your server.
To do that, copy the nakama/data/modules/fish_game.lua
file to the modules/
directory where your Nakama server keeps its data, and then restart your Nakama server.
Note: The game will play fine without the leaderboard.
This project is licensed under the Apache 2.0 License, with the following exceptions:
- The font (in assets/fonts/) and a handful of art assets (in assets/kenney-platform-deluxe/) originate from CC0 sources (see CREDITS-CC0.txt).
- The remaining art, music and sound assets are licensed under the CC BY-NC License.
- The Snopek State Machine included in addons/snopek-state-machine/ is licensed under the MIT License.
- Most of the UI code (included in main/) and some other auxilary code files originate from the WebRTC and Nakama addon for Godot, which is licensed under the MIT License.