Skip to content

Commit 512d58f

Browse files
committed
Bump version. Refactor sound to use rusty_audio crate. Fix a clippy warning about providing a default derive.
1 parent 97349bc commit 512d58f

5 files changed

Lines changed: 15 additions & 75 deletions

File tree

Cargo.lock

Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rusty_sword_arena"
3-
version = "1.3.2"
3+
version = "1.3.3"
44
authors = ["Nathan Stocks <cleancut@github.com>"]
55
description = "Library/repository for the half-day Rust tutorial teaching you how to make a game client in Rust."
66
documentation = "https://agileperception.com/doc/rusty_sword_arena/"
@@ -31,4 +31,4 @@ bincode = "1.0"
3131
rand = "0.6"
3232

3333
# For playing sound 🔊
34-
rodio = "0.10.0"
34+
rusty_audio = "1.1.1"

src/audio.rs

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/game.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ pub enum GameEvent {
167167

168168
/// Stateful, stack-based button processor. You can use this to process button state/values and
169169
/// update a `PlayerInput` that you can send to the server. Also handles the attack button.
170+
#[derive(Default)]
170171
pub struct ButtonProcessor {
171172
horizontal: Vec<ButtonValue>,
172173
vertical: Vec<ButtonValue>,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
#![doc(html_logo_url = "https://agileperception.com/static/img/APSwirl200.png")]
139139

140140
/// A module for reading and playing audio files
141-
pub mod audio;
141+
pub use rusty_audio as audio;
142142
/// Everything in the game module is shared by the server _and_ the client
143143
pub mod game;
144144
/// The graphics module that will be used by your client

0 commit comments

Comments
 (0)