Skip to content

Conversation

@JordSant
Copy link
Contributor

@JordSant JordSant commented Dec 9, 2025

Fixed pre-loading of resources for web compilig of the example shaders_game_of_life.

@raysan5
Copy link
Owner

raysan5 commented Dec 10, 2025

@JordSant this is a bit tricky, this change will be override on next rexm update because the tool scans the file looking for Load*() functions and "filename_to_load" to automatically detect required resources and add them to build system.

Would it be possible to refactor the code to load all images at initialization and just use rquired one on pattern change to avoid the pattern = LoadImage(TextFormat("resources/game_of_life/%s.png", presetPatterns[preset].fileName));?

@JordSant
Copy link
Contributor Author

Yes, later today i will do it

@raysan5
Copy link
Owner

raysan5 commented Dec 10, 2025

@JordSant thanks, no hurries!

@raysan5 raysan5 merged commit 8fa5f1f into raysan5:master Dec 11, 2025
17 checks passed
@raysan5
Copy link
Owner

raysan5 commented Dec 11, 2025

@JordSant Great! Thanks for the review!

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