Giter Club home page Giter Club logo

svelto.miniexamples's Introduction

Svelto.ECS.MiniExamples

New Mini Examples for Svelto.ECS and Svelto.Tasks

Warning: these examples may use using unofficial versions of Svelto that you won't find on the main repository until officially released.

Example 1: Doofuses Must Eat (Pure ECS)

Image

Object-less pure ECS example that shows the basics of Svelto.ECS and Svelto.Tasks.

Article:

http://www.sebaslab.com/svelto-mini-examples-doofuses-must-eat/

  • Goal of this example: show the simplest use of Svelto 2.8 (beta state), intoduce to the concept of entity descriptors, entity structs and groups.

  • Secondary goal: show integration with UnityECS, show the use of Svelto.Tasks 2.0 (alpha state), show integration with Burst

  • Iteration 1: Example1-DoofusesMustEat (done):

    • Integration with UnityECS for rendering
    • Move the camera with arrows and mouse, left button to drop food
  • Iteration 2: Example1B-DoofusesMustEatBurst (done):

    • Integration with Burst for better performance
    • Move the camera with arrows and mouse, left button to drop 100 random food only once
  • Iteration 3 (to do):

    • Enable Svelto.Tasks multithreading for better performance
  • Iteration 4 (to do):

    • Something I will say later

Example 2: The classic Survival demo (Hybrid ECS)

Image

Basic integration with Unity GameObjects and Monobehaviours. Uses Svelto ECS 2.8 and Svelto Tasks 1.5

  • Goal of this example: show the integration with OOP platforms (Unity in this case) throught the use of Entity View Structs and implementors.

Main Article: http://www.sebaslab.com/learning-svelto-ecs-by-example-the-survival-example/

I used the Survival Shooter Unity Demo to show how an ECS framework could work inside Unity. I am not sure about the license of this demo, so use it only for learning purposes.

Most of the source code has been rewritten to work with Svelto.ECS framework. The Survival Demo is tested with the latest version of Unity, so I cannot guarantee that it always works, but it should work with all the versions from 5.3 and above.

Example 3: GUI and Service Layer (Hybrid ECS for GUI)

Integration with Unity UI and Svelto entities.

Goal of this example: show how EntityStreams work to publish data changes. Show how to enable databinding with ExclusiveGroups. Show how to setup a data oriented GUI with nested prefabs. Shows a basic usage of the Services Layer.

Main article: http://www.sebaslab.com/svelto-miniexamples-gui-and-services-layer/

Example 4: Multiple Contexts and more serious alternative to the implementors (ToDO)

Example 5: Vanilla

Basic Platform Agnostic Svelto example

  • Goal: Shows the very foundation of a simple entity and engine logic, without any Unity or other platform dependency (pure .net). This example won't cover all the aspects of SECS, but only the basics.

svelto.miniexamples's People

Contributors

sebas77 avatar

Watchers

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