zig-gamedev / zflecs

Zig build package and bindings for https://github.com/SanderMertens/flecs
MIT License
3 stars 2 forks source link

Porting code examples from flecs? #5

Open AntoineBalaine opened 1 week ago

AntoineBalaine commented 1 week ago

Hello,

Thank you for making this wrapper happen. I’m interested in this project, I’ve been trying to re-implement some of the C examples from the flecs repo. I don’t have much so far, but it’s a start.

Most of my examples don’t perfectly match the output of the originals, unfortunately.

I had to fork zflecs to fix a few type mismatches as I was going through the process - so the examples repo depends on my fork instead of the upstream.

If this is interesting to you, please let me know: I’d be happy to move the examples into my fork and open a PR sometime - maybe set them up as tests or something? Obv, I’m discovering the lib as I’m porting the examples, so the result promises to be less than perfect.

Cheers

hazeycode commented 1 week ago

Hi 👋

Ported examples would be very welcome in this repo. And I agree that they would make ideal tests.

I think it's not very important that the output be exactly the same as the original C and C++ examples. So long as they illustrate and exercise the principles.

Cheers