Code Monkey home page Code Monkey logo

codename.thebsgame's Introduction

Codename.R-r-g

Opensource game

Development Notes, Tips & Tricks

if you have any information on development you think is worth shareing with the rest of the team it goes here

Client local development enviroment

if you create a ".env.development.local" file in the client folder you can overide enviroment variables in ".env.development" but not affect the global enviroment files since local files are in .gitignore

codename.thebsgame's People

Contributors

martinskovsen avatar nhorndk avatar philipk avatar topswagcode avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

philipk nhorndk

codename.thebsgame's Issues

Game loop on the server

The game loop needs to run on the server and update the server state at a given interval.
Each run of the game logic loop is referred to as a Tick.

  • Use an ECS to run systems on each tick
  • Units have a 2d position, velocity and target destination.
  • Units has a unit type
  • Entities must have a globally unique id
  • Units can have a target destination, that is removed once they get to it.
  • A system for velocity -> position
  • A system for target destination -> velocity
  • A unit that stands still (velocity 0) must have its velocity removed.
  • Input from users must be stored, and applied on each tick
  • User input must not be blocked by the run of the tick
  • Getting current server state must return the newest server state.
  • If the tick is running, requests for game state can wait for the newest result (or return the old if possible).

Structure placement system - Place space station

Create MVP Universe enviroment

  • Star/Galaxy background (might be static as a start)
  • Snap points / Grid for placing structures

Placement of structure

  • Create service class for user inputs
  • Create system for placing structures (spacestation)
  • Create / Find placeholder 3d model of space station
  • Show Ghost image of structure before placement
  • Place Tempoary structure until validated by server and make it permenent when server replies with UnitCreated
  • Prevent placement of structures on allready ocupied areas

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.