mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-11 04:07:55 -06:00
chore: remove unused functions, add 'web' task to Justfile
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//! Desktop platform implementation.
|
||||
|
||||
use std::borrow::Cow;
|
||||
use std::time::{Duration, Instant};
|
||||
use std::time::Duration;
|
||||
|
||||
use rand::rngs::ThreadRng;
|
||||
|
||||
@@ -17,10 +17,6 @@ pub fn sleep(duration: Duration, focused: bool) {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_time() -> f64 {
|
||||
Instant::now().elapsed().as_secs_f64()
|
||||
}
|
||||
|
||||
pub fn init_console() -> Result<(), PlatformError> {
|
||||
#[cfg(windows)]
|
||||
{
|
||||
@@ -53,10 +49,6 @@ pub fn requires_console() -> bool {
|
||||
cfg!(windows)
|
||||
}
|
||||
|
||||
pub fn get_canvas_size() -> Option<(u32, u32)> {
|
||||
None // Desktop doesn't need this
|
||||
}
|
||||
|
||||
pub fn get_asset_bytes(asset: Asset) -> Result<Cow<'static, [u8]>, AssetError> {
|
||||
match asset {
|
||||
Asset::Wav1 => Ok(Cow::Borrowed(include_bytes!("../../assets/game/sound/waka/1.ogg"))),
|
||||
|
||||
Reference in New Issue
Block a user