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!

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?

Sunday, May 2, 2010

Day 6

Well, I am not going on schedule with this project at all. I am still stuck on the shooting aspect of the game. But once I am done with the shooting aspect, the rest should be pretty easy. I have planned out how I am going to do the shooting aspect, and now have inserted some of it into code. I am getting lots of invalid syntax messages, which I have no clue what they are saying.

Thursday, April 29, 2010

Day 5

ok so shooting is a lot harder than I thought. But thankfully, Mr. Howe helped me figure out how to deal with the complications of the beam-shooting aspect. It actually involved geometry....yuck! But I am guessing I will get shooting done by this weekend, and the health status. Then next week, I can work on graphics, what happens when the player gets hit, and make my game get progressively harder.

Tuesday, April 27, 2010

Day 4

So, I got the cannons moving! So thats good. There are some glitches, but I will handle that later. Now I need to add player shooting and the cannon shooting. I have an idea that should work for beam-shooting, rather than bullet shooting. For the cannons, it will be easy because I can just make a line using the points of the cannon and the current points of the player's ship. If the line always hits the ship and the game becomes to difficult, I will set it so that it shoots in a certain range around the ship.

That should last me for tomorrow.

Monday, April 26, 2010

Day 3

Last Friday, even though I am doing this monday morning, I made my ground cannons sway back and forth. Today I plan, on making them drag onto the screen starting from the right to make it look like the ship is going forward. I have set a variable to a random x position, and im going to place the cannons to another x poisition off the screen, and will keep tellling those cannons to move until they reach their certain spot, which was the varaible that kept track of the random x-position of the cannons.

That should last me for Monday, and Tuesday.

Tuesday, April 20, 2010

Day 2

So today I got my player ship moving, that was good. Now, I need to get bring in the cannons. This part is kind of confusing; I am not completely sure how I am going to do this. I think I am going to set it so that if there are no cannons on the screen and the players ship keeps trying to go off the right part of the screen, I will then create three separate cannons called cannon1, cannon2, and cannon3. I will tell their x position to decrease until they are in their appropriate spot. Once they are in their appropriate spot, I will then animate them, causing them to sway back and forth slightly a few pixels.

I am not sure if that was clear; but if it was, awesome!

This should last me a couple of days.

Monday, April 19, 2010

Day 1

This is my first blog. Woo hoo.

Well, it has been a while since I have been working on Laser Blaster. I am still blanking out a bit! However, once I start working I feel like I will be ok. I have my plan down; not too specific, but understandable. I feel like this is an easier project that my classmates, but lets see how this goes. I have struggled a bit, but I feel i can do something good with this project.