You are browsing as a guest. Sign up (or log in) to start making projects!

1h 49m 43s logged

Time Delay, Adaptive AI, and Bevy Update
Here’s what I’ve done:

  • The AI previously would only move if the ball was a minimum distance away, and it would outpace the ball, stop, the ball would get away, it would outpace it again, and so on because the adaptive AI was increasing speeds. Now it only changes it’s velocity every 0.1s

  • The adaptive AI was also mediocre, so I dropped it and raised the paddle speed. It was really just an AI nerf.

  • I upgraded from Bevy 0.18.1 to 0.19.0
    This came with some changes to text and layouts

0.18.1:

    let font = asset_server.load("fonts/PixelifySans-Regular.ttf");
    let label = (
        Text::new("Start"),
        TextFont {
            font,
            font_size: 40.,
            ..default()
        },
        TextColor(Color::BLACK),
    );

0.19.0:

    let font = asset_server.load("fonts/PixelifySans-Regular.ttf");
    let label = (
        Text::new("Start"),
        TextFont {
            font: FontSource::Handle(font),
            font_size: FontSize::Px(40.),
            ..default()
        },
        TextColor(Color::BLACK),
    );

among others.

0
4

Comments 0

No comments yet. Be the first!