Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
616 changes: 600 additions & 16 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
sdl2 = "0.35.1"
num = "0.4.0"
clap = { version = "3.0.14", features = ["derive"] }
minifb = "0.20"
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ Prototype Wolfenstein 3D port written in Rust.

## Setup

This requires the [SDL development library](https://github.com/Rust-SDL2/rust-sdl2#sdl20-development-libraries).

To run the game, it's necessary to include the Wolfenstein data files in the `data/` directory.
This should be from the shareware version, ending in `.WL1` (`GAMEMAPS.WL1`, `VGAGRAPH.WL1`, etc.).
The files can be found, for example, [here](https://archive.org/details/Wolfenstein3d).
Expand Down
5 changes: 2 additions & 3 deletions src/cache.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::constants::{MAP_HEIGHT, MAP_WIDTH};
use crate::map;
use crate::map::Map;
use std::fs;
use std::path::Path;
Expand Down Expand Up @@ -198,8 +197,8 @@ impl Cache {
&self.sounds[index]
}

pub fn get_map(&self, episode: usize, level: usize) -> &Map {
&self.maps[level + 10 * episode]
pub fn get_map(&self, episode: usize, level: usize) -> Map {
self.maps[level + 10 * episode].clone()
}
}

Expand Down
261 changes: 0 additions & 261 deletions src/input_manager.rs

This file was deleted.

Loading