Skip to content

"Fish Game" for Godot is a 2-4 player online multiplayer game created as a demo of Nakama; an open-source scalable game server, using the Godot game engine.

License

Notifications You must be signed in to change notification settings

lockbot/fishgame-godot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Created to fork to https://gitlab.com/keybot/fabaos-fishgame

"Fish Game" for Godot

"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.

Animated GIF showing gameplay

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.

Controls

Playing Online

Gamepad:

  • 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

Keyboard:

  • W, A, S, D = move your fish
  • C = pickup/throw weapon
  • V = use weapon
  • E = blub

Playing Locally

Gamepad:

Same as the "Playing Online" controls above.

Keyboard:

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

Playing the game from source

Dependencies

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

Running the game from source

  1. Download the source code to your computer.
  2. Open Godot and "Import" the project.
  3. (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.
  4. Press F5 or click the play button in the upper-right corner to start the game.

Setting up the leaderboard

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.

License

This project is licensed under the Apache 2.0 License, with the following exceptions:

About

"Fish Game" for Godot is a 2-4 player online multiplayer game created as a demo of Nakama; an open-source scalable game server, using the Godot game engine.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • GDScript 99.8%
  • Other 0.2%