Programming Thread

Viewing single post

Started by the-pi-guy, Mar 13, 2016, 10:39 PM

previous topic - next topic

the-pi-guy

So my new app is on the way to being done.  

Vastly improved the vocab importer.  
-Doesn't rely on the slow character matching.  Saves a huge amount of time

-Also doesn't rely on silly limiters like it used to.  I had a bunch of stupid ways of how things were formatted.  A lot of very unnecessary marking for marking off where the pronunciation part ended and where the word begins.  Now it's set up to make the assumption that the first part is the character, the second part is the pronunciation, and the rest is the meaning description.    It means the files look nicer.  The only downside is if I were to start doing something in a language that did have spaces between words, it wouldn't work.  So if I wanted to make a spanish file with something like New York, it would break.   But it works great for languages without spaces.  Maybe I'll make it more dynamic someday.


Start Screen:
-Now the start screen has another button to toggle between languages.  Adding that change meant I had to make some changes to pretty much everything else.  Had to pass the language to whatever game was being started, and that had to be passed to the vocabimporter so that it'd get the right language.

Matching Game:
I made it more dynamic, so that it would ask the player different things.  
So instead of going from pronunciation to English meaning, it switches between every pair of (pronunciation, English, characters).

The worry I had was with Chinese.  Chinese has a ton of words that sound exactly the same, but mean wildly different things, so I added stuff to the matching game so that it'd make sure that there was only 1 correct choice.  So if it gave me shi, there'd only be one word or character to match with shi.  

So that's a lot of fun.  

Made a Chinese list for the words.  And ensured that it was working with the vocab importer.  

So huge improvements across the board.  

The only thing that isn't being worked on, is the writing game.  

The writing game will probably be the next and last thing that I do.  


That's where I wasn't sure what to do with the keyboard.  

Basically if you type in Chinese in the android keyboard, as far as I know, there aren't any pinyin options.  

So there's no way to differentiate between the 5 ways of spelling ma.
Depending on what android keyboard you were using, it either won't work, no difference, or it'll give the various Chinese options.  So that's a challenge, I'd like to avoid, and just make my own keyboard that does exactly what I want it to.

It won't be pretty or functional outside of the app, but in the context of the app, I think it'll be the best way to go about it.  
Far from being the most pretty thing, but this is the current state: