Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by paulh

Hi

I hope you can help, i want to load an LF .txt file or .csv that contain a number of words.

I want to check against this list from the players input.

How do i load the txt/csv file into an array and then remove words from the array as the players input is defined.

for example

word list: A AB AC AD AEE AFFF AGGGG


When the player types AFF all the other entities in the word list would be removed?

1 decade ago by Graphikos

Javascript is client-side and has no access to the file system. You'll have to load it from a server via Ajax or otherwise include it. You'd be better off writing it as an array right in javascript and working from that.
Page 1 of 1
« first « previous next › last »