Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
While impressive, a minifier can bring it down to 1 line of JS! I do like that this can function as a reference for making simple canvas-based games though.
you’re technically correct, but the number of lines is mentioned to show the approximate complexity of the code. 200 lines means approx 200 instructions (I’m not counting empty lines, comments etc.) and that gives everyone a pretty good idea of how (un)complicated the game is.
While impressive, a minifier can bring it down to 1 line of JS! I do like that this can function as a reference for making simple canvas-based games though.
you’re technically correct, but the number of lines is mentioned to show the approximate complexity of the code. 200 lines means approx 200 instructions (I’m not counting empty lines, comments etc.) and that gives everyone a pretty good idea of how (un)complicated the game is.