I must be missing something very basic, I tried to load a sprite but instead of just getting the sprite, it also draws those checkerboard png transparency things, here's my code:
let texture = asset_server.load("lunar_lander/Asset-Sheet-with-transparency.png");
let mut layout = TextureAtlasLayout::new_empty(UVec2::new(640, 640));
layout.add_texture(URect::new(135,160, 200,210));
let texture_atlas_layout = texture_atlas_layouts.add(layout);
commands.spawn((
Sprite::from_atlas_image(
texture,
TextureAtlas {
layout: texture_atlas_layout,
index: 0,
},
),
Transform::from_scale(Vec3::splat(6.0)),
));
my texture atlas is from https://mattwalkden.itch.io/lunar-battle-pack