Git Product home page Git Product logo

yave's Introduction

yave

Yet Another Voxel Engine (written in TS).

Goals

  • Simple but powerful true ECS (Entity-Component-Systems) where components and systems are not coupled (unlike in Unity's current EC-system)
  • Has all the basics to start making your own game, but is modular so you can replace things with your own systems
  • Self-documenting code (along with generated docs) so you (almost) never have to meddle with the engine itself
  • Uses modern ES standards for cleaner and fully-typed code
  • Compiles to relatively new ES standards, I'm tired of supporting older browsers/versions
  • Not restricted to working with voxels (I know it's in the name, but I want to support both 2D & 3D)

Next TODO

  • Turn-based system
  • Upcoming ecs system rewrite:
    • inheritance support (can target base class in aspect and get any component that extends it).
    • better support for rendering/non-rendering system (perhaps give "tags" to components and allow for "Run()" with specific tag requirements).
    • assemblages?
      • (need to figure out how that would work, perhaps make them very basic where you give it a basic entity + components list, this returns a function to create the entity with parameter that allows overriding that behavior?)
    • Handle yaveEngine/engine property better (so don't have to check null every time)
      • Maybe RunOptions can pass it? (That might get messy)
    • Components.get should return T | null (it currently only returns T)

Longterm TODO

  • Standardize JSDoc, some have space before params, some have JSDoc typings, etc.
  • Add an internal unit system (like Unity where 1 unit can be 16px or 32px or however many you want based on texture)
  • Create docs

Research

Notes

  • RenderSystems should be used for anything that requires buttersmooth movement, camera, graphics, rendering, etc.
    • One edge case is making an object follow the mouse. This should be a render system since the mouse moves much faster than the "ticking speed," BUT any other kind of movement that requires a "set speed" (like player movement speed) should be handled by a normal system in order to get better/more predictable results and to prevent lag from impacting the behavior too much.

ECS

Game Loop

Inputs

yave's People

Contributors

pandawan avatar

Stargazers

Abhi Tumu 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.