Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate flecs script tutorial to v4 #1296

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

awest03
Copy link
Contributor

@awest03 awest03 commented Aug 8, 2024

I've started migrating the flecs script tutorial over to flecs v4 syntax and using the new explorer, the screenshots were taken with GNOME Web in dark mode which I think looks clean (a bit cleaner than my Firefox setup).

Some things which I've changed (I'll update this as I go):

  • The images no longer hyperlink to the explorer in the state of the image (I gather the v4 explorer doesn't support this currently)

@SanderMertens
Copy link
Owner

SanderMertens commented Aug 8, 2024

The images no longer hyperlink to the explorer in the state of the image (I gather the v4 explorer doesn't support this currently)

Yep, that's what was blocking me to port the tutorial over. I need to reimplement script loading from the URL.

@awest03
Copy link
Contributor Author

awest03 commented Aug 8, 2024

Okay, I'll try to continue changing it over to v4 scripts and we can put the links back in once the explorer supports it. Is it likely we would need to change the screenshots again at that point?

@awest03 awest03 force-pushed the update_script_tutorial branch from 4b35380 to 43bea76 Compare August 8, 2024 22:21
@SanderMertens
Copy link
Owner

The screenshots can stay the same :) will just be a link update.

@awest03 awest03 force-pushed the update_script_tutorial branch from 43bea76 to 5228028 Compare August 10, 2024 13:43
@awest03
Copy link
Contributor Author

awest03 commented Aug 16, 2024

I haven't updated this lately, I have completed up to the templates section, however there is a bug in flecs-game where when generating the grid from a Grid component the entities aren't added as children. I believe it's due to the changes in v4 related to ecs_set_scope, ecs_new and ecs_new_w_pair which are used to generate the grid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants