Giter VIP home page Giter VIP logo

entitas-2d-roguelike's Introduction

Entitas 2D Roguelike

This is simple post apocalyptic roguelike game written for the Unity engine. This project is a ground up rewrite of the Unity 2D Roguelike Tutorial architected to use Entitas. Entitas is an Entity Component System which allows projects to be architected in a clean and extendable manner.

screenshot

Rationale

Unity is a powerful tool for game creation but leaves something to be desired in terms of code architecture. Looking for a better way to organize and architect my code I found Entitas. Eager to test it out, I rewrote one the standard Unity example projects in it. I am hoping this code will serve as an example on how to use and convert existing project to Entitas and demonstrate the Entity Component System style of architecture.

Entity Component System

Entity Component System (ECS) is an architectural pattern for game development that allows for a high degree of flexibility and maintainability.

I gave a talk on ECS at a game developer meetup:

thumbnail

Additional articles on ECS:

License

This project is licensed under the MIT license. It uses assets from the original tutorial project which is owned by Unity Technologies. Use of these assets is granted in the Unity FAQ:

all assets in our tutorial and example projects may be used in both commercial and non-commercial use in Unity-based projects. The assets themselves may not be resold, however.

Full details can be found in the LICENSE file.

entitas-2d-roguelike's People

Contributors

jamesmcmahon 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

entitas-2d-roguelike's Issues

Can't run this project in Entitas 0.3x.x

I tried using the MigrationAssistant.exe but when I run the project I get this error:

IndexOutOfRangeException: Array index is out of range. Entitas.Unity.VisualDebugging.HierarchyIconEditor.get_hierarchyIcon () (at Assets/Libraries/Entitas.Unity.VisualDebugging/Editor/HierarchyIconEditor.cs:11) Entitas.Unity.VisualDebugging.HierarchyIconEditor.onHierarchyWindowItemOnGUI (Int32 instanceID, Rect selectionRect) (at Assets/Libraries/Entitas.Unity.VisualDebugging/Editor/HierarchyIconEditor.cs:38) UnityEditor.SceneHierarchyWindow.OnGUIAssetCallback (Int32 instanceID, Rect rect) (at C:/buildslave/unity/build/Editor/Mono/SceneHierarchyWindow.cs:379) UnityEditor.TreeView.DoItemGUI (UnityEditor.TreeViewItem item, Int32 row, Single rowWidth, Boolean hasFocus) (at C:/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeView.cs:441) UnityEditor.TreeView.IterateVisibleItems (Int32 firstRow, Int32 numVisibleRows, Single rowWidth, Boolean hasFocus) (at C:/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeView.cs:568) UnityEditor.TreeView.OnGUI (Rect rect, Int32 keyboardControlID) (at C:/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeView.cs:504) UnityEditor.SceneHierarchyWindow.DoTreeView (Single searchPathHeight) (at C:/buildslave/unity/build/Editor/Mono/SceneHierarchyWindow.cs:505) UnityEditor.SceneHierarchyWindow.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneHierarchyWindow.cs:320) System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

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.