diff --git a/res/light2.png b/res/light2.png new file mode 100644 index 0000000..a06f1a3 Binary files /dev/null and b/res/light2.png differ diff --git a/src/game.rs b/src/game.rs index 27f9061..8a20fc8 100644 --- a/src/game.rs +++ b/src/game.rs @@ -98,8 +98,8 @@ impl GameState { ls.pos.y as i32 - self.camera_offset.y as i32, ); let mut s = Sprite::with_texture(&res.light_texture); - s.set_scale((3.0, 3.0)); - s.set_origin((32., 32.)); + s.set_scale((4., 4.)); + s.set_origin((128., 128.)); s.set_position((x as f32, y as f32)); lightmap.draw(&s); } diff --git a/src/res.rs b/src/res.rs index 27f99e7..954e6f5 100644 --- a/src/res.rs +++ b/src/res.rs @@ -12,7 +12,7 @@ impl Res { pub fn load() -> anyhow::Result { Ok(Self { tile_atlas: Texture::from_file("res/tiles.png")?, - light_texture: Texture::from_file("res/lightcircle.png")?, + light_texture: Texture::from_file("res/light2.png")?, surf_music: Music::from_file("res/music.ogg").unwrap(), und_music: Music::from_file("res/cave2.ogg").unwrap(), })