cameronfraser / ecs Goto Github PK
View Code? Open in Web Editor NEWEntity-Component-System + Scene Management for Monogame
Entity-Component-System + Scene Management for Monogame
Create an abstract class called System that accepts a list of entities on update and draw. It will loop through the entities to find entities with components relevant to the system. Based on the components data it will execute some type of logic. Example is a render system that draws type Entity to the screen if it has the Appearance, Position, Physical components and the Entity IsActive.
TileEngine - Determines the tile width and height (32px, 64px, etc), can take a Vector2D and determine what cell it is in, manages an ordered collection of TileMaps, each TileMap represents a layer..
Tile - Texture information, properties such as collidable
TileMap - a 2D array of Tiles
Camera - moves with the player or when the player gets to the edge of the screen, represents the visible viewport within a tilemap that extends beyond the viewport.
Create a World class that allows you to create Entities or accepts instantiated Entities. It should also allow you to add a list of systems.
On update the World class should loop through each system and pass the list of entities to it.
On draw the World class should loop through each system and pass the list of entities to it.
Create an abstract class called Entity that has a unique ID as a property and a dictionary of components (they will be looked up by name frequently so use their name as the key).
Roll our own. Start with gravity and jumping.
Going to use TiledSharp. May need to write an adapter for Monogame
Create an abstract class called Component that just holds arbitrary data. Ensure all components have a property of component name. We might want to introduce some type of tagging system for components as well.
I want to make two nuget packages:
Then I'll make another repo for making an actual game and not the framework.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.