Skip to content

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

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