An Update!
This past week hasn't been a whole ton of progress but I got to learn a little more about how android works in particular writing and reading data, working with fragments, and throwing ads in.
The first part of this project , writing and reading data, took me a bit of time for a few reasons. The first was I had to figure out where the silly filepath to save and load from was, after a fair bit of searching I found the function i needed in context.openFileOutput(). Now that I could read and write I had to decide how I was going to save that a user had certain levels or parts unlocked. To do this I came up with a simple file system that says the type of game object it is, then a list of lines that the object could use. This actually required more backend changes then I had expected as I had to make a level loader, which in turn needed a level factory to produce the levels so I got that setup.I figure I can just repeat the same pattern for other objects like equips as soon as those get coded in. The fruits of my labor didn't produce any grand change but hey now I can show off that I beat a level before so that's something :P
The second microproject of this week was getting a bit of work done on menus. Previously I had been kicking off new activities for each menu activity. This worked but it wasn't ideal as I would need to duplicate the bottom menu overlay. To get my program behaving how I wanted I had to change all of my sub menus to Fragments. Once this was done I was able to switch between sub menus while keeping my overlay bar in place and just have a nice little consistent look for the menus. There is a fair amount of work that needs to be done such as creating a default menu to display status updates to the users but for now I'm using the top level of the garage menu that is going to be coming soon. As a bonus I added in a top overlay currently it just displays my name but I'll likely add a few things here, perhaps some currency display. Its still in the works so it might be a while before this gets used for anything.
The last section of change for this week was adding in some ads as I would hopefully like to make some money off of this game, perhaps enough to buy a pack of crackers or maybe a nice soup. This had me go look up how to integrate with GooglePlayServices and signup with AdMob to display the ads. After following some of the GooglePlay tutorial and realizing it didn't help at all with ads, i scrapped what I wrote went to AdMobs tutorial and got them working fairly quickly.
I'll be talking with my friend Zorro soon about making some art, so next update should have a bit of interesting changes.
~Kownt










