how much did your insurance cover? I mean ambulances are free where I live, but it would be excusable if it costs like 600$ (don't get me wrong, that's still terrible)
real estate certainly isn't cheaper in the eu, except you only count new york real estate prices
or you could just go to to another planet without breathable atmosphere, the problem here is, that I want to welcome every human being into my country, but that's not possible if that makes me not welcome in my country anymore. I just belive everyone should be welcome everywhere
because it's in most peoples moral compass, that every human being should be welcome
I mean compared to TOS it's gotten woke, but TOS was like extremely woke for the 60s
no, I mean like they tried to talk to god
I mean the way to find god, to know if he really exists and if so benefit from his existance
So I thought about this in the shower amd it makes sense to me, like praying and stuff never worked for most people I know, so a direkt link to god gotta be unlikely. That made me conclude that religion is probably fake, no matter if there's a god or not. Also people speaking to the same god being given a different set of rules sounds stupid, so at least most religions must be fake.
if you're interested in mining find a mining pool, solo mining's just not worth it, unless you have 6+ gpus
here an official guide: https://www.getmonero.org/get-started/mining/
here a mining calculator: https://www.coinwarz.com/mining/monero/calculator
cash is to currency what monero is to crypto, couldn't live without either
Why do some cars have their engines in the front and some in the back, what are the advantages and disadvantages of the two builds. And why doesn't every car have full wheel drive?
kinda insulting, which transwoman would wear a beard om purpose?
also, got any tips for removing beard shadow?
where anarchism vault boy profile picture
so, first I appreciate that you don't want to torture me to death.
If you belive being lgbt is a sin, that's your thing. But you can see, why people could have a problem with your views, right? I have my biases as well, mostly against religios people (especially muslims), but I still think they are welcome to my country (as long as no harm is caused), because they're still human beings, because I think it's wrong to not welcome an inocent human being no matter what group they belong to.
from my experience no, but maybe you met different people
There are actually 00000000000000000000000000000010 ways of doing things (in most languages)
I'm an it student from central europe
I'm in fovour of conversion therapy, everyone should be prevented from being a king/queen. there is even a simple french cure for this issue
So I want to update the sprite so my character looks in a different direction each time the player presses left/right, how could I do this? I can't do it in the setup fn, since it's a startup system, appreciate any help
EDIT: changed formating
here is my code:
``` use bevy::prelude::*;
`fn main() { App::new() .add_plugins(DefaultPlugins.set(ImagePlugin::default_nearest())) // prevents blurry sprites .add_systems(Startup, setup) .add_systems(Update, animate_sprite) .add_systems(Update, player_movement_system) .run(); }
const BOUNDS: Vec2 = Vec2::new(1200.0, 640.0); static mut FLIP_BOOLEAN: bool = false;
fn set_flip_boolean(boolean: bool) { unsafe { FLIP_BOOLEAN = boolean; } }
fn get_flip_boolean() -> bool{ unsafe { FLIP_BOOLEAN } }
#[derive(Component)] struct Player { movement_speed: f32, }
#[derive(Component)] struct AnimationIndices { first: usize, last: usize, }
#[derive(Component, Deref, DerefMut)] struct AnimationTimer(Timer);
fn animate_sprite( time: Res<Time>, mut query: Query<(&AnimationIndices, &mut AnimationTimer, &mut TextureAtlas)>, ) { for (indices, mut timer, mut atlas) in &mut query { timer.tick(time.delta()); if timer.just_finished() { atlas.index = if atlas.index == indices.last { indices.first } else { atlas.index + 1 }; } } }
fn setup( mut commands: Commands, asset_server: Res<AssetServer>, mut texture_atlas_layouts: ResMut<Assets<TextureAtlasLayout>>, ) { let texture = asset_server.load("sprites/Idle01.png"); let layout = TextureAtlasLayout::from_grid(Vec2::new(64.0, 40.0), 5, 1, None, None); let texture_atlas_layout = texture_atlas_layouts.add(layout); let animation_indices = AnimationIndices { first: 0, last: 4 }; let boolean = get_flip_boolean(); commands.spawn(Camera2dBundle::default()); commands.spawn(( SpriteSheetBundle { texture, atlas: TextureAtlas { layout: texture_atlas_layout, index: animation_indices.first, },
..default() }, Player { movement_speed: 500.0, }, animation_indices, AnimationTimer(Timer::from_seconds(0.1, TimerMode::Repeating)), )); }
fn player_movement_system( time: Res<Time>, keyboard_input: Res<ButtonInput<KeyCode>>, mut query: Query<(&Player, &mut Transform)>, ) { let (guy, mut transform) = query.single_mut();
let mut movement_factor = 0.0;
let mut movement_direction = Vec3::X;
if keyboard_input.pressed(KeyCode::ArrowLeft) { movement_factor -= 1.0; movement_direction = Vec3::X; set_flip_boolean(true); }
if keyboard_input.pressed(KeyCode::ArrowRight) { movement_factor += 1.0; movement_direction = Vec3::X; set_flip_boolean(false); }
if keyboard_input.pressed(KeyCode::ArrowUp) { movement_factor += 1.0; movement_direction = Vec3::Y; }
if keyboard_input.pressed(KeyCode::ArrowDown) { movement_factor -= 1.0; movement_direction = Vec3::Y; }
let movement_distance = movement_factor * guy.movement_speed * time.delta_seconds(); let translation_delta = movement_direction * movement_distance; transform.translation += translation_delta;
let extents = Vec3::from((BOUNDS / 2.0, 0.0)); transform.translation = transform.translation.min(extents).max(-extents); } ```
I hope this isn't out of context, also I don't want to "own the libs" or something here, I'm actually interested.
![](https://lemmy.world/pictrs/image/dd8aaaaa-f7af-4351-9400-98ac31916c08.jpeg?thumbnail=1024&format=webp)
tbh I did a horrible paint job, but she still liked it
EDIT: the parts are 3d printed (not my model tho)