Skip to content

Commit

Permalink
Bump version. Refactor sound to use rusty_audio crate. Fix a clippy w…
Browse files Browse the repository at this point in the history
…arning about providing a default derive.
  • Loading branch information
CleanCut committed Nov 20, 2019
1 parent 97349bc commit 512d58f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 75 deletions.
13 changes: 11 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rusty_sword_arena"
version = "1.3.2"
version = "1.3.3"
authors = ["Nathan Stocks <[email protected]>"]
description = "Library/repository for the half-day Rust tutorial teaching you how to make a game client in Rust."
documentation = "https://agileperception.com/doc/rusty_sword_arena/"
Expand Down Expand Up @@ -31,4 +31,4 @@ bincode = "1.0"
rand = "0.6"

# For playing sound 🔊
rodio = "0.10.0"
rusty_audio = "1.1.1"
70 changes: 0 additions & 70 deletions src/audio.rs

This file was deleted.

1 change: 1 addition & 0 deletions src/game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ pub enum GameEvent {

/// Stateful, stack-based button processor. You can use this to process button state/values and
/// update a `PlayerInput` that you can send to the server. Also handles the attack button.
#[derive(Default)]
pub struct ButtonProcessor {
horizontal: Vec<ButtonValue>,
vertical: Vec<ButtonValue>,
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
#![doc(html_logo_url = "https://agileperception.com/static/img/APSwirl200.png")]

/// A module for reading and playing audio files
pub mod audio;
pub use rusty_audio as audio;
/// Everything in the game module is shared by the server _and_ the client
pub mod game;
/// The graphics module that will be used by your client
Expand Down

0 comments on commit 512d58f

Please sign in to comment.