Candace James

Wordle Recreation

Created in Unity/Visual Studio

— PROJECT NAME

Recreation of Wordle as a mobile application


— ROLE

Game Designer

UI Designer

Programmer


— DATE

05/2023

As my first venture back into the world of game design, I decided to start out with a simple redesign of an already popular game to refresh my coding and UI design skills.


Wordle is a web-based word game created and designed by Josh Wardle and went on to take the world by storm back in 2021. Everyone and their mother plays this game, including my mother-in-law.


I set out to design the same game and make it playable through a mobile app.

Instructions

screenshot of Wordle from NYT website

Core of the Game

I started by creating a project in Unity and began the setup for the core of the game by creating the keyboard, word containers, and adding functionality to all the buttons by creating corresponding scripts.

Creating the keyboard

Keyboard script

Adding word containers

Word Container script

Addition of the “Try” button and testing the functionality

Word Manager Script

Adding Color

Next, I added some graphics improvements by creating rounded boxes for the word containers and the try and backspace buttons, as well as using a fancier font (coolvetica) for the letters and making them bold to stand out. Then I added colors to help the player through the game; grey for incorrect letters, yellow for correct letter/wrong placement, and green for correct letter/correct placement. I also updated my scripts to allow functionality for the colorization process.

Rounded boxes and bolder letters for clarity

Colorization of word containers

Corresponding colorize script

Colorization of keyboard keys

Corresponding colorize script

Creating UI

Then I got to work on adding UI to the game. I started with creating the Game Manager script to be used throughout the game. I added elements to the main game screen such as the hint buttons, the score box, the coin box, and the back button.


Next came the design of the Level Complete screen showing the secret word, current score, best score, current coins, and “Next” button.


Once the Level Complete screen was made, I created a UI Manager script for functionality, as well as coding the ability to show the Level Complete screen when initiated as well as saving the in-game data.


Once that was ready, I worked on creating a Data Manager script to allow for increasing the score and coins when applicable to do so.


Lastly, I created a Game Over screen similar to the Level Complete screen and added functionality to the screen in the UI Manager script.

Game Manager script snippet

Game Panel

Level Complete screen

snippet of Level Complete code

snippet of Save Data in code

Game Over screen

snippet of code for Game Over menu

Hint, Hint

Next, I worked on adding functionality to the two hint buttons by creating a Hint Manager script and coding to make everything work. I stumbled here during the setup of one of the buttons. I looked at a tutorial by Tabsil Games and when I couldn’t figure out what I had done wrong, I reached out to ask the creator of the tutorial for help. He was able to ask me the right questions to lead me to see where I had forgotten to add a specific method in my code and once I saw that, I was able to fix/add it and get back to the game.


It was at this point in the process that I added a dictionary of 5-letter words to my project and allow coding to choose a word at random to make the game more authentic to the web version.

Keyboard hint coding

Letter Hint coding

snippet of randomize secret word code

Ready, Set, Reset

At this point in the process, I added the Menu Screen with additional coding in the UI Manager and Game Manager scripts. I also created the ability to reset the game in the Word Manager script.


I added hint prices and new icons to make the game more user-friendly and a moving background slider in the background of the Gameplay screen for a cool aesthetic look.

Menu Screen

snippet of Game States

updated game icons, background slider

Finishing Touches

The last things I added to the game were the Settings Menu, sounds, and haptics.

The Menu Screen is the very first screen that the player will see when starting the game and has the settings button at the very top to allow the player to turn off/on the sounds and haptics for the game.


I created a very simple Settings screen and a Settings Manager script to allow for functionality.


I added sounds to the game (button press, game over, level complete, etc.) and created a Sounds Manager script to allow the sounds to play at the appropriate times.


And finally, the last thing I added to the game was the Haptics Manager to allow for vibrations during the game to happen at the appropriate times.

Settings Menu

snippet of managing sounds in code

snippet of adding sounds in code

snippet of managing haptics in code

snippet of adding haptics in code

Learnings

This game was a lot of fun to recreate and I realized that the game design skills I learned prior to obtaining my master’s degree were not lost. I was afraid that I had forgotten how to use Unity and how to code in C# but it was almost like riding a bike how quickly I remembered how to do things. Luckily I was able to find someone knowledgeable and with a tutorial on what I was doing to help me out when I stumbled.