User Tools

Site Tools


journal:spring2019:sepp:week10

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
journal:spring2019:sepp:week10 [2019/04/11 00:57]
sepp
journal:spring2019:sepp:week10 [2019/04/11 01:06] (current)
sepp
Line 3: Line 3:
 ====April 10, 2019==== ====April 10, 2019====
  
-I'm going to be pretty brief here. There haven'​t been nearly as many developments in Portal Kombat this week as has been in the past few. This is largely due to the fact that all the changes I've been working on have been small. On top of this, a lot of times I've run into a problem somewhere and have had to spend hours trying to fix it. So, this is all I have accomplished so far. I first set up the code so that when player 1 lost all its life points (the swirl disappears!),​ they move to the center of the screen and the words, "​FINISH HIM" appear above the sprite. I later added a few extra if statements so that it said "​HER"​ instead of "​HIM"​ for the Gal sprite. All this was relatively simple, and all I did was make it so that the computer checks if they are in the center of the screen, and if not, move them up, down, left, right, or some combination to get them closer each cycle. The sprites are also unresponsive to keyboard inputs at this point, so there isn't any interference. Once the loser is in the center of the screen, the winning player is unfrozen, and they can go deal one finishing blow to the loser. This is my favorite part. Depending on which way the winner was +I'm going to be pretty brief here. There haven'​t been nearly as many developments in Portal Kombat this week as has been in the past few. This is largely due to the fact that all the changes I've been working on have been small. On top of this, a lot of times I've run into a problem somewhere and have had to spend hours trying to fix it. So, this is all I have accomplished so far. I first set up the code so that when player 1 lost all its life points (the swirl disappears!),​ they move to the center of the screen and the words, "​FINISH HIM" appear above the sprite. I later added a few extra if statements so that it said "​HER"​ instead of "​HIM"​ for the Gal sprite. All this was relatively simple, and all I did was make it so that the computer checks if they are in the center of the screen, and if not, move them up, down, left, right, or some combination to get them closer each cycle. The sprites are also unresponsive to keyboard inputs at this point, so there isn't any interference. Once the loser is in the center of the screen, the winning player is unfrozen, and they can go deal one finishing blow to the loser. This is my favorite part. Depending on which way the winner was "​facing"​ when they dealt the blow, the loser goes flying off the screen in a corresponding direction, and "P[# of winning player] WINS!" appears on the screen. One little bug that happens in this that I really like happens when the winner is facing right for the final blow. The losing sprite doesn'​t just fly off the screen; it goes into an endless loop of zipping around the screen! I am not getting rid of that.  
 + 
 +And now we come to the part where I list what still needs to be done. Currently, the only change bug I know of right now that needs to be fixed is that when player 1 wins, there is no pause between the "​FINISH HIM" appearing and the "P1 WINS!"​. For some reason, it must be assigning the variable that keeps track of whether the sprite can move or not to the value that triggers the end screen. Or, it is just falling through somewhere. I've worked on that a while already, but I can't seem to find the problem. However, one problem I have found is that my code is so long that it can be hard to keep track of where everything is and what the path the computer takes is. So, I might need to clean up my code a little (or actually put in comments like I should be doing anyway...). Other than that, I really can't think of anything that I want to add to this. It's pretty sad knowing that I am almost done with this. And the semester. Oh dear, I need to stop thinking of depressing things. More next week! 
 + 
 +That's all for now, folks!
journal/spring2019/sepp/week10.txt · Last modified: 2019/04/11 01:06 by sepp