A few weeks ago, David hit such a bug. He poured over the code and found nothing. Then he sat down with Brent, who’s already created and published two original X-box Live games of his own so far, and they still couldn’t identify the source of the problem. So, for weeks now he’s been dead in the water.
The problem David was having with the code was that when the player pressed the “fire” button, the bullets weren’t originating in front of the player’s icon. They were appearing at random places instead of where they were supposed to. Eventually, David stopped looking for the solution.
But then, just a few nights ago, David had a dream. He was with our family at an 80’s themed restaurant and I asked him, in the dream, to go back into the kitchen to speak to the head chef. When he got back there he found Paulie behind the stove. Paulie is a regular member of our motel church family. In the dream, Paulie handed David an X-box controller and said, “Don’t give up.”
In the morning, David woke up and remembered the dream. Especially the part about being handed the X-box controller and the words, “Don’t give up.” So, he sat down at the computer and started looking through the code again. That was when he realized something – he had programmed the enemies on the screen to fire tracking bullets at the player. In order for those bullets to track the user’s location it would have to calculate the position of the player on the screen first. Quickly he went to the code for tracking bullets and found what he needed. Then he copied that code and went to place it into the section for where the players bullets would spawn. What he realized was that his code wasn’t actually bad, it was simply missing one capital letter. See, the code is case-sensitive. So, his original code was only off by one letter.
If he had given up he never would have discovered this, and if he hadn’t had that dream he wouldn’t have given it one more try.
What’s even more awesome is knowing that David realizes that God was the one who gave him this dream and spoke to him about not giving up.
So, whatever it is that you have given up on – a relationship, a project, a dream – let me encourage you not to give up. Try one more time. Give it one more shot. Reach out and take that X-box controller from God’s hand and hit “Start” again. You might be surprised what happens next.