GithubHelp home page GithubHelp logo

gamesserver / gophergameserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hewiefreeman/gophergameserver

0.0 2.0 0.0 1.72 MB

Gopher Game Server is a full featured, fast, and fully customizable game server written in Go. Comes with a client API for JavaScript and soon Java.

License: Apache License 2.0

Go 100.00%

gophergameserver's Introduction

Gopher Game Server

License GoDoc Go Report Card

Gopher Game Server is designed to provide all necessary tools to greatly ease developments of any type of online game (or any real-time app/chat). Gopher will handle all server-side synchronizing and data type conversions, therefore, client actions receiving, variable setting, messaging, and other functionalities are unproblematic.

Moreover, Gopher has a built-in, fully customizable SQL client authentication mechanism that creates and manages users' accounts for you. It even ties in a friending tool, so users can befriend and invite one another to groups, check each other's status, and more. All components are easily configurable and customizable for specific project's needs.

Main features:

  • Super easy and flexible APIs for server, database, and client coding
  • Chat, private messaging, and voice chat
  • Customizable client authentication (*)
  • Built-in Friending (*)
  • Supports multiple connections on the same User
  • Server saves state on shut-down and restores on reboot
  • Tools provided for administrating server while running

(*) A MySQL (or similar SQL) database is required for the authentication/friending feature, but is an optional (like most) feature that can be enabled or disabled to use your own implementations.

Client APIs

If you want to make a client API in an unsupported language and want to know where to start and/or have any questions, feel free to email me!

Installing

Gopher Game Server requires at least Go v1.8+ (and MySQL v5.7+ for the authentication and friending features).

First, install the dependencies:

go get github.com/gorilla/websocket
go get github.com/go-sql-driver/mysql
go get golang.org/x/crypto/bcrypt

Then install the server:

go get github.com/hewiefreeman/GopherGameServer

Usage

Table of Contents

  1. Getting Started
  2. Rooms
  3. Users
  4. Custom Client Actions
  5. Saving & Restoring
  6. SQL Features

Documentation

Package gopher - Main server package for startup and settings

Package rooms - Package for using the Room, RoomType, and RoomUser types

Package users - Package for using the User type

Package actions - Package for making custom client actions

Package database - Package for customizing your database

Contributions

Contributions are open and welcomed! Help is needed for everything from documentation, cleaning up code, performance enhancements, client APIs and more. Don't forget to show your support by starring or following the project!

If you want to make a client API in an unsupported language and want to know where to start and/or have any questions, feel free to email me!

Please read the following articles before submitting any contributions or filing an Issue:

gophergameserver's People

Contributors

hewiefreeman avatar oneoeigh avatar

Watchers

 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.