Coder Social home page Coder Social logo

ecsrx.roguelike2d's Introduction

EcsRx Roguelike 2D

Roguelike 2D Example

This is a simple port of the unity roguelike 2d demo project, it has tried to stay as close to the original unity example logic as possible but in some cases due to the paradigm or to make things simpler there may be some slight changes.

To find out more about the EcsRx framework go to:

Running it?

  • Clone the Repo
  • Open in Unity
  • Open the Game/Scenes/game-scene scene
  • Press play

How it works?

So it uses the EcsRx project and at a high level splits everything into Components and Systems, with some additional things like Blueprints, Events and ViewResolvers. (More info on these topics in the EcsRx repo).

So if you open up the Game folder, within there you can see the AppContainer entry point which the scene uses to bootstrap everything, and the other data containers (Components, Events) and logic containers (Systems / Occasionally Blueprints).

This is not a trivial example, so to find simpler examples for EcsRx check the main repo, however this shows a real world use case and how things can hook together and react to events and changing data with reactive properties and other interesting approaches.

Blurb

So this was just a quick port, it is unoptimised but runs well enough and although there are a few quirks which will hopefully get ironed out at a later point, for all intents and purposes this is working and a good example to get your head around more complex scenarios.

ecsrx.roguelike2d's People

Contributors

erinloy avatar grofit avatar starikcetin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ecsrx.roguelike2d's Issues

Error after loading day 3

Each time day 3 loads I get the following error.

InvalidOperationException: Collection was modified; enumeration operation may not execute.
System.ThrowHelper.ThrowInvalidOperationException (System.ExceptionResource resource) (at <fb001e01371b4adca20013e0ac763896>:0)
System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () (at <fb001e01371b4adca20013e0ac763896>:0)
System.Collections.Generic.List`1+Enumerator[T].MoveNext () (at <fb001e01371b4adca20013e0ac763896>:0)
Game.Systems.TurnsSystem+<CarryOutTurns>d__10.MoveNext () (at Assets/Game/Systems/TurnsSystem.cs:49)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <3dc54541a2574ac7826a004a212a4332>:0)

Unity 2019.4.1f1

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.