Dropps the particle line slash effect.
This commit is contained in:
parent
2aee3600e6
commit
68cf24ddf8
|
@ -270,24 +270,6 @@ particle_engine_sparkle(Position pos, Dimension dim)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
particle_engine_slash(Position pos, Dimension dim)
|
||||
{
|
||||
Particle *p = create_line_particle();
|
||||
p->particle.line.startPos = pos;
|
||||
p->particle.line.endPos = (Position) {
|
||||
dim.width + pos.x,
|
||||
dim.height + pos.y
|
||||
};
|
||||
p->velocity = (Vector2d) { 0.0, 0.0 };
|
||||
p->movetime = 0.0;
|
||||
p->lifetime = 30;
|
||||
p->blend_mode = SDL_BLENDMODE_BLEND;
|
||||
p->color = C_WHITE;
|
||||
p->fixed = false;
|
||||
linkedlist_append(&engine->global_particles, p);
|
||||
}
|
||||
|
||||
void
|
||||
particle_engine_wind(Vector2d direction)
|
||||
{
|
||||
|
|
|
@ -55,9 +55,6 @@ particle_engine_render_game(Camera*);
|
|||
void
|
||||
particle_engine_render_global(Camera*);
|
||||
|
||||
void
|
||||
particle_engine_slash(Position, Dimension);
|
||||
|
||||
void
|
||||
particle_engine_clear(void);
|
||||
|
||||
|
|
|
@ -145,14 +145,6 @@ has_collided(Player *player, RoomMatrix *matrix, Vector2d direction)
|
|||
gui_log("You missed %s", space->monster->lclabel);
|
||||
player->stat_data.misses += 1;
|
||||
}
|
||||
|
||||
particle_engine_slash((Position) {
|
||||
player->sprite->pos.x + ((int) direction.x * 32),
|
||||
player->sprite->pos.y + ((int) direction.y * 32)
|
||||
}, (Dimension) {
|
||||
32, 32
|
||||
});
|
||||
|
||||
player_monster_kill_check(player, space->monster);
|
||||
|
||||
action_spent(player);
|
||||
|
|
Loading…
Reference in New Issue