Advertisement
VideoWired
VIDEO SEARCH

Programming Robotron in C# part 4 Details

ProgrammingRobotroninCpart4
Watch Video

Programming Robotron in C# part 4

0 of 5 Stars
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.
Channel: YouTube
Video Length: 44s
Date Found: Fri, Feb 08 2008 2:24 PM
Category: Science
Date Produced:
View Count: 30
Flag
Advertisement
Advertisement
Related Results From Science
TEDxCMU8212LuisvonAhnDuolingoTheNextChapterinHumanComputation
From: sciencestage.com on Mon, Jul 18 2011 11:15 AM
Luis von Ahn, the man who brought the world CAPTCHA and reCAPTCHA unveiled his newest and most innovative project to date: Duolingo. How can you translate the entire internet and do it for free? Duolingo will be a revolutionary product in which millions of internet users from around the world wi...
0 of 5 Stars
TEDxCMU8212MichealeneRisleyRape
From: sciencestage.com on Mon, Jul 18 2011 11:14 AM
Michealene Risley shares with us her incredible story on how she gave up a comfortable life as a corporate executive and traveled to Zimbabwe to document some of the most heartbreaking and unfortunately events that are happening to women and little girls. Learning through her own experiences with...
0 of 5 Stars
HillstrandedMonsterCatchingRig
From: Discovery Channel on Sun, Jul 17 2011 10:20 PM
The Hillstrand brothers assemble a heavy-duty fishing rig to go hunting after the Alaskan sea monster.
0 of 5 Stars
HillstrandedMysteryAnimalExpert
From: Discovery Channel on Sun, Jul 17 2011 10:20 PM
Johnathan and Andy meet with cryptozoologist Paul Leblond who shares his research about the creature known as Cadborosaurus.
0 of 5 Stars
AlaskanMonsterHuntSeaMonsterWitness
From: Discovery Channel on Sun, Jul 17 2011 10:17 PM
The Hillstrand’s adventure begins when an eyewitness shares stunning video evidence of a mysterious Alaskan sea monster.
0 of 5 Stars
CuriosityJohnSeelyBrownPlayandInnovation
From: Discovery Channel on Sat, Jul 16 2011 7:33 PM
John Seely Brown discusses using play to foster innovation in this Curiosity video.
0 of 5 Stars
CuriosityJohnSeelyBrownPlayandInnovation
From: Discovery Channel on Sat, Jul 16 2011 7:33 PM
John Seely Brown discusses using play to foster innovation in this Curiosity video.
0 of 5 Stars
CuriosityJohnSeelyBrownOnCuriosity
From: Discovery Channel on Sat, Jul 16 2011 7:33 PM
John Seely Brown discusses curiosity in this Curiosity video.
0 of 5 Stars
SharkWeekTasmanianSharkAttack
From: Discovery Channel on Sat, Jul 16 2011 7:33 PM
Two surfers are enjoying a nice day on the water when suddenly a great white shark takes a bite out of one of them. Will she live?
0 of 5 Stars
CuriosityJohnSeelyBrown039ChiefofConfusion039
From: Discovery Channel on Sat, Jul 16 2011 7:32 PM
John Seely Brown discusses the 'Chief of Confusion' in this Curiosity video.
0 of 5 Stars
CuriosityJohnSeelyBrown039ChiefofConfusion039
From: Discovery Channel on Sat, Jul 16 2011 7:32 PM
John Seely Brown discusses the 'Chief of Confusion' in this Curiosity video.
0 of 5 Stars
CuriosityJohnSeelyBrownFutureofBusiness
From: Discovery Channel on Sat, Jul 16 2011 7:32 PM
John Seely Brown discusses the future of business in this Curiosity video.
0 of 5 Stars
CuriosityJohnSeelyBrownTechnologySurprises
From: Discovery Channel on Sat, Jul 16 2011 7:32 PM
John Seely Brown discusses what is surprising about technology in this Curiosity video.
0 of 5 Stars
DeadliestCatch7BrotherlyPrank
From: Discovery Channel on Sat, Jul 16 2011 7:32 PM
Jake Harris can’t help pulling a fireworks prank on his brother Josh while he's grooming his face.
0 of 5 Stars
CuriosityJohnSeelyBrownBigQuestions
From: Discovery Channel on Sat, Jul 16 2011 7:31 PM
John Seely Brown discusses the big questions that keep him up at night in this Curiosity video.
0 of 5 Stars
CuriosityJohnSeelyBrownBiggestInfluence
From: Discovery Channel on Sat, Jul 16 2011 7:31 PM
John Seely Brown discusses books that have had the biggest influence on him in this Curiosity video.
0 of 5 Stars
DeadliestCatch7BurnedOutHydros
From: Discovery Channel on Sat, Jul 16 2011 7:30 PM
On the Ramblin' Rose, the burned out hydro compressor brings hauling to a stop and forces Captain Elliott to jury rig another high seas repair.
0 of 5 Stars
CuriosityJohnSeelyBrownWhatMakeshimCurious
From: Discovery Channel on Sat, Jul 16 2011 7:30 PM
John Seely Brown discusses what makes him curious in this Curiosity video.
0 of 5 Stars
CuriosityJohnSeelyBrownOnCreativity
From: Discovery Channel on Sat, Jul 16 2011 7:28 PM
John Seely Brown discusses creativity in this Curiosity video.
0 of 5 Stars
SharkWeekStalkedByaShark
From: Discovery Channel on Sat, Jul 16 2011 7:28 PM
A massive great white shark notices a group of Australian fishermen and starts circling their kayaks. What happens next shocks them all.
0 of 5 Stars
VIDEOWIRED.COM FEATURED