Wednesday, May 19, 2010
Day 12
Ok so, everything is fine except for the part where the cannon beams and myPlayer collide. So for some reason there is something wrong with my equation. It is returning these outrageous numbers for both side of the equation. These numbers are a couple thousand away from each other. There is no constant so the numbers would range from 3,000 to 15,000. It is being very strange, and I will need to find a way to fix this.
Tuesday, May 18, 2010
Day 11
OK so about 2 days ago, I was freaking out about my project. These strange things happened; however, with the help of Mr. Howe all was solved. Especially today, when I learned that computers like to round in some instances rather than giev an exact answer, and that the smallest of things can frustrate you and affect you program in big ways. Well at least all that, I had is done.
I added functions in case the player died and in the other case that the player has reached grame over. I also made the game progressivley harder and made a score tracker and life tracker on the screen. That is all ok. Now the issue is that, I added a lag function so that the enemy cant be so good at shooting the player. However, I think I got something weird from this. Also, I need to work on graphics which shouldnt be to bad. Ill be done by tomorrow night or Thursday morning!
I added functions in case the player died and in the other case that the player has reached grame over. I also made the game progressivley harder and made a score tracker and life tracker on the screen. That is all ok. Now the issue is that, I added a lag function so that the enemy cant be so good at shooting the player. However, I think I got something weird from this. Also, I need to work on graphics which shouldnt be to bad. Ill be done by tomorrow night or Thursday morning!
Sunday, May 16, 2010
Day 10
HOLY GUACAMOLE. the project is getting close to the due date. Well, i have worked on it a lot this weekend and have to ask Mr. Howe about all these little annoying glitches. THEY ARE SO FRUSTRATING. Like i dont know a programmer could mess up a collide function, but in some way I did. Also, i inserted this super huge equation and my program is just slow now and very laggy. Thats a bummer. But once I get all of this fixed, I should be practically done. I insereted explode functions and function to check if the ship has gotten hit. Well, hopefully this should not take me at most 2 days. Because, then I have to add a scoreboard, and graphics
Wednesday, May 12, 2010
Day 9
So I am behind schedule, but that should change this weekend. By the end of the week, I need to do certain things to fine tune my game. This weekend I am going to insert a falling function and a scoreboard. Then on Monday, I should be asking Mr. Howe for some random problems I have. Then I have Tuesday and Wednesday and possible Dead day to work on graphics. But today, I think I have for the most part I have my player shooting when he presses and lets go of keyboard. I was having trouble making my player stop when he is shooting though
Monday, May 10, 2010
Day 8
On Friday, ok so I played LaserBlaster today to look at some ideas. I really did not do too much about getting my player to shoot. I am trying to get the cannons to shoot at myPlayers oldX and I tweaked my program so that some of my glitches are gone and I started on the class for my player bullets.
Wednesday, May 5, 2010
Day 8
YESSSSSSSSSSSSSS!!!!!!!!!!!!!!!!!!! I got my cannon beams to work. I always had the habit of using rects and images in my classes, but at least now I learned a different approach to using classes. All I need to fix with the cannons is that they never miss the player. It would not be fun to play an impossible game. So I am going to set a range of x values that are around the x value of the player ship. So that in most cases the beam will keep missing. But the thing is, I do not want cannon beams to actually hit the ship. I would rather have them miss by a little bit every time so that the player will get scared and end up moving towards the direction of the beam. However, if the player finds out that the beams always missing, then they can just stay in the same place the whole time with a minimal amount of moving to shoot the cannons. I am thinking that I might have a cannonMiss counter that will see if the player has been in the same spot and that the cannon has missed the player three times, then it will hit the player immediately. Once I am done with this, I can move on to my player beams, which should not be so hard
Monday, May 3, 2010
Day 7
ok so I fixed the invalid syntaxs, at least for now. Now, I have set the image but then I realized that the beams I am making are not being in full length of the screen. They were just drawing toward the character. It looked quite odd, so I fixed this by making the y of the end-point of the beam 0 and the x of the end-point of the beam a certain ratio that I figured out when I was making my images. When I started the game, only some beams were being drawn from the cannons x and y to the special coordinates of the end-points x and y. Some of the beams would not go full screen, and others would just start at a different y than told to. This is a problem that is strange. I think that parts of these lines are not being blitted due to to some program confusion. I feel pretty confident about this program I wrote for the beams.
Im thinking I can just draw a line from to the topleft or topright corner of the image. WOW, I think this might work, I just figured this out by writing this to you!
Ok so I just tried that and it did not work. I am not sure if it was suppose to or not?
Im thinking I can just draw a line from to the topleft or topright corner of the image. WOW, I think this might work, I just figured this out by writing this to you!
Ok so I just tried that and it did not work. I am not sure if it was suppose to or not?
Subscribe to:
Posts (Atom)