Sunday 30th March:
First things first. I am going to be using A* Pathfinding. But before generating the route using the A* algorithm, check to see if there is a direct "Line Of Sight" path between the starting position and the target position. This was implemented first by the use of c#'s Ray, BoundingBox and their .Intercetced methods... These all handle 3D calculations, which is good for 3D, but since this app is only in 2D it does not really make sense to use it... also it wasn't giving the correct results. The only (and best) answer was to write it myself, this was good because it teaches me how to do do thinks like RayBox intersection, and other line of sight algorithm... thing-ys.
A Unit class was created in order to controll the moving of the Units on the screen. This included ablity to select a "Target Position" where the Unit will move towards at a constant speed until it reaches that position.
Once this had been completed, a new sprite was added to act as a in game object that will block the units Line Of Site thus stopping the unit from moving (The Cursor will change to represent this error) ... And now it does heehee! It was during the creating of the line of sight and navigation around the in game "Obstruction" that the idea of including waypoints in the game would be a nice addition. Thus they were added. By clicking with the mouse the first "Unit" will move to the location as long as it is within Line Of Sight, if the user holds the [Shift] key while clicking, it will create waypoint and queue up the movments. Each new waypoint must be in Line Of Sight from the last created waypoint in order to be created. If the user clicks without holding [Shift] any waypoints will be destroyed and the "Unit" will move towards this new TargetPosition.
Sunday, 30 March 2008
Proper Starting now...
Saturday 29th March... Looked up some tutorials, not that i've not been watching XNA videos and reading suff all the time, but found a nice state machine menu system from MS (http://creators.xna.com/Headlines/developmentaspx/archive/2007/01/01/Game-State-Management-Sample.aspx) which was very impressive... so much so that I decided to start again and use this as the basic framework for my project.
I then set about importing the work that was done previously. Since the layout of the code was so different it was decided that starting from scratch with the sprite class would be the right thing to do. The sprite class created included the ability to animate sprites from a tilesheet of images of any size and frame count, as well as controlling the frames per second of the animation.
Once the sprite was implemented it was time to call it a night.
I then set about importing the work that was done previously. Since the layout of the code was so different it was decided that starting from scratch with the sprite class would be the right thing to do. The sprite class created included the ability to animate sprites from a tilesheet of images of any size and frame count, as well as controlling the frames per second of the animation.
Once the sprite was implemented it was time to call it a night.
Last Few Weeks
It has been a while since last update.
Done my progress report, even though it was pointless. Wrote a very good abstract for it before finding out that an abstract was not needed for the progress report... oh well lest I half have one for the final submission. I wonder if we will ever get feedback on the progress report... no, but i'll ask
Kinda realated on the 12th and 13th of March went down to Pourtsmouth and then up to Cambridge for interviews at Climax then Frontier respectivly. The Climax interview was going quite well even though it seamed especialy demmanding for a graduate position but was a bit stuck on a question and it went downhill quickly.
Fortunatly the Frontier interview went much better, so much so that i'm going back down on the Tuesday 1st of April wooo so fingers crossed, sounds like a good place to work :)
Monday 17th March, 07:31, Started coding again, this time in XNA wooo
07:48 finished coding for the day lol. Got a sprite moving about the screen using the mouse to set a way point.
Wooo Thats a start at least. Then had a meeting with my supervisor at 11:00. Said that I would have the intro and background reserch sections of the writeup done for the 10th April as well as having the majority of the programming completed.
Tuesday 25th Interview at Cohort Studios, Dundee. Went quite well I think. Just have to wait and see, Nail is having an interview on Thursday so it is unlikely i will get a response before then, and even then, Nail will probably get it since he has quite impressive demos... oh well.
Done my progress report, even though it was pointless. Wrote a very good abstract for it before finding out that an abstract was not needed for the progress report... oh well lest I half have one for the final submission. I wonder if we will ever get feedback on the progress report... no, but i'll ask
Kinda realated on the 12th and 13th of March went down to Pourtsmouth and then up to Cambridge for interviews at Climax then Frontier respectivly. The Climax interview was going quite well even though it seamed especialy demmanding for a graduate position but was a bit stuck on a question and it went downhill quickly.
Fortunatly the Frontier interview went much better, so much so that i'm going back down on the Tuesday 1st of April wooo so fingers crossed, sounds like a good place to work :)
Monday 17th March, 07:31, Started coding again, this time in XNA wooo
07:48 finished coding for the day lol. Got a sprite moving about the screen using the mouse to set a way point.
Wooo Thats a start at least. Then had a meeting with my supervisor at 11:00. Said that I would have the intro and background reserch sections of the writeup done for the 10th April as well as having the majority of the programming completed.
Tuesday 25th Interview at Cohort Studios, Dundee. Went quite well I think. Just have to wait and see, Nail is having an interview on Thursday so it is unlikely i will get a response before then, and even then, Nail will probably get it since he has quite impressive demos... oh well.
Tuesday, 4 March 2008
Progress Meeting - 4th March
Had another progress meeting today. Because of the maths (and procrastinating) i've done no work appart from watch hours and hours of XNA programming vids. Still got lots to watch. So much to do. Really need to get my finger out :(
Progress report was supposed to be due for tomorrow, but has been moved back to Friday! woo
Planning on doing some work on it today... not going to happen! lol well maybe after the Sega thing thats at 3! Damn, has to be done today, cause tomorrow will only have a few hours in the morning, and will have to work on Thursday :( grrr oh well, better make a start :( boo! lol
Progress report was supposed to be due for tomorrow, but has been moved back to Friday! woo
Planning on doing some work on it today... not going to happen! lol well maybe after the Sega thing thats at 3! Damn, has to be done today, cause tomorrow will only have a few hours in the morning, and will have to work on Thursday :( grrr oh well, better make a start :( boo! lol
Subscribe to:
Comments (Atom)