-
Notifications
You must be signed in to change notification settings - Fork 497
Add headless flag for build.sh & update to raylib 6.0 #556
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
Open
Archizzle
wants to merge
7
commits into
PufferAI:4.0
Choose a base branch
from
Archizzle:4.0
base: 4.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3a35197
add headless flag for build.sh
Archizzle 9719b45
fix syntax for DrawCircleGradient in go and checkers envs
Archizzle 82d85c4
hide verbose warnings of raylib compilation for memory/headless backend
Archizzle 03778a4
add --save-frames and --gif-path for exporting frames
Archizzle 6a3087b
remove exporting individual frames to directory. add ffmpeg support f…
Archizzle a011383
uncap render speed for headless backend.
Archizzle 30103dd
print progress for headless rendering
Archizzle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -969,11 +969,11 @@ void c_render(CGo* env) { | |
| int inner = (env->grid_square_size / 2) - 4; | ||
| int outer = (env->grid_square_size / 2) - 2; | ||
| if (position_state == 1) { | ||
| DrawCircleGradient(circle_x, circle_y, outer, STONE_GRAY, BLACK); | ||
| DrawCircleGradient((Vector2){circle_x, circle_y}, outer, STONE_GRAY, BLACK); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
| } | ||
| // if enemy draw circle tile for white | ||
| if (position_state == 2) { | ||
| DrawCircleGradient(circle_x, circle_y, inner, WHITE, GRAY); | ||
| DrawCircleGradient((Vector2){circle_x, circle_y}, inner, WHITE, GRAY); | ||
| } | ||
| } | ||
| // design a pass button | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you changing the env code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Raylib 6.0 has a few changes for the API. I went through the changelog from 5.5 to 6.0 and this seemed to be the only breaking change. It might be better to use an IFDEF or something to check for the specific raylib version. Happy to revert it if it'd be better to pin 5.5 as the default.
https://github.com/raysan5/raylib/blob/aaacda6e147031f2af0cfb6c1fd7e64d761ddb1f/CHANGELOG#L225