Git Product home page Git Product logo

fishgame-godot's Introduction

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

fishgame-godot's People

Contributors

dsnopek avatar erlend-sh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.