INNER CODE UNIT · C++

c

evanbowman/BPCore-Engine · source/BPCoreEngine.cpp:96

        const auto c = hb_center(*this);
        const auto oc = hb_center(other);
        if (c.x < (oc.x + other.hitbox_size_x_) and
            (c.x + hitbox_size_x_) > oc.x and
            c.y < (oc.y + other.hitbox_size_y_) and
            (c.y + hitbox_size_y_) > oc.y) {
            return true;
        } else {
            return false;
        }
    }

    Entity() : x_flip_(0),
               y_flip_(0),
               has_speed_(0),
               has_anim_(0),
               anim_counter_(0),
               anim_start_(0),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…