Git Product home page Git Product logo

spacetimemultiplayerdemo's Introduction

Spacetime Multiplayer Game Demo

Welcome to SpacetimeMultiplayerGameDemo, a basic game project developed in Unity that showcases the power and efficiency of SpacetimeDB in creating a multiplayer game. While this project is still under development, all the code and assets are open-source and free for anyone to use in their own projects.

Features

  • Login: The user's private key is stored in Unity PlayerPrefs system the first time they play and is used to authenticate in future sessions.
  • Chat: Open Chat window with ENTER key. Basic chat message system.
  • Overhead Names: Player names are displayed over their head.
  • Movement: Basic player movement system.
  • Resource Node Spawning: Server spawns resource nodes on the map.
  • Harvesting: Players can harvest resource nodes.
  • Inventory: Open Inventory with TAB. Harvested resources go to inventory.
  • Jumping: Players can jump with SPACE.

Getting Started

  1. Install SpacetimDB and start SpacetimeDB local instance. View the SpacetimeDB getting started guide for detailed instructions.
  2. Navigate to the Server folder. Publish the Spacetime demo module to your local instance.

spacetime publish spacetimedemo

  1. Open the project in Unity.
  2. Open the Scene named Main in the Scenes folder.
  3. Click on the GameManager object in the Scene and double check the connection settings in the Inspector. They should be:

Module Address: spacetimedemo

Host Name: localhost:3000

SSL Enabled: false

  1. Hit the Play button to play in the editor.

spacetimemultiplayerdemo's People

Contributors

dbrinkmann-citadel avatar dbrinkmanncw avatar jdetter avatar cloutiertyler avatar thisistehks avatar

Stargazers

Kyle L. Davis avatar Dan avatar  avatar Halu avatar neotame c avatar  avatar Kerem Kazan avatar

Watchers

 avatar Lisandro Crespo avatar Alessandro Asoni avatar Phoebe Goldman avatar Nick Carver avatar  avatar Noa avatar

Forkers

duko

spacetimemultiplayerdemo's Issues

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.