Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

PNP2 Submission Post for week 4

The good news is that I am getting rid of bad habits. 


This week I had begun work on the function logic for the settings menu, so that the buttons actually  do things. The plan, originally, was to work on the Dark Mode, as I thought that would be the easiest,  as the plan was to just put an if statement so that when pressed it would switch the Android themes  to the dark mode themes. It ended up being a little harder to do, and I ended up using a when  statement instead, so that way it switched back to light mode when pressed. Now I just have to  write something so that when the button is pressed the label changes from “Dark Mode” to “Light  Mode”. 


After that things got much harder. I was getting compiler errors, where the IDE was finding duplicate  classes in files that I had never touched, in the gradle builds if I remember correctly. I had a meeting  with Jin and Joe and Steve yesterday, and me and Jin agreed that I should probably switch to doing  the Firebase after returning to a stable build. 


This is also where a bad habit of mine reared it’s ugly head. See, my plan for the Profile button was  to basically just copy and paste code from MainActivity, so that when the button is pressed it brought up a new activity, in this case ProfileActivity, and a new page, just like how pressing the  Settings button from the main page brought up the SettingsActivity. But during the meeting with Jin I found out that when I make new Activity’s they show up in his manifest, and I make a lot of  activities. This is because I have a bad habit of making a new activity, screw up somewhere, and  then starting again in a blank activity. 


So now going forward I am going to be more cognizant before I pull the trigger on making a new activity (maybe writing out a rough draft in Sublime before creating  it, and then copying and pasting the code that I make). So I got started researching how to implement Firebase, and began working on it this morning when  I had a break at work. Unfortunately, it seems like I need to create a cache for Firebase before I can  really do anything, and since I do not have internet at work I am going to have to wait until I get  home. 


So the good news is that I am breaking bad habits, and because I am doing that I did not have nearly  the same amount of pain as my 2 nd week post. The bad news is that I am once again, limited by the  technology of my --time-- workplace

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.