Use the assets in this repo now
    
    
      
        Getty Ritter
        7 years ago
      
    
    
  
  
  | 23 | 23 | /// event loop | 
| 24 | 24 | pub fn main_loop() -> Result<(), gfx::Error> { | 
| 25 | 25 | let t = tiled::parse_file( | 
| 26 | std::path::Path::new(" | |
| 26 | std::path::Path::new("assets/maps/main.tmx") | |
| 27 | 27 | ).unwrap(); | 
| 28 | 28 | let board = board::Board::from_tiled(&t); | 
| 29 | 29 | |
| 35 | 35 | gfx::Shader::compile(gfx::ShaderType::Fragment, FS_SRC)?, | 
| 36 | 36 | ])?; | 
| 37 | 37 | |
| 38 | let tex = gfx::Texture::new_from_png("/home/gdritter/projects/animaltransiro/tiles/spritesheet.png")?; | |
| 39 | let nrm = gfx::Texture::new_from_png("/home/gdritter/projects/animaltransiro/tiles/spritesheet-normal.png")?; | |
| 38 | let tex = gfx::Texture::new_from_png("assets/tiles/spritesheet.png")?; | |
| 39 | let nrm = gfx::Texture::new_from_png("assets/tiles/spritesheet-normal.png")?; | |
| 40 | 40 | |
| 41 | 41 | let tile_data = graphics::vertices::make_grid_with( | 
| 42 | 42 | board::BOARD_WIDTH as usize, |