Game Development – Nr.1 | Magic Writer
|
Background around the game The process of checking for typed items has two steps. There is a list of three active words, these are the words that the player can type to conjure. Typing words with highlights Second step: The second step is drawing the words in the list. We loop through all words and we draw the deactivated ones with a light blue color to show that they are inactive. If the word is active we draw each letter separately in order to get different colors for each letter. So we loop through each active word and for each letter we check if the index of the letter is smaller than the size of the players input, if it is smaller the letters color is green showing that the letter is typed. Else the color is dark blue showing that the word can still be typed. So if the player has entered ”Pa” the size is still 2. This means that the first two letters in the word is drawn green and the rest dark blue. The reason for the highlighting is for the player to see where in the word the wizard is currently conjuring. This allows the player to see how far he/she has typed and what the next letter is supposed to be. Example of how the panda scenario will look like.
Example of a deactivated word.
|

