MDQDXQHZI3TV2PE4WUG2IQRKVHYDKIWCZYQIQLE74LNG6RPPR3YAC
5DULGXTSH7NW7TQKDSJB4LQA2S2PKKD7RPC7O3Z4T3KFY6GYFDYAC
D6RN4IZZ7VI6TKZK4HKD5J3KWMWJSB2QXJOYY7TIXQ5CR7RQ6O2QC
YM7CYP3LBSNZPT4X6OE7J4TPHVE7IJLZZXJBR3C7UG442DGUVRIAC
O4C7RMEST2263UZERB2CU4S4JW3ICZ7UJWEVOTDTVNAF44SCP2DQC
.add_systems(Startup, setup_camera)
.add_systems(Startup, spawn)
fn setup_camera(mut commands: Commands) {
fn spawn(mut commands: Commands) {
commands .spawn(SpriteBundle { sprite: Sprite { color: SNAKE_HEAD_COLOR, ..default() }, transform: Transform { scale: Vec3::new(10.0, 10.0, 10.0), ..default() }, ..default() }) .insert(SnakeHead);
commands
.spawn(SpriteBundle {
sprite: Sprite {
color: SNAKE_HEAD_COLOR,
..default()
},
transform: Transform {
scale: Vec3::new(10.0, 10.0, 10.0),
})
.insert(SnakeHead);
const SNAKE_HEAD_COLOR: Color = Color::srgb(0.7, 0.7, 0.7);