Skip to content

Commit 2c9e906

Browse files
committed
♻️ remove rosource_dir
1 parent 1d91b75 commit 2c9e906

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/main.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,10 @@ mod game;
22
use crate::game::GameState;
33
use ggez::event::{self};
44
use ggez::{ContextBuilder, GameResult};
5-
use std::path::PathBuf;
65
const BIRD_IMAGE_BYTES: &'static [u8] = include_bytes!("../resources/bird.png");
76

87
fn main() -> GameResult {
9-
let resource_dir = std::env::var("CARGO_MANIFEST_DIR")
10-
.map(|manifest_dir| {
11-
let mut path = PathBuf::from(manifest_dir);
12-
path.push("resources");
13-
path
14-
})
15-
.unwrap_or_else(|_| PathBuf::from("."));
16-
178
let (mut ctx, event_loop) = ContextBuilder::new("flappy_bird", "Carol")
18-
.add_resource_path(resource_dir)
199
.window_setup(ggez::conf::WindowSetup::default().title("Flappy Bird!"))
2010
.window_mode(ggez::conf::WindowMode::default().dimensions(800.0, 600.0))
2111
.build()?;

0 commit comments

Comments
 (0)