+ 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
7 Respuestas
+ 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
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
0
i will keep it as a challenge for me to make the game in pure JS ^^
0
fixed it!!
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
0
done :D
0
yes same code