Skip to content

Add floppy example, port older examples to newer api #39

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

Merged
merged 14 commits into from
May 7, 2024
Merged

Add floppy example, port older examples to newer api #39

merged 14 commits into from
May 7, 2024

Conversation

ShivanshuKantPrasad
Copy link

Add floppy.rs to the examples. Fix specs.rs and asteroids.rs to work with newer api. Disable broken examples.

I am unsure what the `target.cfg` does but it made so that running
`cargo run --example <example_name>` gave `no example target
<example_name>` error. Removing it allows cargo to detect and run
examples.
Specs adds three new dependencies to the project.
- Use newer api to load sound
- When a window is closed the OpenGL context is destroyed, it is not
  possible to unload a shader after the OpenGL context is destroyed.
  Hence test_shader_dropping function doesn't work and is removed.
For some reason plane.obj file was corrupt. I replaced it with the
one used in the main raylib repo.
@ShivanshuKantPrasad
Copy link
Author

ShivanshuKantPrasad commented Apr 20, 2024

roguelike.rs needs the --features with_serde flag to be passed to run properly. This causes it to fail the tests, since the tests don't pass this flag.
Edit: Adding the required-features field to the definition of roguelike.rs fixed this.

All examples have been ported to use latest api and are running.

@IoIxD IoIxD merged commit bf3fbf3 into raylib-rs:5.0.0 May 7, 2024
@ShivanshuKantPrasad ShivanshuKantPrasad deleted the 5.0.0 branch May 7, 2024 04:26
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