- Implement boxMoves with key pressing
    - Fix moveBox speed
This commit is contained in:
Hugo Bourgeon
2024-08-07 16:57:15 +02:00
parent c29bbe1ee1
commit bc569a5233
2 changed files with 7 additions and 32 deletions

View File

@ -3,10 +3,10 @@
/* ::: :::::::: */
/* controls.js :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: edbernar <edbernar@student.42.fr> +#+ +:+ +#+ */
/* By: hubourge <hubourge@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/07 15:20:55 by hubourge #+# #+# */
/* Updated: 2024/08/07 16:19:53 by edbernar ### ########.fr */
/* Updated: 2024/08/07 16:53:34 by hubourge ### ########.fr */
/* */
/* ************************************************************************** */
@ -24,7 +24,7 @@ class Moves {
class MoveObject {
#moves = null;
#object = null;
#speed = 0.1;
#speed = 0.05;
constructor(object)
{