GithubHelp home page GithubHelp logo

wildgenie / unity-sampleproject Goto Github PK

View Code? Open in Web Editor NEW

This project forked from heroiclabs/unity-sampleproject

0.0 2.0 0.0 38.58 MB

A sample game called Jolly Roger for Unity engine built with Nakama server.

Home Page: https://heroiclabs.com

License: Apache License 2.0

C# 58.83% Objective-C 35.25% Objective-C++ 2.66% Lua 2.56% ShaderLab 0.70%

unity-sampleproject's Introduction

Unity Demo Project

A sample game called Jolly Roger for Unity engine built with Nakama server.

Nakama is an open-source server designed to power modern games and apps. Features include user accounts, chat, social, matchmaker, realtime multiplayer, and much more.

This game uses most features of the game server with our official Unity client and is inspired by the popular Clash Royale mobile game. The code is offered as a learning resource for developers to prototype, learn Nakama, and build upon with their own games.

Full server documentation is online - https://heroiclabs.com/docs

Getting Started

You'll need to setup Unity engine and install Docker engine with our quickstart guide for the fastest development experience.

We use docker-compose to make it simple for the database server and game server to be loaded and started together and updates can be easily downloaded from Docker Hub to upgrade.

To start the game server once Docker is setup navigate to the "ServerModules" folder and run:

docker-compose -f ./docker-compose-postgres.yml up

Some other useful docker-compose commands are:

  • "down" - will stop all running containers defined by the compose file.
  • "down -v" - same as above but will also purge the volumes which store data for the containers.

NOTE: You may need to adjust the folder path within the compose file on Windows. For example:

...
    nakama:
    ...
        volumes:
        - /c/Users/<username>/nakama/data:/nakama/data	# <- Edit

Run Game

The Jolly Roger game is a Unity project that can be opened in Unity version 2018.1 or newer. All project code is within the "JollyRoger" folder.

  1. Open the "MainScene.unity" file in "Assets/DemoGame/Scenes".

    If you're on Windows and use Docker Toolbox you must edit the NakamaSessionManager to set the IP address in the code. It is required because Docker Toolbox does not forward ports by default yet.

  2. Run the game within the editor or select File > Build and run.

  3. Try out any of the other scenes to experiment with them separately from the main game scene.

Contribute

The collaboration on this code is managed as GitHub issues and pull requests are welcome. If you're interested to enhance the code please open an issue to discuss the changes or drop in and discuss it in the community forum.

License

This project source code and documentation is licensed under the Apache-2 License. All images, graphics, and other non-code resources are licensed under CC BY-NC-ND. Please reach out on a GitHub issue if you have any questions.

All 3rd-party assets and libraries used in this project retain all rights under their respective licenses. See the ""

unity-sampleproject's People

Contributors

novabyte avatar humbertodias avatar mofirouz avatar

Watchers

James Cloos avatar  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.