Sunday, February 3, 2008

Panta Rhei

"everything is in a state of flux"

Last time I told you about that problem with the Deview camera, and ... I was wrong ...

It is not that hard to review 200 lines, its also not that hard to rewrite them ...

Once you've read the first line and then the second, ther third, etc.
You somehow get into that flow ...

All that thought you've got when you wrote them came back, the memory becomes clear, ... and you don't feel bad if you clean some lines ^.^

But that what reall surpriced me was that, somwhere in between, I looked down do to Draw code in the main class and while I was scroling thos 1001 lines a word jumpt into my view.

May have told about the new Cursor last time, once I got it working, I thought of stuff that I could make with it. And, of course, I tryed to use the picking sample and send a ray away from the Cursor (or how I call it in the actual code: Crosshair) and figure out if it hits a astroid and diplay the distance on screen.

I failed. I waisted a whole afternoon to find that problem, and while I was working on the camera movements, just a few hours ago, the bug jumped right into my face and bit me.

All that was wrong was that I used a complet useless value in the middle of the code, and that more or less blocked all the other lines. The bug was gone in just 3 seconds and 3 minutes later I've got the true meaning of the ray.

I used the direction of the ray and the distance to the astroid to get a Vector3 which hold the position where the player aims, and it was not that hard to let the bullets head exactly in that direction.

If I now get a better rotation system for my space ship, ... ... I actually would be done ... The ship controls would be done ... DONE!! ...

And now without childish enthusiasm ... it becomes a game ... no joke ...

I actually could just take the earth, the astroids, the ship and make a 'save the earth from thos astroids' game ... damit!


And now about something complet differnt:

It happened very often the last time that people contated me and asked from help, information or what ever, and I ask my self: 'Why not'.
So if anybody out there gots any questions about my project, game design in general, or something else, just ask.
I may not be the best source of intel, but still, don't be shy, you woun't die. ^.^


PS: I actually planed to write something about Panta Rhei, and how it is true and where in everydays life you can see that it is true, but its still a nice headline, don't it?


Greg the Mad

No comments: