adjust waves
This commit is contained in:
parent
f96a8b4b78
commit
a5d824817c
@ -166,28 +166,26 @@ const Wave = struct {
|
||||
const world_size = Vec2.init(20 * 16, 15 * 16);
|
||||
const invincibility_duration_s = 0.5;
|
||||
const wave_infos = [_]Wave.Info{
|
||||
.{
|
||||
Wave.Info{
|
||||
.kind = .regular,
|
||||
.enemies = 10,
|
||||
.duration_s = 10,
|
||||
.enemies = 80,
|
||||
.duration_s = 60,
|
||||
.starts_at_s = 0
|
||||
},
|
||||
Wave.Info{
|
||||
.kind = .snake,
|
||||
.enemies = 1,
|
||||
.duration_s = 1,
|
||||
.starts_at_s = 0,
|
||||
.min_group_size = 5,
|
||||
.max_group_size = 5
|
||||
.enemies = 2,
|
||||
.duration_s = 5,
|
||||
.starts_at_s = 5
|
||||
},
|
||||
Wave.Info{
|
||||
.kind = .cluster,
|
||||
.enemies = 1,
|
||||
.duration_s = 1,
|
||||
.starts_at_s = 0,
|
||||
.min_group_size = 30,
|
||||
.max_group_size = 30
|
||||
}
|
||||
.enemies = 2,
|
||||
.duration_s = 5,
|
||||
.starts_at_s = 15,
|
||||
.min_group_size = 20,
|
||||
.max_group_size = 50,
|
||||
},
|
||||
};
|
||||
|
||||
gpa: Allocator,
|
||||
@ -685,10 +683,12 @@ pub fn tick(self: *CombatScreen, state: *State, frame: *Engine.Frame) !TickResul
|
||||
}
|
||||
});
|
||||
|
||||
frame.drawRectangle(.{
|
||||
.rect = bullet_rect,
|
||||
.color = rgba(200, 20, 255, 0.5)
|
||||
});
|
||||
if (self.show_colliders) {
|
||||
frame.drawRectangle(.{
|
||||
.rect = bullet_rect,
|
||||
.color = rgba(200, 20, 255, 0.5)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user