Work for Friday 6/30


  • Created random UFO enemies.
    • Fly across top of screen (gif has higher appearance rate for sake of recording)
    • Worth 100 points
    • Basically the same code-wise as enemies but with less functions (no shooting, etc)
    • Randomly picks a side to come from
Time: 3 hours

Work for Thursday 6/29


  • Added game over condition when enemies reach player.
  • Added sprite drawing system.
  • Encountered problem where nothing is showing when I try to load the sprite for the player. It is rendering and the player position is changing, but I'm not sure what I'm supposed to be setting the call equal to. If I do player.sprite = the call to the sprite drawer, that causes an error. 
  • Time: 4 hours

Work for Wednesday 6/28


  • Working on fixing a bug where if the most far-left row of enemies is completely destroyed the enemy movement is screwed up.
  • Couldn't quite figure out how to fix this but the reset is now working. Will work on it later. It's not extremely vital at the moment as opposed to getting the game to actually work, but is annoying as I am testing with only one row of enemies and I'm being forced to destroy the far left one last every time.
  • Sped up movement per level works!
  • Now need to fix movement of enemies as testing has revealed errors.
  • Fixed movement of enemies by changing the update function from updating the left side of the box based on the first enemy in the list every time to just adding the number that Enemy.vx changes by.
  • Other tweaks:
    • Changed shields to be smaller
    • Lowered fire rate of enemies
Total time: 4 hours

Work for Tuesday 6/27


  • Moved enemy creation into the enemyblock class, which was renamed enemycontroller. Enemy creation method is called in the init method of enemycontroller. Enemycontroller now holds enemy list, which is accessed in update.
  • Created reset method in enemycontroller, which clears the list and then makes a new one.
  • Encountering errors, most likely due to the location where I'm calling the reset method.
  • Total Time: 3 hours

Work for Friday 6/23


  • Added shields in.
  • Not sure how big they needed to be, but can change easily.
  • Currently take 5 hits to destroy and instead of changing sprite, they change color with hits.
Time: 3 hours
Total Time: 16 hours

Work for next week will probably mostly be trying to set up a level system, since that seems like a pain.

Work for Thursday 6/22


  • Added position parameter to textMaker class so that text can be placed on screen.
  • Added score system to enemies so that they're worth different amounts.
  • Added updateScore class to ui.py so that score can be updated onscreen in the same way lives can
  • Added screen that says game over before game ends
  • Couldn't implement onscreen FPS counter in the way that it's written in ttf.py because it relies too heavily on world/sdl2.ext classes that use world. Not sure if there's another better way to do this.
  • Working on level system:
    • When enemies is empty, the game needs to display that the level was beaten, reset the enemies and player, don't reset lives and score, and increase the speed of the enemies.
    • Wrote reset function that's basically just the same thing as creating the sprites, but saved lives and score from the player. Not sure where to put it in the code so that it can continue to update correctly.
  • Time: 3 hours 

Work for Wednesday 6/21


  • Finally got text working after 18 years. Realized after setting up different text system based on file sent to me that I wasn't initiating TTF correctly. Now works. Will need to add position parameter later so that I can place the rectangle where the text is.
  • For now, created class that updates lives specifically so that the lives of the player can update and run it. Created update function in class that changes lives without needing to run the renderer in every time.
  • Will probably also change font later and move it so it isn't right up against the edge. Tomorrow will work on score and game over screen.
  • Time: 4 hours


Work for Tuesday 6/20


  • Install commands: 
    • cd Downloads
    • tar xvzf SDL2_ttf-2.0.14.tar.gz 
    • cd SDL2_ttf-2.0.14
    • ls
    • pwd  
    • sudo su
    • [then type in your normal user password to log into your mac]
    • ./configure
    • make install
  • Achieved nothing today. Tried to get sprites working again to no avail. Eventually got it to the point where no errors are coming up, but still showing black screen. Not sure if they're actually rendering or not.
  • If I have it print the type of the variable sprite when it uses the drawable method, it does say they're texturesprites. Positions also appear to be changing when I fire bullets, etc. Still, nothing is showing onscreen.
  • Time: 4 hours

Work for Monday 6/19


  • Created test file to try and figure out renderer. Texture sprites seem fairly nonviable unless I want to go back and change how I make every single sprite in the game. May have to do this for text.
  • Considered making text sprites in separate files and just uploading as sprites. This is what I did for text in my game dev class :^) That might be a cop-out, though. It would certainly allow me to progress past this annoying text phase, at least, because I could use my normal sprite renderer.

Work for Friday 6/16


  • Working on getting text functioning.
  • Created texture render system but didn't actually use it, because it created an error. Will try to get it working later, but for now just made a basic SDL_Renderer to run into the text creation function.
  • Currently segfaulting somewhere in the text creation function, but can't figure out where.
  • Time: 3 hours
  • Total Time: 12 hours

Work for Wednesday 5/14


  • Changed collision system to be based off two points rather than whole square. Swept collision is still messed up- because the lower left point is in the back for player bullets and the front for enemy bullets, it was messing up collisions. I ended up taking it out for now.
  • Got clearing the screen to work by removing enemies from array. Turned out I needed to render the world again after I cleared the list.
Total time: 2 hours

Work for Monday 5/12 and Tuesday 5/13

Monday:

  • Created lives system for ship and game over
  • Read up on text rendering: one method involves using the SDL_ttf library, which is included (I think) so I will probably use this one. Need to figure out if the software renderer in the code is an acceptable renderer.
  • Tried to figure out how to clear the screen before ending the game, but nothing worked successfully. Will probably also need to use the software renderer for this.
  • Total time: 3 hours
Tuesday:
  • Still working on clearing screen and text.
  • Just tried to figure out how to clear screen and text the whole time. Tried several methods.
  • Total time: 4 hours

Work for Friday 5/9


  • Fixed enemy bullet speed by moving it into the main update loop and not having it in the enemy update function, since it was updating for every enemy.
  • Changed collision boxes so that they extend backwards conditionally based on which type of object it is. Also added slight padding around the sides of the bullets shot by the player in an attempt to stop them traveling between enemies and hitting ones in the back row. This might cause problems later, so I may add padding to the enemies instead. Needs to be tested.
  • Have a pull request that needs to be committed before I can push these changes.
  • Final product for the week:
Time: 1 hour
Total for week: 15 hours

Plan for next week:

  • Implement scoring system, player lives and game over/win conditions