Skip to content

Commit

Permalink
Merge branch 'dev' into fix/allow-adding-components-via-set-component
Browse files Browse the repository at this point in the history
  • Loading branch information
GsLogiMaker authored Dec 4, 2024
2 parents 8d8f027 + 7bd684a commit 393c68f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@ Glecs is a set of [Godot](https://github.com/godotengine/godot) bindings for
the [Flecs](https://github.com/SanderMertens/flecs) entity component system via
GDExtension.

## Roadmap
- [ ] Expose more of the Flecs API.
- [ ] TODO: Come up with list of API features that need adding.
- [ ] Add support for `.flecs` scripts.
- [ ] Support more systems
- [ ] MacOS
- [ ] Web
- [ ] Android
- [ ] IOS
- [ ] Add core entities that interface with Godot servers.
- [ ] Rending 2D
- [ ] Physics 2D
- [ ] Rendering 3D
- [ ] Physics 3D
- [ ] Node-like entities
- [ ] Resource-like entities
- [ ] Editor interface (Make Glecs feel like it's officially supported by Godot.)
- [ ] Entity/tag/component inspector
- [ ] Viewport integration

## Branches

### [master](https://github.com/GsLogiMaker/godot-glecs)
Expand Down
14 changes: 0 additions & 14 deletions unittests/test_module_rendering_2d.gd
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,4 @@ func after_each():

#region Tests

func test_rendering_texture():
var e:= GFEntity.spawn(world) \
.add_component(GFTexture2D, TEXTURE) \
.add_component(GFCanvasItem)

var draw_rect:= RenderingServer.debug_canvas_item_get_rect(
e.get_component(GFCanvasItem).get_rid()
)
# This assert catches if the canvas item of the entity has a display size,
# but not if it is actually rendering properly. It will still pass
# if the parent is not setup correctly, causing the canvas item not to
# render.
assert_eq(draw_rect, Rect2(-(TEXTURE.get_size()/2), TEXTURE.get_size()))

#endregion

0 comments on commit 393c68f

Please sign in to comment.