A Daily (maybe enough for a month) Dose Of Math

Hrmm… I have been working with a lot of big numbers that are seemingly pointless. They actually serve a purpose in my video game, for all the background stuff and calculating the vectors for everything. Well, enough ranting here is the dose of numbers (mixed into code):

cubes.put(setcube(new Vector3f((x*cubesize)+offset.x, (y*cubesize)+offset.y, offset.z)), new Vector2f(x, y));

return interpolate(startingvector, endingvector, ((time – startingtime) / (endingtime – startingtime)));

And the boss of all the confusion is right here:

return (double) (1.0 – ((x * (x * x * 15731 + 789221) + 1376312589) & 2147483647) / 1073741824.0);

 

Yes, seemingly err… Pointless. The numbers are lined up just right so that they fulfill their action the way they are supposed to.

 

Off topic:

As for the forum, I’m not sure what I’m going to do about that. I turned down the security one notch thinking that I had enough captcha, and then the next morning there were 500 new members each with about 20 posts each. (spambots if you didn’t catch on) Up to this day, I can still see them on the recent visitors list, searching for a way to spam my forum.

 

Whats Happening to Doc?

Well, you see… Ermm… I have this sickness that is making it very hard to focus. I have been on medication for it for the last few months. Now that I am feeling better, I am back into programming. It has been a while, and I feel like I could do a better job with the init/loop framework so I am redoing it. After all, don’t want a bad game just because I made a sub quality framework…

Other than that, I am into music making (crappy…) and a bunch of other things. I really wish I could make better music, but I know it will take much time and practice.

For those of you who are waiting for a release: I am working hard at it. I want to release it very badly, but I have to have more to show.

Thanks guys!