Skip to content

nullstare/Raylib_Simple_Entity_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General

Using following struct desing for entity.

struct Entity {
	unsigned int id;
	int type;
	void* data;
	void (*process)( Entity* entity, float delta );
	void (*draw)( Entity* entity );
};

alt text

Building

If compiling statically, move libraylib.a to "lib" folder. To build do the usual.

mkdir build
cd build
cmake ..
make

About

Simple entity system example for Raylib in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published