mirror of
https://github.com/lisk77/comet.git
synced 2025-12-12 09:08:49 +00:00
chore(examples): rename hello_sound to simple_audio and fix the links in the README
This commit is contained in:
parent
bc9ea50264
commit
c0ce4e60ee
2 changed files with 9 additions and 7 deletions
|
|
@ -8,8 +8,10 @@ cargo run --example <example_name>
|
|||
```
|
||||
|
||||
| Example | Description |
|
||||
|------------------------------------|----------------------------------------------------------------------------------------|
|
||||
| [hello_world](hello_world) | A simple boilerplate example to show how to properly start creating a Comet App. |
|
||||
| [textured_entity](textured_entity) | This covers the basics on how to create a camera and your first entity with a texture. |
|
||||
| [simple_move_2d](simple_move_2d) | A simple demonstration of a hypothetical movement system in 2D. |
|
||||
| [simple_text](simple_text) | A simple demonstration of how to write some text in Comet. |
|
||||
|-------------------------------------------|----------------------------------------------------------------------------------------|
|
||||
| [hello_world](hello_world.rs) | A simple boilerplate example to show how to properly start creating a Comet App. |
|
||||
| [textured_entity](textured_entity.rs) | This covers the basics on how to create a camera and your first entity with a texture. |
|
||||
| [simple_move_2d](simple_move_2d.rs) | A simple demonstration of a hypothetical movement system in 2D. |
|
||||
| [simple_text](simple_text.rs) | A simple demonstration of how to write some text in Comet. |
|
||||
| [simple_audio](simple_audio.rs) | A simple demonstration of how to use the audio system in Comet. |
|
||||
| [prefabs](prefabs.rs) | Shows how to register and spawn prefabbed entities. |
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ fn update(app: &mut App, renderer: &mut Renderer2D, dt: f32) {
|
|||
|
||||
fn main() {
|
||||
App::new()
|
||||
.with_title("Comet Audio Example")
|
||||
.with_title("Comet Sound Example")
|
||||
// This can be used to add your own sound engine to the engine
|
||||
.with_audio(Box::new(comet_sound::KiraAudio::new())) // to
|
||||
.run::<Renderer2D>(setup, update);
|
||||
Loading…
Add table
Add a link
Reference in a new issue