Git Product home page Git Product logo

entity-component-system-example's Introduction

Unity Entity Component System Example

This is a example game done completly in the new Unity Entity Component System. It was done to show what performance gains are possible with the new Unity Entity Component System.

This code implements systems for pathfinding, enemy finite state machine, collisions (with new Unity Physics), input, inventory, weapon animation (by using slerp and lerp).

I removed all assets except for the scripts that were used in this project, since the meshes ive originaly used in this project might be protected by copyright. The weapon, shield and item meshes were done by me.

This was originaly a school project.

Screenshots

Character Creation

Pick a class

ClassSelect

Spend points on various stats

ClassPoints

Movement / Rotation and Jumping / Gravity

2021-03-30.10-50-51-00.01.04.284-00.01.14.532.mp4

Pick up items

2021-03-30.10-32-56-00.00.08.750-00.00.09.836.mp4

Use Weapon and Shield

2021-03-30.10-32-56-00.00.29.200-00.00.32.457.mp4

Benchmark

The project was tested with 10'000 pathfinding agents, simultanously searching for a path. On my Ryzen 3950x it still performed with an average of 3.2 ms (update rate).

entity-component-system-example's People

Contributors

eternalcolor avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

kyapp69

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.