Messages - chedabob [ switch to compact view ]

Pages: [1] 2 3 4 5 6 7next
1
Post New Requests Here / Re: IDEA: TrueCrypt Alternate GUI for Windows
« on: February 25, 2010, 08:30 AM »
Do you have a GUI mockup?

2
Post New Requests Here / Re: IDEA - A different type of computer timer
« on: February 05, 2008, 10:17 AM »
If you create a task in the Windows Task Scheduler, it will turn on your PC. I had a pesky backup program that kept turning my PC on every day at 5pm to perform a backup :(

3
Developer's Corner / Re: Writing a simple driving game (help!!)
« on: October 09, 2007, 12:14 PM »
Excellent!  Nothing better than the feeling one gets after solving a brain-buster.

Now that you have the thing working (grin) it's time to rip it all out and replace it with this:

I've found that performance can be enhanced greatly in these kinds of games by precalculating all the SIN/COS values for each possible direction of movement and storing them in lookup tables.  RAM is cheap, the data we're talking about is not huge (assuming something like 5 or 10-degree increments), and the performance improvements can be breathtaking.  Integer lookups are nearly instantaneous, unlike SIN/COS calculations.

And yes, my motto really is "fix it even if it's not broken".  :-)

I'm writing a simple driving game, no proper physics or anything, so performance isn't really an issue :p

And whatever you posted, I can't see it  :P

4
Developer's Corner / Re: Writing a simple driving game (help!!)
« on: October 09, 2007, 11:01 AM »
After hours and hours of swearing at the screen, poring over numerous tutorials and source files, I finally got it to work. Using degrees instead of radians was one problem, but also rotating around the wrong origin was the main issue.

5
Developer's Corner / Re: Writing a simple driving game (help!!)
« on: October 09, 2007, 10:17 AM »
Distance is the amount in pixels it should travel.


I can move the vehicle about in any direction I want, but calculating how far X and how far Y to travel based on the rotation is the bit I'm struggling with.

Pages: [1] 2 3 4 5 6 7next
Go to full version