I’m Bad at Coding
Recently, I’ve been trying to code a typing minigame where you do a type test to increase your chances of success. This is for the con action of Celestial Capitalist, where you just scam people. A couple of revelations have been made while I’ve been working on this, the first of which is that I’m bad at coding.
As you can hopefully observe in the game, it’s supposed to be structured after a typing test like monkeytype. Each time you get it right, it highlights white. When you get a word wrong, it highlights it red. When you get it wrong on a space, a new letter is appended where you got it wrong.
The most basic elements of this are working, such as getting the text correct and getting the normal non-space error text working. You know what’s not working? The other parts.
Each time I try to do the error after a space, it bugs out because the backspace option doesn’t go well with it. When a word only autowraps after it’s completed, such as when I type “because” in the video, it only goes to where it should be after it’s done, which looks ugly. The indexing is wrong, little things work, and you can all see it in the video. I think I’ve also made some of the most inefficient code ever designed. I’ll keep toiling away at the minigame, and then toil away some more to actually integrate it into the minigame.
These bugs will drive me to insanity.
Well Well Well
Would you look at that? They added a preview section. Where you can preview all of your markdown formatting. Y’know when that could have been useful? I sure do wonder. Markdown formatting is now my enemy.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.