Again minor changes...
This commit is contained in:
parent
41a8d6af1f
commit
cced2dd72e
@ -55,10 +55,10 @@ begin
|
||||
gameplay: loop
|
||||
exit when window_should_close;
|
||||
|
||||
if is_key_pressed (key_w) then movement.x := movement.x + 1.0;
|
||||
elsif is_key_pressed (key_s) then movement.x := movement.x - 1.0;
|
||||
elsif is_key_pressed (key_a) then movement.y := movement.y - 1.0;
|
||||
elsif is_key_pressed (key_d) then movement.y := movement.y + 1.0;
|
||||
if is_key_pressed (key_w) then movement.x := movement.x + 0.1;
|
||||
elsif is_key_pressed (key_s) then movement.x := movement.x - 0.1;
|
||||
elsif is_key_pressed (key_a) then movement.y := movement.y - 0.1;
|
||||
elsif is_key_pressed (key_d) then movement.y := movement.y + 0.1;
|
||||
end if;
|
||||
|
||||
dd := get_mouse_delta;
|
||||
|
Loading…
Reference in New Issue
Block a user