Set entity commands to 10k and 50k increments
This commit is contained in:
parent
57d4334cad
commit
2deaa66a78
3 changed files with 5 additions and 5 deletions
|
|
@ -12,8 +12,8 @@ build & run
|
|||
controls
|
||||
--------
|
||||
|
||||
+/- add/remove 1000 entities
|
||||
shift hold for 10x (10000 entities)
|
||||
+/- add/remove 10k entities
|
||||
shift hold for 50k
|
||||
space pause/resume
|
||||
r reset
|
||||
|
||||
|
|
|
|||
|
|
@ -397,7 +397,7 @@ var sub_timer: f32 = 0;
|
|||
fn handleInput(entities: *sandbox.Entities, rng: *std.Random, paused: *bool) void {
|
||||
const dt = rl.getFrameTime();
|
||||
const shift = rl.isKeyDown(.left_shift) or rl.isKeyDown(.right_shift);
|
||||
const add_count: usize = if (shift) 10000 else 1000;
|
||||
const add_count: usize = if (shift) 50_000 else 10_000;
|
||||
|
||||
const add_held = rl.isKeyDown(.equal) or rl.isKeyDown(.kp_add);
|
||||
const sub_held = rl.isKeyDown(.minus) or rl.isKeyDown(.kp_subtract);
|
||||
|
|
|
|||
|
|
@ -82,8 +82,8 @@ fn drawControls(font: rl.Font, metrics_bottom: i32) void {
|
|||
var y: f32 = @as(f32, @floatFromInt(ctrl_box_y)) + box_padding;
|
||||
|
||||
const controls = [_][]const u8{
|
||||
"+/-: 1000 entities",
|
||||
"shift +/-: 10000",
|
||||
"+/-: 10k entities",
|
||||
"shift +/-: 50k",
|
||||
"space: pause",
|
||||
"r: reset",
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue