You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LinuxCat edited this page May 26, 2024
·
3 revisions
The Word List
Every typing game needs a word list to work with.
In this case, the list comes from UNIX words, and was externally split into multiple files, one per word length, for a total of 23 files.
The first one only has individual letters, and the last one only has a single word, electroencephalographic.
The 23 files were originally text files, but were converted into CSV files with only their number as the first parameter, like so:
1,abandonment2,abasement's
...
11220,Zsigmondy's
This allows us to use them in Unreal as Data Tables, a more convenient way to store data.
Splitting the word list into multiple data tables has the main advantage of not having to load everything compared to a combine word list.
In our case, the words in-game are obtained from the GetRandomWordOfLength function in the GameInstance. The GameInstance needs to be populated with some Data Tables first, and that's where we can choose which ones we want.