+ 1

Debugging my code (pc use)

if you have no knowledge with p5.js, maybe you would find this code odd... this is my first project in p5.js but there is an uncaught error happening that i need your help to debug the problem occurs after i HIT a couple letters if i dont do anything, it just runs smoothly would appreciate the feedback as well https://code.sololearn.com/WEvsqzlNL0oY/?ref=app

22nd Feb 2018, 12:08 AM
Dominique Abou Samah
Dominique Abou Samah - avatar
7 Answers
+ 1
i edited the post. first i love p5.js and i started to learn it, that is why im not using pure js. what the game dors is that it increases the speed of the letters whenever a user HITs a letter, and thats where the error occurs
22nd Feb 2018, 1:14 AM
Dominique Abou Samah
Dominique Abou Samah - avatar
0
@maxcookmax thats not the problem, im deleting an element from the array once it gets offScreen and making a new one. this is just to keep it smooth
22nd Feb 2018, 1:09 AM
Dominique Abou Samah
Dominique Abou Samah - avatar
0
i will keep it as a challenge for me to make the game in pure JS ^^
22nd Feb 2018, 6:57 AM
Dominique Abou Samah
Dominique Abou Samah - avatar
0
fixed it!!
22nd Feb 2018, 5:57 PM
Dominique Abou Samah
Dominique Abou Samah - avatar
0
i was trying to increase the speed of the letters at each letter pressed but some function was crashing the whole thing. so instead i made that at every letter hit, the number of letters increases. i will asd some button in the corner for the user to increase the speed at will... and maybe work my way around it for the game to speed up by itself maybe tonight i will :D i just got that idea
22nd Feb 2018, 6:50 PM
Dominique Abou Samah
Dominique Abou Samah - avatar
0
done :D
24th Feb 2018, 3:02 PM
Dominique Abou Samah
Dominique Abou Samah - avatar
0
yes same code
24th Feb 2018, 5:01 PM
Dominique Abou Samah
Dominique Abou Samah - avatar