|
I'm sure you can see what's been added here! Yay! We have a player! Surprisingly the player movement and firing code was easy as pie to implement. Looks good eh? I dumped DarkGDK's frame-rate code (by turning Sync OFF) and wrote my own timing algorithm which is far, far more accurate - I want 60FPS, not the 55 or 65 that DarkGDK seems to give me. I haven't "done" collision detection yet because I'm thinking of the best way to implement pixel-perfect image collision. BlitzATron's (A Blitz Basic remake) collision detection was a bit off and I don't want this to go the same way. DarkGDK doesn't have image collision detection, so I have to write my own and it will probably be very, very, VERY slow... unpack image to memblock, get pixel value from image A, test for pixel collision in image B at position X, Y... repeat. Yuk!!! Anyway before I can get round to that my OCD is fretting over the prettiness of the code and its legibility (I plan to give the code away for a very very small fee - or maybe zilch - when I'm done so other people can learn from it. What do you think? A good idea? Or crap?) I'm seeing flaws in the code such as hard coded values that should be in constants or registry keys/ a .config file, and there's a bit of duplication in code too. Thats what happens folks when you don't design your program first and just jump right in! Just as well Visual Studio 2008 allows you to refactor quickly, because if I was back in the Turbo Pascal days I would be spending all day renaming variables and methods. I can definitely say I'm happy with how this project is going though.
|
Video Length: 44
Date Found: February 08, 2008
Date Produced:
|
|
YouTube |
February 12, 2008
NYTimes.com David Pogue reviews a variety of Digital Binoculars.
|
YouTube |
February 12, 2008
You don't want to add to the camouflage woes of your already dreadfully BLACK M16/M4 assault rifle/carbine. TAN M16/M4 muzzle caps are available and if you buy $$$ them, you could even have a wasteful, "shoot-through them" mentality--but this means after the firefight having a ...
|
YouTube |
February 12, 2008
New research suggests that more people survive major heart attacks with fewer problems if doctors use a mini-vacuum to suck out an artery blockage instead of pushing it aside to restore blood flow. (Feb. 6)
|
YouTube |
February 12, 2008
Federal fishery regulators say the number of chinook salmon returning to the Sacramento River and its tributaries last fall was astonishingly low. The figures could trigger economic hardships from Central California to the Canadian border. (Feb. 4)
|
YouTube |
February 12, 2008
NYTimes.com David Pogue on Microsoft's Zune, which is taking on Apple's iPod.
|
|
|
|
|
|
Featured Content
Featuring websites that enhance the internet user’s experience.
|