|
  
|
|
|||||||
| Development Discussions All developers who are coding games may stop by here for any help, suggestions, and everything development related. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Experienced Zuner
|
Post General questions here:
Is there a way you can test the games/apps you write for the zune with out debugging it to your zune, and having your zune connected?
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ![]() |
|
|
|
|
|
#2 (permalink) |
|
zB Programmer
Experienced Member Join Date: Mar 2007
Posts: 975
Reputation: 119
|
Bit of search would have helped you with your question
http://www.zuneboards.com/forums/dev...ow-do-you.html http://www.zuneboards.com/forums/dev...ying-zune.html
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ![]() |
|
|
|
|
|
#3 (permalink) | |
|
Experienced Zuner
|
I need help with an if statement.
Code:
public Texture2D advanceLevel(int score)
{
//Level 2
if (score == 10)
{
monsterControl.changeMonSpeed(.5f);
return level2;
}
//Level 3
if (score == 20)
{
monsterControl.changeMonSpeed(.75f);
return level2;
}
}
Quote:
[edit]Nevermind, I discovered a solution
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Last edited by Rockman87 : 07-14-2008 at 12:43 PM. Reason: Solved ![]() |
|
|
|
|
|
|
#4 (permalink) |
|
Jr. Member
Join Date: May 2008
Posts: 410
Reputation: 60
|
Then return null. There is no way to not return something some of the time. So you can have a 'return null;' statement at the end which will satisfy the error, but then you have to make sure that whatever code is calling this method knows it might be getting a null value back.
|
|
|
|
|
|
#5 (permalink) |
|
Experienced Zuner
|
ok...thanks. I could probably work with a null.
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ![]() |
|
|
|
|
|
#6 (permalink) |
|
Experienced Zuner
|
What is the best way to reset all the variables to the values they were initialized. Like when you get a game over. This would be so when they click start game again, the game starts at the beginning.
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ![]() |
|
|
|
|
|
#8 (permalink) |
|
Experienced Zuner
|
Will this add to the memory already in the ram? Should I just create a method that changes the values of all the variables?
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ![]() |
|
|
|
|
|
#9 (permalink) |
|
ad majorem dei gloriam
Administrator
Ultimate Zuner Join Date: Jan 2007
Posts: 6,610
Reputation: 474
|
Garbage Collecting is your friend. Not the most efficient way, but easiest to program
![]()
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. |
|
|
|
|
|
#10 (permalink) |
|
Experienced Zuner
|
Is diagonal movement possible on a 30GB dpad?
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ![]() |
|
|
|
![]() |
| Thread Tools | |
|
|
| |