All Projects → heroiclabs → Nakama Godot Demo

heroiclabs / Nakama Godot Demo

Licence: other
A demo project with Godot engine and Nakama server.

Projects that are alternatives of or similar to Nakama Godot Demo

Godot3 procgen demos
Exploring Procedural Generation algorithms in Godot
Stars: ✭ 85 (-50.29%)
Mutual labels:  gamedev, godot-engine, tutorial
Godot Kickstarter 2019
Create your Own Games with Godot, the Free Game Engine: sources from the January Kickstarter project from GDQuest
Stars: ✭ 194 (+13.45%)
Mutual labels:  gamedev, godot-engine, tutorial
Godot Open Rpg
Learn to create turn-based combat with this Open Source RPG demo ⚔
Stars: ✭ 855 (+400%)
Mutual labels:  gamedev, godot-engine
Space rocks
Asteroids-like game made with Godot Engine 3.0.
Stars: ✭ 20 (-88.3%)
Mutual labels:  gamedev, godot-engine
Godot Demos
Dozens of free and open source demos for the Godot game engine
Stars: ✭ 1,231 (+619.88%)
Mutual labels:  godot-engine, tutorial
MySQL Module
MySQL connector to Godot Engine.
Stars: ✭ 30 (-82.46%)
Mutual labels:  gamedev, godot-engine
godot-gameshell
Godot export templates and instructions for the GameShell portable game console and other single-board computers
Stars: ✭ 34 (-80.12%)
Mutual labels:  gamedev, godot-engine
Bytepath
A replayable arcade shooter with a focus on build theorycrafting made using Lua and LÖVE.
Stars: ✭ 1,119 (+554.39%)
Mutual labels:  gamedev, tutorial
Mdframework
A multiplayer C# game framework for Godot 3.2 Mono.
Stars: ✭ 34 (-80.12%)
Mutual labels:  gamedev, godot-engine
Godot tutorials
Code and examples for KidsCanCode Godot Tutorials.
Stars: ✭ 119 (-30.41%)
Mutual labels:  gamedev, tutorial
Godotrogueliketutorial
A guide to build a simple Roguelike game with Godot engine.
Stars: ✭ 117 (-31.58%)
Mutual labels:  godot-engine, tutorial
Gamedev4noobs
Olá, sejam bem-vindos ao repositório _gamedev4noobs_ do Estúdio Vaca Roxa. O propósito desse repositório, além de contribuir para o projeto 4noobs, é ensinar o básico do desenvolvimento de jogos para iniciantes. Apresentando boas práticas e insumos para criar games incríveis.
Stars: ✭ 122 (-28.65%)
Mutual labels:  gamedev, godot-engine
godot-shotgun-party
An evolving multiplayer project for Godot Engine 3.
Stars: ✭ 171 (+0%)
Mutual labels:  gamedev, godot-engine
Luascript
Lua language support for Godot Engine
Stars: ✭ 240 (+40.35%)
Mutual labels:  gamedev, godot-engine
Blog
gamedev blog
Stars: ✭ 3,076 (+1698.83%)
Mutual labels:  gamedev, tutorial
Love2d arkanoid tutorial
Tutorial on making a full-featured arkanoid (breakout)-type game with LÖVE framework.
Stars: ✭ 137 (-19.88%)
Mutual labels:  gamedev, tutorial
Godot Ink
Ink integration for Godot Engine.
Stars: ✭ 129 (-24.56%)
Mutual labels:  gamedev, godot-engine
Pixelorama
A free & open-source 2D sprite editor, made with the Godot Engine! Available on Windows, Linux, macOS and the Web!
Stars: ✭ 2,535 (+1382.46%)
Mutual labels:  gamedev, godot-engine
Switching To Contracting Uk
A step by step guide of how to start contracting in United Kingdom
Stars: ✭ 2,024 (+1083.63%)
Mutual labels:  tutorial
Gooi
LÖVE GUI Library
Stars: ✭ 168 (-1.75%)
Mutual labels:  gamedev

Nakama Godot Demo

Nakama Godot demo banner image

This demo shows how to use Nakama with the Nakama Godot client.

It showcases the following Nakama features:

  • Authentication, sessions, and disconnection.
  • Game storage.
  • Sockets and managing connections.
  • Real-time chat.
  • In-app notifications with popups.
  • Character color customization.
  • Platforming mechanics and synchronizing players. Multiple players can interact together.

It also shows good practices to design user interface and structure your Godot projects.

Learning Nakama

There are two Godot projects in this repository:

  1. In the godot/ directory, you have the complete demo.
  2. In the tutorial/ directory, there is a Godot project showing basic code examples to get you started. There, you will also find written notes for an upcoming series of video tutorials, with code snippets.

Screenshots

Here is a view of the game world, where players can chat, move around, interact with one-another, or change their color.

in-game screenshot

The character creation screen allows you to pick a color from a predefined color palette.

Character creation screen

Testing the project

To test the project, you need first to install the server and get it running, then run two instances of Godot.

To install and start the server:

  1. Install Docker.
  2. Open your terminal and navigate to the nakama/ directory.
  3. Run the command docker-compose -f docker-compose.yml up or run boot.bat in Windows.

Docker should automatically download, then install Nakama and CockroachDB for you before starting the local server. The server should emit the message "Startup done".

Then, to test the project in Godot, you need to open or run the project in the godot/ directory in two separate instances.

Setting up docker on Windows 10 Home and below)

  1. Install Docker Toolbox.

  2. Double-click on the Docker Quickstart Terminal shortcut created by the docker toolbox installer.

  3. Run the Command docker-machine ip to get your IP and save it for future use.

  4. Extra settings if not running project from C drive

    1. Create shared folder
    2. Edit in the docker-compose.yml change the volumes path under nakama services to

    "/Folder Name define in the VBox settings(step 4i)/path to docker-compose.yml file:/nakama/data"

    1. Run the Command "docker-machine restart"

Registering and logging in

To log into the game, you need first to register a dummy local account. To do so, on the initial game screen:

  1. Click on the "register" button.
  2. Enter any email and password.
    • The email doesn't need to exist, but it needs to be of the form [email protected]. For example, [email protected] would work.
    • The password needs to contain at least 8 characters.

Once you registered an account, you can log in, create a new character, and enter the game.

Using the Nakama admin area

Nakama's server provides a web admin interface to see, modify, or purge users and other game data. To access it:

  1. Start the Nakama server.
  2. Navigate to http://127.0.0.1:7351/ in your web browser.
    • Run docker-machine ip to get the IP if Windows 10 Home and below
  3. Log into the platform. The default admin user's login is admin and its password is password.

Licenses

This project is dual-licensed:

  • The source code is available under the Apache 2.0 license.
  • Art assets (images, audio files) are CC-By-SA 4.0. You should attribute them to Heroic Labs (https://heroiclabs.com/).
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].