I just finished building all of the core functions in HTML! The point of this is to show me the limits of html and so far I haven’t used anything else. The whole program was made in html. I spent a lot of time testing out grid sizes and different patterns but the most confusing problem was figuring out how to detect when the player had scratched off enough of the grey to trigger the reveal and win checking functions without crashing the whole webpage. One method I used to fix this was to add a percentage threshold. Once the percentage of transparent pixels crosses 50% it clears the rest and runs the win evaluation.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.