<commit_before>package entities.enemy;

import entities.Player;
import org.newdawn.slick.GameContainer;

public class Saucer extends Enemy {
    public Saucer(GameContainer gc) {
        super(gc, "graphics/enemyUFO.png");

        setScore(100);
    }
    
    @Override
    public void update(GameContainer gc, int delta, Player player) {
        super.update(gc, delta, player);
        graphic.rotate(2);

        // TODO: Change to be actual angle towards player
        if (player.getX() > getX()) {
            setX(getX() + (float)speed * delta / 4);
        } else {
            setX(getX() - (float)speed * delta / 4);
        }
    }<commit_msg>Changed saucer to target center of player<commit_after>package entities.enemy;

import entities.Player;
import org.newdawn.slick.GameContainer;

public class Saucer extends Enemy {
    public Saucer(GameContainer gc) {
        super(gc, "graphics/enemyUFO.png");

        setScore(100);
    }

    @Override
    public void update(GameContainer gc, int delta, Player player) {
        super.update(gc, delta, player);
        graphic.rotate(2);

        // TODO: Change to be actual angle towards player
        if (player.getCenterX() > getCenterX()) {
            setX(getX() + (float)speed * delta / 4);
        } else {
            setX(getX() - (float)speed * delta / 4);
        }
    }
{'fraction_non_alphanumeric': 0.1172106824925816, 'fraction_numerical': 0.008902077151335312, 'mean_word_length': 2.380952380952381, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3493126', 'n_tokens_mistral': 421, 'n_tokens_neox': 408, 'n_words': 106}