figuring out who the hell is going to own the texture atlas texture

This commit is contained in:
2019-01-29 23:13:13 -08:00
parent 8d4e2f1c1e
commit 2dac8912e4
5 changed files with 135 additions and 58 deletions

View File

@@ -7,6 +7,8 @@ use sfml::graphics::IntRect;
use std::fs::File;
use std::io::BufRead;
use std::io::BufReader;
use crate::EntState;
use sfml::graphics::Sprite;
pub fn read_spritesheet(filename: String) -> HashMap<String, HashMap<String, i32>> {
@@ -79,10 +81,3 @@ pub fn grab_sheet_rec(spritename: String, spritesheet: &HashMap<String, HashMap<
*block_desc.get("height").unwrap()
)
}
pub fn read_map(filename: String) {
let file = File::open(filename).expect("Could not open file");
for line in BufReader::new(file).lines() {
println!("{:?}", line);
}
}