<commit_before>package edu.stuy.starlorn.entities;

public class Projectile extends Entity {
    // Angle is radians, measured from the positive x axis
    private double _angle, _speed;

    public Projectile() {
        super();
        _angle = 0;
        _speed = 1;
    }

    @Override
    public void preStep() {
        super.preStep();
        _xvel = getSpeed() * Math.cos(getAngle());
        _yvel = getSpeed() * Math.sin(getAngle());

    }
    @Override
    public void step() {
        super.step();
    }
    
    public boolean shouldDespawnOnCollision() {
        return false;
    }

    public void setAngle(double angle) {
        _angle = angle;
    }

    public double getAngle() {
        return _angle;<commit_msg>Account for the different angle in projectile<commit_after>package edu.stuy.starlorn.entities;

public class Projectile extends Entity {
    // Angle is radians, measured from the positive y axis
    private double _angle, _speed;

    public Projectile() {
        super();
        _angle = 0;
        _speed = 1;
    }

    @Override
    public void preStep() {
        super.preStep();
        _xvel = getSpeed() * Math.cos(getAngle() - (Math.PI/2));
        _yvel = getSpeed() * Math.sin(getAngle() - (Math.PI/2));

    }
    @Override
    public void step() {
        super.step();
    }
    
    public boolean shouldDespawnOnCollision() {
        return false;
    }

    public void setAngle(double angle) {
        _angle = angle;
    }

    public double getAngle() {
        return _angle;
{'fraction_non_alphanumeric': 0.10649350649350649, 'fraction_numerical': 0.003896103896103896, 'mean_word_length': 2.125760649087221, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2858225', 'n_tokens_mistral': 470, 'n_tokens_neox': 458, 'n_words': 125}