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

Add shapes_following_eyes raylib example #42

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

REDl3east
Copy link
Contributor

Added yet another raylib example.

This implements:

  • CheckCollisionCircles
  • CheckCollisionPointCircle

and also adds various math functions to js:

  • atan2f
  • cosf
  • sinf

This example uses DrawFPS, which is not implemented yet, so a TODO was added to raylib.js

@@ -60,6 +65,7 @@ bool build_native(void)
nob_cmd_append(&cmd, "-L./lib/", "-lraylib", "-lm");
if (!nob_cmd_run_sync(cmd)) return 1;
}
return 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't actually do anything with the return value. (yet)
It would be cool to have it reflect in main's return.

That way something like ./nob && build/shapes_following_eyes will not try to run the executable if the build fails.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be a good idea to handle this. I was getting compiler errors and that's why I added that return statement.

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.

3 participants